to.etc.iocular.def
Class BuildPlanForConstructor

java.lang.Object
  extended by to.etc.iocular.def.AbstractBuildPlan
      extended by to.etc.iocular.def.BuildPlanForConstructor
All Implemented Interfaces:
BuildPlan

public final class BuildPlanForConstructor
extends AbstractBuildPlan

A build plan to call a constructor.

Author:
jal Created on Mar 28, 2007

Field Summary
 
Fields inherited from interface to.etc.iocular.container.BuildPlan
EMPTY_PLANS
 
Constructor Summary
BuildPlanForConstructor(java.lang.reflect.Constructor<?> constructor, int score)
           
BuildPlanForConstructor(java.lang.reflect.Constructor<?> constructor, int score, ComponentRef[] actuals)
           
 
Method Summary
 void dump(IndentWriter iw)
           
 java.lang.Object getObject(BasicContainer bc)
           
 int getScore()
           
 boolean needsStaticInitialization()
          When T this component has a static (one-time only) initialization requirement.
 void staticStart(BasicContainer c)
          When this has a static initializer this should execute it.
 
Methods inherited from class to.etc.iocular.def.AbstractBuildPlan
destroy, getInjectorList, hasDestructors, injectProperties, internalDumpSetters, internalDumpStartStop, setDestroyList, setInjectorList, setStartList, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildPlanForConstructor

public BuildPlanForConstructor(java.lang.reflect.Constructor<?> constructor,
                               int score,
                               ComponentRef[] actuals)

BuildPlanForConstructor

public BuildPlanForConstructor(java.lang.reflect.Constructor<?> constructor,
                               int score)
Method Detail

getObject

public java.lang.Object getObject(BasicContainer bc)
                           throws java.lang.Exception
Specified by:
getObject in interface BuildPlan
Specified by:
getObject in class AbstractBuildPlan
Throws:
java.lang.Exception

getScore

public int getScore()

dump

public void dump(IndentWriter iw)
          throws java.io.IOException
Specified by:
dump in interface BuildPlan
Overrides:
dump in class AbstractBuildPlan
Throws:
java.io.IOException

needsStaticInitialization

public boolean needsStaticInitialization()
Description copied from interface: BuildPlan
When T this component has a static (one-time only) initialization requirement.

Specified by:
needsStaticInitialization in interface BuildPlan
Specified by:
needsStaticInitialization in class AbstractBuildPlan
Returns:

staticStart

public void staticStart(BasicContainer c)
                 throws java.lang.Exception
Description copied from interface: BuildPlan
When this has a static initializer this should execute it. This gets called before an actual object is created from this definition.

Specified by:
staticStart in interface BuildPlan
Specified by:
staticStart in class AbstractBuildPlan
Throws:
java.lang.Exception