eXo Kernel :: Container 2.5.0-Alpha1

org.exoplatform.container.jmx
Class MX4JComponentAdapter<T>

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

public class MX4JComponentAdapter<T>
extends AbstractComponentAdapter<T>

Version:
$Revision: 1.5 $
Author:
James Strachan, Mauro Talevi, Jeppe Cramon, Benjamin Mestrallet
See Also:
Serialized Form

Field Summary
protected  ConcurrentContainer container
          .
protected  ExoContainer exocontainer
          .
protected  boolean isSingleton
          Indicates whether or not it should be managed as a singleton
 
Constructor Summary
MX4JComponentAdapter(ExoContainer holder, ConcurrentContainer container, Object key, Class<T> implementation)
           
 
Method Summary
 T getComponentInstance()
          Retrieve the component instance.
 boolean isSingleton()
          Indicates whether or not this adapter is a singleton
 
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
 

Field Detail

isSingleton

protected volatile boolean isSingleton
Indicates whether or not it should be managed as a singleton


exocontainer

protected final ExoContainer exocontainer
.


container

protected final ConcurrentContainer container
.

Constructor Detail

MX4JComponentAdapter

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

getComponentInstance

public T getComponentInstance()
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.

Returns:
the component instance.

isSingleton

public boolean isSingleton()
Indicates whether or not this adapter is a singleton


eXo Kernel :: Container 2.5.0-Alpha1

Copyright © 2013 eXo Platform SAS. All Rights Reserved.