eXo Kernel :: Container 2.5.0-Alpha1

org.exoplatform.container.management
Class ManageableComponentAdapter<T>

java.lang.Object
  extended by org.exoplatform.container.AbstractComponentAdapter<T>
      extended by org.exoplatform.container.jmx.MX4JComponentAdapter<T>
          extended by org.exoplatform.container.management.ManageableComponentAdapter<T>
All Implemented Interfaces:
Serializable, ComponentAdapter<T>

public class ManageableComponentAdapter<T>
extends MX4JComponentAdapter<T>

Version:
$Revision$
Author:
Julien Viet
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.exoplatform.container.jmx.MX4JComponentAdapter
container, exocontainer, isSingleton
 
Constructor Summary
ManageableComponentAdapter(ExoContainer holder, ConcurrentContainer container, Object key, Class<T> implementation)
           
 
Method Summary
 T getComponentInstance()
          Retrieve the component instance.
protected  void register(Container co, Object instance)
           
 
Methods inherited from class org.exoplatform.container.jmx.MX4JComponentAdapter
isSingleton
 
Methods inherited from class org.exoplatform.container.AbstractComponentAdapter
checkTypeCompatibility, getComponentImplementation, getComponentKey, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManageableComponentAdapter

public ManageableComponentAdapter(ExoContainer holder,
                                  ConcurrentContainer container,
                                  Object key,
                                  Class<T> implementation)
Method Detail

getComponentInstance

public T getComponentInstance()
                       throws ContainerException
Description copied from interface: ComponentAdapter
Retrieve the component instance. This method will usually create a new instance each time it is called, but that is not required.

Specified by:
getComponentInstance in interface ComponentAdapter<T>
Overrides:
getComponentInstance in class MX4JComponentAdapter<T>
Returns:
the component instance.
Throws:
ContainerException - if the component could not be instantiated. Or if the component has dependencies which could not be resolved, or instantiation of the component lead to an ambiguous situation within the container.

register

protected void register(Container co,
                        Object instance)

eXo Kernel :: Container 2.5.0-Alpha1

Copyright © 2013 eXo Platform SAS. All Rights Reserved.