|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.picocontainer.defaults.MonitoringComponentAdapter
org.picocontainer.defaults.AbstractComponentAdapter
com.jdon.container.pico.JdonInstantiatingComponentAdapter
public abstract class JdonInstantiatingComponentAdapter
| 嵌套类摘要 | |
|---|---|
protected static class |
JdonInstantiatingComponentAdapter.Guard
|
| 字段摘要 | |
|---|---|
protected boolean |
allowNonPublicClasses
Flag indicating instanciation of non-public classes. |
protected org.picocontainer.defaults.LifecycleStrategy |
lifecycleStrategy
The strategy used to control the lifecycle |
protected org.picocontainer.Parameter[] |
parameters
The parameters to use for initialization. |
protected JdonInstantiatingComponentAdapter.Guard |
verifyingGuard
|
| 构造方法摘要 | |
|---|---|
protected |
JdonInstantiatingComponentAdapter(Object componentKey,
Class componentImplementation,
org.picocontainer.Parameter[] parameters,
boolean allowNonPublicClasses)
|
protected |
JdonInstantiatingComponentAdapter(Object componentKey,
Class componentImplementation,
org.picocontainer.Parameter[] parameters,
boolean allowNonPublicClasses,
org.picocontainer.ComponentMonitor monitor)
Constructs a new ComponentAdapter for the given key and implementation. |
protected |
JdonInstantiatingComponentAdapter(Object componentKey,
Class componentImplementation,
org.picocontainer.Parameter[] parameters,
boolean allowNonPublicClasses,
org.picocontainer.ComponentMonitor monitor,
org.picocontainer.defaults.LifecycleStrategy lifecycleStrategy)
Constructs a new ComponentAdapter for the given key and implementation. |
| 方法摘要 | |
|---|---|
void |
accept(org.picocontainer.PicoVisitor visitor)
|
void |
clear()
|
protected org.picocontainer.Parameter[] |
createDefaultParameters(Class[] parameters)
Create default parameters for the given types. |
void |
dispose(Object component)
|
protected abstract Constructor |
getGreediestSatisfiableConstructor(org.picocontainer.PicoContainer container)
Find and return the greediest satisfiable constructor. |
boolean |
hasLifecycle(Class type)
|
protected Object |
newInstance(Constructor constructor,
Object[] parameters)
Instantiate an object with given parameters and respect the accessible flag. |
void |
start(Object component)
|
void |
stop(Object component)
|
void |
verify(org.picocontainer.PicoContainer container)
|
| 从类 org.picocontainer.defaults.AbstractComponentAdapter 继承的方法 |
|---|
checkTypeCompatibility, getComponentImplementation, getComponentKey, toString |
| 从类 org.picocontainer.defaults.MonitoringComponentAdapter 继承的方法 |
|---|
changeMonitor, currentMonitor |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 从接口 org.picocontainer.ComponentAdapter 继承的方法 |
|---|
getComponentInstance |
| 字段详细信息 |
|---|
protected transient JdonInstantiatingComponentAdapter.Guard verifyingGuard
protected transient org.picocontainer.Parameter[] parameters
protected boolean allowNonPublicClasses
protected org.picocontainer.defaults.LifecycleStrategy lifecycleStrategy
| 构造方法详细信息 |
|---|
protected JdonInstantiatingComponentAdapter(Object componentKey,
Class componentImplementation,
org.picocontainer.Parameter[] parameters,
boolean allowNonPublicClasses,
org.picocontainer.ComponentMonitor monitor,
org.picocontainer.defaults.LifecycleStrategy lifecycleStrategy)
componentKey - the search key for this implementationcomponentImplementation - the concrete implementationparameters - the parameters to use for the initializationallowNonPublicClasses - flag to allow instantiation of non-public classesmonitor - the component monitor used by this ComponentAdapterlifecycleStrategy - the lifecycle strategy used by this ComponentAdapter
org.picocontainer.defaults.AssignabilityRegistrationException - if the key is a type and the implementation cannot be
assigned to
org.picocontainer.defaults.NotConcreteRegistrationException - if the implementation is not a concrete class
NullPointerException - if one of the parameters is null
protected JdonInstantiatingComponentAdapter(Object componentKey,
Class componentImplementation,
org.picocontainer.Parameter[] parameters,
boolean allowNonPublicClasses,
org.picocontainer.ComponentMonitor monitor)
componentKey - the search key for this implementationcomponentImplementation - the concrete implementationparameters - the parameters to use for the initializationallowNonPublicClasses - flag to allow instantiation of non-public classesmonitor - the component monitor used by this ComponentAdapter
org.picocontainer.defaults.AssignabilityRegistrationException - if the key is a type and the implementation cannot be
assigned to
org.picocontainer.defaults.NotConcreteRegistrationException - if the implementation is not a concrete class
NullPointerException - if one of the parameters is null
protected JdonInstantiatingComponentAdapter(Object componentKey,
Class componentImplementation,
org.picocontainer.Parameter[] parameters,
boolean allowNonPublicClasses)
| 方法详细信息 |
|---|
protected org.picocontainer.Parameter[] createDefaultParameters(Class[] parameters)
parameters - the parameter types
public void verify(org.picocontainer.PicoContainer container)
throws org.picocontainer.PicoIntrospectionException
org.picocontainer.ComponentAdapter 中的 verifyorg.picocontainer.PicoIntrospectionExceptionpublic void accept(org.picocontainer.PicoVisitor visitor)
org.picocontainer.ComponentAdapter 中的 acceptorg.picocontainer.defaults.AbstractComponentAdapter 中的 acceptpublic void start(Object component)
org.picocontainer.defaults.LifecycleStrategy 中的 startpublic void stop(Object component)
org.picocontainer.defaults.LifecycleStrategy 中的 stoppublic void dispose(Object component)
org.picocontainer.defaults.LifecycleStrategy 中的 disposepublic boolean hasLifecycle(Class type)
org.picocontainer.defaults.LifecycleStrategy 中的 hasLifecycle
protected Object newInstance(Constructor constructor,
Object[] parameters)
throws InstantiationException,
IllegalAccessException,
InvocationTargetException
constructor - the constructor to useparameters - the parameters for the constructor
InstantiationException
IllegalAccessException
InvocationTargetException
protected abstract Constructor getGreediestSatisfiableConstructor(org.picocontainer.PicoContainer container)
throws org.picocontainer.PicoIntrospectionException,
org.picocontainer.defaults.UnsatisfiableDependenciesException,
org.picocontainer.defaults.AmbiguousComponentResolutionException,
org.picocontainer.defaults.AssignabilityRegistrationException,
org.picocontainer.defaults.NotConcreteRegistrationException
container - the PicoContainer to resolve dependencies.
org.picocontainer.PicoIntrospectionException
org.picocontainer.defaults.UnsatisfiableDependenciesException
org.picocontainer.defaults.AmbiguousComponentResolutionException
org.picocontainer.defaults.AssignabilityRegistrationException
org.picocontainer.defaults.NotConcreteRegistrationExceptionpublic void clear()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||