|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.jdon.container.pico.JdonPicoContainer
public class JdonPicoContainer
Customized DefaultPicoContainer modify the method getComponentInstance of DefaultPicoContainer of picocontainer, new method is in JdonConstructorInjectionComponentAdapter
| 字段摘要 | |
|---|---|
static String |
module
|
| 构造方法摘要 | |
|---|---|
JdonPicoContainer(org.picocontainer.defaults.ComponentAdapterFactory componentAdapterFactory)
Creates a new container with a custom ComponentAdapterFactory and no parent container. |
|
JdonPicoContainer(org.picocontainer.defaults.ComponentAdapterFactory componentAdapterFactory,
org.picocontainer.PicoContainer parent)
Creates a new container with a custom ComponentAdapterFactory and a parent container. |
|
JdonPicoContainer(ConfigInfo configInfo)
Creates a new container with a (caching) DefaultComponentAdapterFactory and no parent container. |
|
JdonPicoContainer(org.picocontainer.PicoContainer parent,
ConfigInfo configInfo)
Creates a new container with a (caching) DefaultComponentAdapterFactory and a parent container. |
|
| 方法摘要 | |
|---|---|
void |
accept(org.picocontainer.PicoVisitor visitor)
|
boolean |
addChildContainer(org.picocontainer.PicoContainer child)
|
void |
changeMonitor(org.picocontainer.ComponentMonitor monitor)
Changes monitor in the ComponentAdapterFactory, the component adapters and the child containers, if these support a ComponentMonitorStrategy. |
void |
clearGurad()
|
org.picocontainer.ComponentMonitor |
currentMonitor()
Returns the first current monitor found in the ComponentAdapterFactory, the component adapters and the child containers, if these support a ComponentMonitorStrategy. |
void |
dispose()
Dispose the components of this PicoContainer and all its logical child containers. |
org.picocontainer.ComponentAdapter |
getComponentAdapter(Object componentKey)
|
org.picocontainer.ComponentAdapter |
getComponentAdapterOfType(Class componentType)
|
Collection |
getComponentAdapters()
|
List |
getComponentAdaptersOfType(Class componentType)
|
Object |
getComponentInstance(Object componentKey)
|
Object |
getComponentInstanceOfType(Class componentType)
|
List |
getComponentInstances()
|
List |
getComponentInstancesOfType(Class componentType)
|
Object |
getInstance(org.picocontainer.ComponentAdapter componentAdapter)
modify this method of old DefaultPicocontainer |
org.picocontainer.PicoContainer |
getParent()
|
org.picocontainer.MutablePicoContainer |
makeChildContainer()
|
org.picocontainer.ComponentAdapter |
registerComponent(org.picocontainer.ComponentAdapter componentAdapter)
This method can be used to override the ComponentAdapter created by the ComponentAdapterFactory passed to the constructor
of this container. |
org.picocontainer.ComponentAdapter |
registerComponentImplementation(Class componentImplementation)
The returned ComponentAdapter will be instantiated by the ComponentAdapterFactory passed to the container's constructor. |
org.picocontainer.ComponentAdapter |
registerComponentImplementation(Object componentKey,
Class componentImplementation)
The returned ComponentAdapter will be instantiated by the ComponentAdapterFactory passed to the container's constructor. |
org.picocontainer.ComponentAdapter |
registerComponentImplementation(Object componentKey,
Class componentImplementation,
List parameters)
Same as registerComponentImplementation(java.lang.Object, java.lang.Class, org.picocontainer.Parameter[])
but with parameters as a List. |
org.picocontainer.ComponentAdapter |
registerComponentImplementation(Object componentKey,
Class componentImplementation,
org.picocontainer.Parameter[] parameters)
The returned ComponentAdapter will be instantiated by the ComponentAdapterFactory passed to the container's constructor. |
org.picocontainer.ComponentAdapter |
registerComponentInstance(Object component)
The returned ComponentAdapter will be an InstanceComponentAdapter. |
org.picocontainer.ComponentAdapter |
registerComponentInstance(Object componentKey,
Object componentInstance)
The returned ComponentAdapter will be an InstanceComponentAdapter. |
boolean |
removeChildContainer(org.picocontainer.PicoContainer child)
|
void |
start()
Start the components of this PicoContainer and all its logical child containers. |
void |
stop()
Stop the components of this PicoContainer and all its logical child containers. |
org.picocontainer.ComponentAdapter |
unregisterComponent(Object componentKey)
|
org.picocontainer.ComponentAdapter |
unregisterComponentByInstance(Object componentInstance)
|
void |
verify()
已过时。 since 1.1 - Use new VerifyingVisitor().traverse(this) |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final String module
| 构造方法详细信息 |
|---|
public JdonPicoContainer(org.picocontainer.defaults.ComponentAdapterFactory componentAdapterFactory,
org.picocontainer.PicoContainer parent)
CachingComponentAdapter instances, such as for example
CachingComponentAdapterFactory. CachingComponentAdapterFactory can delegate to
other ComponentAdapterFactories.
componentAdapterFactory - the factory to use for creation of ComponentAdapters.parent - the parent container (used for component dependency lookups).
public JdonPicoContainer(org.picocontainer.PicoContainer parent,
ConfigInfo configInfo)
DefaultComponentAdapterFactory and a parent container.
public JdonPicoContainer(org.picocontainer.defaults.ComponentAdapterFactory componentAdapterFactory)
componentAdapterFactory - the ComponentAdapterFactory to use.public JdonPicoContainer(ConfigInfo configInfo)
DefaultComponentAdapterFactory and no parent container.
| 方法详细信息 |
|---|
public Collection getComponentAdapters()
org.picocontainer.PicoContainer 中的 getComponentAdapters
public final org.picocontainer.ComponentAdapter getComponentAdapter(Object componentKey)
throws org.picocontainer.defaults.AmbiguousComponentResolutionException
org.picocontainer.PicoContainer 中的 getComponentAdapterorg.picocontainer.defaults.AmbiguousComponentResolutionExceptionpublic org.picocontainer.ComponentAdapter getComponentAdapterOfType(Class componentType)
org.picocontainer.PicoContainer 中的 getComponentAdapterOfTypepublic List getComponentAdaptersOfType(Class componentType)
org.picocontainer.PicoContainer 中的 getComponentAdaptersOfType
public org.picocontainer.ComponentAdapter registerComponent(org.picocontainer.ComponentAdapter componentAdapter)
throws org.picocontainer.defaults.DuplicateComponentKeyRegistrationException
ComponentAdapterFactory passed to the constructor
of this container.
org.picocontainer.MutablePicoContainer 中的 registerComponentorg.picocontainer.defaults.DuplicateComponentKeyRegistrationExceptionpublic org.picocontainer.ComponentAdapter unregisterComponent(Object componentKey)
org.picocontainer.MutablePicoContainer 中的 unregisterComponent
public org.picocontainer.ComponentAdapter registerComponentInstance(Object component)
throws org.picocontainer.PicoRegistrationException
InstanceComponentAdapter.
org.picocontainer.MutablePicoContainer 中的 registerComponentInstanceorg.picocontainer.PicoRegistrationException
public org.picocontainer.ComponentAdapter registerComponentInstance(Object componentKey,
Object componentInstance)
throws org.picocontainer.PicoRegistrationException
InstanceComponentAdapter.
org.picocontainer.MutablePicoContainer 中的 registerComponentInstanceorg.picocontainer.PicoRegistrationException
public org.picocontainer.ComponentAdapter registerComponentImplementation(Class componentImplementation)
throws org.picocontainer.PicoRegistrationException
ComponentAdapterFactory passed to the container's constructor.
org.picocontainer.MutablePicoContainer 中的 registerComponentImplementationorg.picocontainer.PicoRegistrationException
public org.picocontainer.ComponentAdapter registerComponentImplementation(Object componentKey,
Class componentImplementation)
throws org.picocontainer.PicoRegistrationException
ComponentAdapterFactory passed to the container's constructor.
org.picocontainer.MutablePicoContainer 中的 registerComponentImplementationorg.picocontainer.PicoRegistrationException
public org.picocontainer.ComponentAdapter registerComponentImplementation(Object componentKey,
Class componentImplementation,
org.picocontainer.Parameter[] parameters)
throws org.picocontainer.PicoRegistrationException
ComponentAdapterFactory passed to the container's constructor.
org.picocontainer.MutablePicoContainer 中的 registerComponentImplementationorg.picocontainer.PicoRegistrationException
public org.picocontainer.ComponentAdapter registerComponentImplementation(Object componentKey,
Class componentImplementation,
List parameters)
throws org.picocontainer.PicoRegistrationException
registerComponentImplementation(java.lang.Object, java.lang.Class, org.picocontainer.Parameter[])
but with parameters as a List. Makes it possible to use with
Groovy arrays (which are actually Lists).
org.picocontainer.PicoRegistrationException
public List getComponentInstances()
throws org.picocontainer.PicoException
org.picocontainer.PicoContainer 中的 getComponentInstancesorg.picocontainer.PicoException
public List getComponentInstancesOfType(Class componentType)
throws org.picocontainer.PicoException
org.picocontainer.PicoContainer 中的 getComponentInstancesOfTypeorg.picocontainer.PicoException
public Object getComponentInstance(Object componentKey)
throws org.picocontainer.PicoException
org.picocontainer.PicoContainer 中的 getComponentInstanceorg.picocontainer.PicoExceptionpublic Object getComponentInstanceOfType(Class componentType)
org.picocontainer.PicoContainer 中的 getComponentInstanceOfTypepublic Object getInstance(org.picocontainer.ComponentAdapter componentAdapter)
componentAdapter -
public org.picocontainer.PicoContainer getParent()
org.picocontainer.PicoContainer 中的 getParentpublic org.picocontainer.ComponentAdapter unregisterComponentByInstance(Object componentInstance)
org.picocontainer.MutablePicoContainer 中的 unregisterComponentByInstance
public void verify()
throws org.picocontainer.PicoVerificationException
org.picocontainer.PicoContainer 中的 verifyorg.picocontainer.PicoVerificationExceptionpublic void start()
Startable will be started.
org.picocontainer.Startable 中的 startmakeChildContainer(),
addChildContainer(PicoContainer),
removeChildContainer(PicoContainer)public void stop()
Startable will be stopped.
org.picocontainer.Startable 中的 stopmakeChildContainer(),
addChildContainer(PicoContainer),
removeChildContainer(PicoContainer)public void clearGurad()
public void dispose()
Disposable will be disposed.
org.picocontainer.Disposable 中的 disposemakeChildContainer(),
addChildContainer(PicoContainer),
removeChildContainer(PicoContainer)public org.picocontainer.MutablePicoContainer makeChildContainer()
org.picocontainer.MutablePicoContainer 中的 makeChildContainerpublic boolean addChildContainer(org.picocontainer.PicoContainer child)
org.picocontainer.MutablePicoContainer 中的 addChildContainerpublic boolean removeChildContainer(org.picocontainer.PicoContainer child)
org.picocontainer.MutablePicoContainer 中的 removeChildContainerpublic void accept(org.picocontainer.PicoVisitor visitor)
org.picocontainer.PicoContainer 中的 acceptpublic void changeMonitor(org.picocontainer.ComponentMonitor monitor)
org.picocontainer.defaults.ComponentMonitorStrategy 中的 changeMonitorpublic org.picocontainer.ComponentMonitor currentMonitor()
org.picocontainer.defaults.ComponentMonitorStrategy 中的 currentMonitororg.picocontainer.PicoIntrospectionException - if no component monitor is found in container or its children
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||