org.jdiameter.client.impl.helpers
Class AssemblerImpl

java.lang.Object
  extended by org.jdiameter.client.impl.helpers.AssemblerImpl
All Implemented Interfaces:
IAssembler

public class AssemblerImpl
extends java.lang.Object
implements IAssembler

IOC for stack


Constructor Summary
protected AssemblerImpl(AssemblerImpl parent, org.jdiameter.api.Configuration e, ExtensionPoint p)
          Create child Assembler
  AssemblerImpl(org.jdiameter.api.Configuration config)
          Create instance of class with predefined configiration
 
Method Summary
 void destroy()
          Release all attached resources
 IAssembler[] getChilds()
          Get childs IOCs
 java.lang.Object getComponentInstance(java.lang.Class<?> aClass)
          Register new component
 IAssembler getParent()
          return parent IOC
 void registerComponentImplementation(java.lang.Class aClass)
           
 void registerComponentImplementation(java.lang.Class<?> aClass, java.lang.Object object)
          Register new component
 void registerComponentInstance(java.lang.Object object)
          Register new component
 void unregister(java.lang.Class aClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssemblerImpl

public AssemblerImpl(org.jdiameter.api.Configuration config)
              throws java.lang.Exception
Create instance of class with predefined configiration

Parameters:
config - configuration of stack
Throws:
java.lang.Exception - if generated internal exception

AssemblerImpl

protected AssemblerImpl(AssemblerImpl parent,
                        org.jdiameter.api.Configuration e,
                        ExtensionPoint p)
                 throws java.lang.Exception
Create child Assembler

Parameters:
parent - parent assembler
e - child configuration
p - extension poit
Throws:
java.lang.Exception
Method Detail

getComponentInstance

public java.lang.Object getComponentInstance(java.lang.Class<?> aClass)
Description copied from interface: IAssembler
Register new component

Specified by:
getComponentInstance in interface IAssembler
Parameters:
aClass - class of component
Returns:
instcne of component
See Also:
MutablePicoContainer

registerComponentInstance

public void registerComponentInstance(java.lang.Object object)
Description copied from interface: IAssembler
Register new component

Specified by:
registerComponentInstance in interface IAssembler
Parameters:
object - instance of component
See Also:
MutablePicoContainer

registerComponentImplementation

public void registerComponentImplementation(java.lang.Class aClass)

registerComponentImplementation

public void registerComponentImplementation(java.lang.Class<?> aClass,
                                            java.lang.Object object)
Description copied from interface: IAssembler
Register new component

Specified by:
registerComponentImplementation in interface IAssembler
Parameters:
aClass - class of component
object - instance of component
See Also:
MutablePicoContainer

unregister

public void unregister(java.lang.Class aClass)

destroy

public void destroy()
Description copied from interface: IAssembler
Release all attached resources

Specified by:
destroy in interface IAssembler
See Also:
MutablePicoContainer

getParent

public IAssembler getParent()
return parent IOC

Specified by:
getParent in interface IAssembler
Returns:
IOC instance

getChilds

public IAssembler[] getChilds()
Get childs IOCs

Specified by:
getChilds in interface IAssembler
Returns:
childs IOCs


Copyright © 2008. All Rights Reserved.