com.jdon.container.pico
类 PicoContainerWrapper

java.lang.Object
  继承者 com.jdon.container.pico.PicoContainerWrapper
所有已实现的接口:
ContainerWrapper, Serializable

public class PicoContainerWrapper
extends Object
implements ContainerWrapper, Serializable

Picocontainer is the implemention of containerWrapper.

作者:
banq
另请参见:
序列化表格

字段摘要
static String module
           
 
从接口 com.jdon.container.ContainerWrapper 继承的字段
OrignalKey
 
构造方法摘要
PicoContainerWrapper(ConfigInfo configInfo)
          construct a picocontainer without cache.
 
方法摘要
 List getAllInstances()
          return all instances
 Class getComponentClass(String name)
          return a component class from container
 List getComponentInstancesOfType(Class componentType)
          get all instances of a class type
 Object getComponentNewInstance(String name)
          This method will usually create a new instance each time it is called
 RegistryDirectory getRegistryDirectory()
          return all registered components's class/name in container.
 boolean isStart()
           
 Object lookup(String name)
          return singleton component instance from container every times it return same a instance
 Object lookupOriginal(String name)
          return singleton component instance without proxy.
 void register(String name)
          register a component, its class value is its name value
 void register(String name, Class className)
          register a component class
 void register(String name, Class className, String[] constructors)
          register a component class with constructors of String type
 void register(String name, Object instance)
          register a component instance
 void registerContainerCallback()
           
 void setStart(boolean start)
           
 void start()
          start the container this method will active all components's startup methods in container,
 void stop()
          stop the container this method will active all components's stop methods in container.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

module

public static final String module
构造方法详细信息

PicoContainerWrapper

public PicoContainerWrapper(ConfigInfo configInfo)
construct a picocontainer without cache.

方法详细信息

registerContainerCallback

public void registerContainerCallback()

register

public void register(String name,
                     Class className)
从接口 ContainerWrapper 复制的描述
register a component class

指定者:
接口 ContainerWrapper 中的 register
参数:
name - component name
className - component class

register

public void register(String name)
从接口 ContainerWrapper 复制的描述
register a component, its class value is its name value

指定者:
接口 ContainerWrapper 中的 register
参数:
name - the name must be a class string

register

public void register(String name,
                     Class className,
                     String[] constructors)
从接口 ContainerWrapper 复制的描述
register a component class with constructors of String type

指定者:
接口 ContainerWrapper 中的 register
参数:
name - component name
className - component class
constructors - component constructor parameters

register

public void register(String name,
                     Object instance)
从接口 ContainerWrapper 复制的描述
register a component instance

指定者:
接口 ContainerWrapper 中的 register
参数:
name - component name
instance - component instance

start

public void start()
从接口 ContainerWrapper 复制的描述
start the container this method will active all components's startup methods in container,

指定者:
接口 ContainerWrapper 中的 start

stop

public void stop()
从接口 ContainerWrapper 复制的描述
stop the container this method will active all components's stop methods in container.

指定者:
接口 ContainerWrapper 中的 stop

isStart

public boolean isStart()
指定者:
接口 ContainerWrapper 中的 isStart

setStart

public void setStart(boolean start)
指定者:
接口 ContainerWrapper 中的 setStart

getAllInstances

public List getAllInstances()
从接口 ContainerWrapper 复制的描述
return all instances

指定者:
接口 ContainerWrapper 中的 getAllInstances
返回:
all instances collection in container

lookup

public Object lookup(String name)
从接口 ContainerWrapper 复制的描述
return singleton component instance from container every times it return same a instance

指定者:
接口 ContainerWrapper 中的 lookup
参数:
name - component name
返回:
component single instance

lookupOriginal

public Object lookupOriginal(String name)
从接口 ContainerWrapper 复制的描述
return singleton component instance without proxy.

指定者:
接口 ContainerWrapper 中的 lookupOriginal
返回:

getComponentNewInstance

public Object getComponentNewInstance(String name)
This method will usually create a new instance each time it is called

指定者:
接口 ContainerWrapper 中的 getComponentNewInstance
参数:
name - component name
返回:
object new instance

getComponentClass

public Class getComponentClass(String name)
从接口 ContainerWrapper 复制的描述
return a component class from container

指定者:
接口 ContainerWrapper 中的 getComponentClass
返回:
component Class

getComponentInstancesOfType

public List getComponentInstancesOfType(Class componentType)
从接口 ContainerWrapper 复制的描述
get all instances of a class type

指定者:
接口 ContainerWrapper 中的 getComponentInstancesOfType
返回:

getRegistryDirectory

public RegistryDirectory getRegistryDirectory()
从接口 ContainerWrapper 复制的描述
return all registered components's class/name in container.

指定者:
接口 ContainerWrapper 中的 getRegistryDirectory
返回:


Copyright © 2013. All Rights Reserved.