|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.jdon.container.pico.PicoContainerWrapper
public class PicoContainerWrapper
Picocontainer is the implemention of containerWrapper.
| 字段摘要 | |
|---|---|
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 |
| 字段详细信息 |
|---|
public static final String module
| 构造方法详细信息 |
|---|
public PicoContainerWrapper(ConfigInfo configInfo)
| 方法详细信息 |
|---|
public void registerContainerCallback()
public void register(String name,
Class className)
ContainerWrapper 复制的描述
ContainerWrapper 中的 registername - component nameclassName - component classpublic void register(String name)
ContainerWrapper 复制的描述
ContainerWrapper 中的 registername - the name must be a class string
public void register(String name,
Class className,
String[] constructors)
ContainerWrapper 复制的描述
ContainerWrapper 中的 registername - component nameclassName - component classconstructors - component constructor parameters
public void register(String name,
Object instance)
ContainerWrapper 复制的描述
ContainerWrapper 中的 registername - component nameinstance - component instancepublic void start()
ContainerWrapper 复制的描述
ContainerWrapper 中的 startpublic void stop()
ContainerWrapper 复制的描述
ContainerWrapper 中的 stoppublic boolean isStart()
ContainerWrapper 中的 isStartpublic void setStart(boolean start)
ContainerWrapper 中的 setStartpublic List getAllInstances()
ContainerWrapper 复制的描述
ContainerWrapper 中的 getAllInstancespublic Object lookup(String name)
ContainerWrapper 复制的描述
ContainerWrapper 中的 lookupname - component name
public Object lookupOriginal(String name)
ContainerWrapper 复制的描述
ContainerWrapper 中的 lookupOriginalpublic Object getComponentNewInstance(String name)
ContainerWrapper 中的 getComponentNewInstancename - component name
public Class getComponentClass(String name)
ContainerWrapper 复制的描述
ContainerWrapper 中的 getComponentClasspublic List getComponentInstancesOfType(Class componentType)
ContainerWrapper 复制的描述
ContainerWrapper 中的 getComponentInstancesOfTypepublic RegistryDirectory getRegistryDirectory()
ContainerWrapper 复制的描述
ContainerWrapper 中的 getRegistryDirectory
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||