eXo Kernel :: MC Kernel Integration :: Implementation 2.4.13-GA

org.exoplatform.container.mc.impl
Class MCIntegrationImpl

java.lang.Object
  extended by org.exoplatform.container.mc.impl.MCIntegrationImpl
All Implemented Interfaces:
MCIntegration

public class MCIntegrationImpl
extends Object
implements MCIntegration

Implementation of MCIntegration that contains hard dependencies on JBoss Microcontainer. There is a reflection style dependency on this class in MCIntegrationInvoker.

Author:
Marko Strukelj

Method Summary
static MCIntegration getInstance()
          A factory method.
 org.picocontainer.ComponentAdapter getMCAdapter(org.picocontainer.ComponentAdapter adapter)
          Check if component should pass through mc kernel injection based on class annotations, and mc-int-config.xml configuration.
 org.jboss.kernel.plugins.dependency.AbstractKernelController getRootController()
          Get kernel controller associated with appropriate mc kernel
 boolean hasMCKernel(org.picocontainer.ComponentAdapter adapter)
           
 void initThreadCtx(javax.servlet.ServletContext ctx)
           
 void resetThreadCtx(javax.servlet.ServletContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MCIntegration getInstance()
A factory method. In principle can return different implementations based on the running environment. Currently only one implementation exists.


getRootController

public org.jboss.kernel.plugins.dependency.AbstractKernelController getRootController()
Get kernel controller associated with appropriate mc kernel

Returns:
kernel controller

getMCAdapter

public org.picocontainer.ComponentAdapter getMCAdapter(org.picocontainer.ComponentAdapter adapter)
Check if component should pass through mc kernel injection based on class annotations, and mc-int-config.xml configuration. Wrap with intercepting component adapter (@link MCComponentAdapter} or return original adapter.

Specified by:
getMCAdapter in interface MCIntegration
See Also:
MCIntegration.getMCAdapter(org.picocontainer.ComponentAdapter)

hasMCKernel

public boolean hasMCKernel(org.picocontainer.ComponentAdapter adapter)
Specified by:
hasMCKernel in interface MCIntegration
See Also:
MCIntegration.hasMCKernel(org.picocontainer.ComponentAdapter)

initThreadCtx

public void initThreadCtx(javax.servlet.ServletContext ctx)
Specified by:
initThreadCtx in interface MCIntegration
See Also:
MCIntegration.initThreadCtx(javax.servlet.ServletContext)

resetThreadCtx

public void resetThreadCtx(javax.servlet.ServletContext ctx)
Specified by:
resetThreadCtx in interface MCIntegration
See Also:
MCIntegration.resetThreadCtx(javax.servlet.ServletContext)

eXo Kernel :: MC Kernel Integration :: Implementation 2.4.13-GA

Copyright © 2015 eXo Platform SAS. All Rights Reserved.