eXo Kernel :: Container 2.5.0-Alpha2

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, javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.PassivationCapable, ComponentAdapter<T>
Direct Known Subclasses:
ManageableComponentAdapter

public class MX4JComponentAdapter<T>
extends AbstractComponentAdapter<T>
implements javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.PassivationCapable

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
          .
 
Constructor Summary
MX4JComponentAdapter(ExoContainer holder, ConcurrentContainer container, Object key, Class<T> implementation)
           
 
Method Summary
 T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
          
 void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
          
 boolean equals(Object obj)
          
 T getComponentInstance()
          Retrieve the component instance.
 String getId()
          
 Class<? extends Annotation> getScope()
          Gives the scope of the adapter
 int hashCode()
          
 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, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

exocontainer

protected final transient ExoContainer exocontainer
.


container

protected final transient 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.

getScope

public Class<? extends Annotation> getScope()
Gives the scope of the adapter


isSingleton

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


create

public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)

Specified by:
create in interface javax.enterprise.context.spi.Contextual<T>

destroy

public void destroy(T instance,
                    javax.enterprise.context.spi.CreationalContext<T> creationalContext)

Specified by:
destroy in interface javax.enterprise.context.spi.Contextual<T>

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

getId

public String getId()

Specified by:
getId in interface javax.enterprise.inject.spi.PassivationCapable

eXo Kernel :: Container 2.5.0-Alpha2

Copyright © 2013 eXo Platform SAS. All Rights Reserved.