public class AssemblerImpl extends Object implements IAssembler
| Modifier | Constructor and Description |
|---|---|
protected |
AssemblerImpl(AssemblerImpl parent,
Configuration e,
ExtensionPoint p)
Create child Assembler
|
|
AssemblerImpl(Configuration config)
Create instance of class with predefined configuration
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Release all attached resources
|
IAssembler[] |
getChilds()
Get childs IOCs
|
<T> T |
getComponentInstance(Class<T> aClass)
Register new component
|
IAssembler |
getParent()
return parent IOC
|
void |
registerComponentImplementation(Class aClass) |
void |
registerComponentImplementation(Class<?> aClass,
Object object)
Register new component
|
void |
registerComponentInstance(Object object)
Register new component
|
void |
unregister(Class aClass) |
public AssemblerImpl(Configuration config) throws Exception
config - configuration of stackException - if generated internal exceptionprotected AssemblerImpl(AssemblerImpl parent, Configuration e, ExtensionPoint p) throws Exception
parent - parent assemblere - child configurationp - extension poitExceptionpublic <T> T getComponentInstance(Class<T> aClass)
IAssemblergetComponentInstance in interface IAssembleraClass - class of componentMutablePicoContainerpublic void registerComponentInstance(Object object)
IAssemblerregisterComponentInstance in interface IAssemblerobject - instance of componentMutablePicoContainerpublic void registerComponentImplementation(Class aClass)
public void registerComponentImplementation(Class<?> aClass, Object object)
IAssemblerregisterComponentImplementation in interface IAssembleraClass - class of componentobject - instance of componentMutablePicoContainerpublic void unregister(Class aClass)
public void destroy()
IAssemblerdestroy in interface IAssemblerMutablePicoContainerpublic IAssembler getParent()
getParent in interface IAssemblerpublic IAssembler[] getChilds()
getChilds in interface IAssemblerCopyright © 2016. All Rights Reserved.