eXo Kernel :: Container Multi-Threaded 2.5.0-CR2

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

java.lang.Object
  extended by org.exoplatform.container.AbstractComponentAdapter<T>
      extended by org.exoplatform.container.jmx.MX4JComponentAdapter<T>
          extended by org.exoplatform.container.jmx.MX4JComponentAdapterMT<T>
All Implemented Interfaces:
Serializable, javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.PassivationCapable, ComponentAdapterDependenciesAware<T>, DependencyStackListener, ComponentAdapter<T>
Direct Known Subclasses:
ManageableComponentAdapterMT

public class MX4JComponentAdapterMT<T>
extends MX4JComponentAdapter<T>
implements DependencyStackListener, ComponentAdapterDependenciesAware<T>

Version:
$Id$
Author:
Nicolas Filotto
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.exoplatform.container.jmx.MX4JComponentAdapter
exocontainer, instance_, isInitialized, isSingleton, lock, scope
 
Constructor Summary
MX4JComponentAdapterMT(ExoContainer holder, ConcurrentContainerMT container, Object key, Class<T> implementation)
           
 
Method Summary
 void callDependency(ComponentTask<?> task, Dependency dep)
          Used to trigger an action in case we are trying to call a dependency
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)
           
protected  T doCreate()
          Must be used to create Singleton or Prototype only
protected  T doCreate(boolean useSharedMemory)
          Must be used to create Singleton or Prototype only
 Collection<Dependency> getCreateDependencies()
          Gives the create dependencies of the component
protected  ComponentTask<T> getCreateTask()
          
 Collection<Dependency> getInitDependencies()
          Gives the initialization dependencies of the component
protected  Collection<ComponentTask<Void>> getInitTasks()
          
protected  void setCreateDependencies(List<Dependency> lDependencies)
           
 
Methods inherited from class org.exoplatform.container.jmx.MX4JComponentAdapter
destroy, equals, getComponentInstance, getId, getScope, getSetMethod, hashCode, isSingleton, manageScope
 
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
 
Methods inherited from interface org.exoplatform.container.spi.ComponentAdapter
getComponentImplementation, getComponentInstance, getComponentKey, isSingleton
 

Constructor Detail

MX4JComponentAdapterMT

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

getCreateDependencies

public Collection<Dependency> getCreateDependencies()
Gives the create dependencies of the component

Specified by:
getCreateDependencies in interface ComponentAdapterDependenciesAware<T>
Returns:
a Collection of Dependency objects representing the dependencies of the component for the creation phase

getInitDependencies

public Collection<Dependency> getInitDependencies()
Gives the initialization dependencies of the component

Specified by:
getInitDependencies in interface ComponentAdapterDependenciesAware<T>
Returns:
a Collection of Dependency objects representing the dependencies of the component for the initialization phase

callDependency

public void callDependency(ComponentTask<?> task,
                           Dependency dep)
Used to trigger an action in case we are trying to call a dependency

Specified by:
callDependency in interface DependencyStackListener

getCreateTask

protected ComponentTask<T> getCreateTask()


setCreateDependencies

protected void setCreateDependencies(List<Dependency> lDependencies)

getInitTasks

protected Collection<ComponentTask<Void>> getInitTasks()


createInstance

protected T createInstance(javax.enterprise.context.spi.Context ctx)
Overrides:
createInstance in class MX4JComponentAdapter<T>

create

protected T create()
Must be used to create Singleton or Prototype only

Overrides:
create in class MX4JComponentAdapter<T>

doCreate

protected T doCreate()
Must be used to create Singleton or Prototype only


doCreate

protected T doCreate(boolean useSharedMemory)
Must be used to create Singleton or Prototype only


create

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

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

eXo Kernel :: Container Multi-Threaded 2.5.0-CR2

Copyright © 2014 eXo Platform SAS. All Rights Reserved.