|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.AbstractComponentAdapter<T>
org.exoplatform.container.jmx.MX4JComponentAdapter<T>
public class MX4JComponentAdapter<T>
| Field Summary | |
|---|---|
protected ExoContainer |
exocontainer
. |
protected T |
instance_
|
protected boolean |
isInitialized
|
protected boolean |
isSingleton
Indicates whether or not it should be managed as a singleton |
protected Lock |
lock
|
protected AtomicReference<Class<? extends Annotation>> |
scope
The scope of the adapter |
| Constructor Summary | |
|---|---|
|
MX4JComponentAdapter(ExoContainer holder,
ConcurrentContainer container,
Object key,
Class<T> implementation)
|
protected |
MX4JComponentAdapter(ExoContainer holder,
ConcurrentContainer container,
Object key,
Class<T> implementation,
Lock lock)
|
| Method Summary | |
|---|---|
protected T |
create()
Must be used to create Singleton or Prototype only |
T |
create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
protected T |
createInstance(javax.enterprise.context.spi.Context ctx)
|
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 |
protected static Method |
getSetMethod(Class<?> clazz,
String name,
Class<?> pluginClass)
Finds the best "set method" according to the given method name and type of plugin |
int |
hashCode()
|
boolean |
isSingleton()
Indicates whether or not this adapter is a singleton |
protected boolean |
manageScope(boolean isSingleton,
boolean isInitialized,
boolean hasInjectableConstructor,
boolean isInjectPresent)
Defines the scope of the component |
| 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 |
|---|
protected transient volatile T instance_
protected final transient Lock lock
protected volatile boolean isSingleton
protected transient volatile boolean isInitialized
protected final transient AtomicReference<Class<? extends Annotation>> scope
protected final transient ExoContainer exocontainer
| Constructor Detail |
|---|
public MX4JComponentAdapter(ExoContainer holder,
ConcurrentContainer container,
Object key,
Class<T> implementation)
protected MX4JComponentAdapter(ExoContainer holder,
ConcurrentContainer container,
Object key,
Class<T> implementation,
Lock lock)
| Method Detail |
|---|
public T getComponentInstance()
ComponentAdapter
public Class<? extends Annotation> getScope()
protected T createInstance(javax.enterprise.context.spi.Context ctx)
public boolean isSingleton()
protected static Method getSetMethod(Class<?> clazz,
String name,
Class<?> pluginClass)
clazz - the Class of the target componentname - the name of the methodpluginClass - the Class of the plugin
protected T create()
public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
create in interface javax.enterprise.context.spi.Contextual<T>
public void destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
destroy in interface javax.enterprise.context.spi.Contextual<T>public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String getId()
getId in interface javax.enterprise.inject.spi.PassivationCapable
protected boolean manageScope(boolean isSingleton,
boolean isInitialized,
boolean hasInjectableConstructor,
boolean isInjectPresent)
true if the component is considered as a singleton,
false otherwise.
|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||