eXo Kernel :: Container 2.4.13-GA

org.exoplatform.container.mc
Interface MCIntegration


public interface MCIntegration

The interface used to loosely couple mc-integration to exo-container

Author:
Marko Strukelj

Method Summary
 org.picocontainer.ComponentAdapter getMCAdapter(org.picocontainer.ComponentAdapter componentAdapter)
          Apply mc-integration interception.
 boolean hasMCKernel(org.picocontainer.ComponentAdapter adapter)
          Check if JBoss MC Kernel is available.
 void initThreadCtx(javax.servlet.ServletContext ctx)
          Initialize thread context with mc kernel retrieved through ServletContext.
 void resetThreadCtx(javax.servlet.ServletContext ctx)
          Clean up any thread context data stored during initThreadCtx().
 

Method Detail

getMCAdapter

org.picocontainer.ComponentAdapter getMCAdapter(org.picocontainer.ComponentAdapter componentAdapter)
Apply mc-integration interception.

Parameters:
componentAdapter - the original component adapter
Returns:
appropriate compomnent adapter - either the original, or one wrapping the original with mc-integration wrapper

hasMCKernel

boolean hasMCKernel(org.picocontainer.ComponentAdapter adapter)
Check if JBoss MC Kernel is available.

Parameters:
adapter -
Returns:
true if mc kernel is available

initThreadCtx

void initThreadCtx(javax.servlet.ServletContext ctx)
Initialize thread context with mc kernel retrieved through ServletContext.

Parameters:
ctx - Servlet context

resetThreadCtx

void resetThreadCtx(javax.servlet.ServletContext ctx)
Clean up any thread context data stored during initThreadCtx().

Parameters:
ctx - Servlet context

eXo Kernel :: Container 2.4.13-GA

Copyright © 2015 eXo Platform SAS. All Rights Reserved.