eXo Kernel :: Container 2.4.4-CLD

org.exoplatform.container.mc
Class MCIntegrationContainer

java.lang.Object
  extended by org.exoplatform.container.ConcurrentPicoContainer
      extended by org.exoplatform.container.mc.MCIntegrationContainer
All Implemented Interfaces:
Serializable, org.picocontainer.Disposable, org.picocontainer.MutablePicoContainer, org.picocontainer.PicoContainer, org.picocontainer.Startable
Direct Known Subclasses:
CachingContainer

public class MCIntegrationContainer
extends ConcurrentPicoContainer

Container class that serves as an interception point for MC integration.

Author:
Marko Strukelj
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.exoplatform.container.ConcurrentPicoContainer
ConcurrentPicoContainer.ContainerVisitor
 
Field Summary
 
Fields inherited from class org.exoplatform.container.ConcurrentPicoContainer
componentAdapterFactory
 
Constructor Summary
MCIntegrationContainer()
          Constructor that exposes super constructor.
MCIntegrationContainer(org.picocontainer.defaults.ComponentAdapterFactory componentAdapterFactory)
          Constructor that exposes super constructor.
MCIntegrationContainer(org.picocontainer.defaults.ComponentAdapterFactory componentAdapterFactory, org.picocontainer.PicoContainer parent)
          Constructor that exposes super constructor.
MCIntegrationContainer(org.picocontainer.PicoContainer parent)
          Constructor that exposes super constructor.
 
Method Summary
static boolean hasMCKernel(org.picocontainer.ComponentAdapter componentAdapter)
          Check if runtime environment supports mc integration.
 org.picocontainer.ComponentAdapter registerComponent(org.picocontainer.ComponentAdapter componentAdapter)
          Method interception that swaps the original component adapter for intercepting one for components that require mc integration.
 
Methods inherited from class org.exoplatform.container.ConcurrentPicoContainer
accept, accept, addChildContainer, addComponentToCtx, canBeDisposed, canBeStarted, canBeStopped, dispose, getComponentAdapter, getComponentAdapterOfType, getComponentAdapters, getComponentAdaptersOfType, getComponentInstance, getComponentInstanceOfType, getComponentInstances, getComponentInstancesOfType, getParent, makeChildContainer, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentImplementation, registerComponentInstance, registerComponentInstance, removeChildContainer, removeComponentFromCtx, start, stop, unregisterComponent, unregisterComponentByInstance, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCIntegrationContainer

public MCIntegrationContainer(org.picocontainer.defaults.ComponentAdapterFactory componentAdapterFactory,
                              org.picocontainer.PicoContainer parent)
Constructor that exposes super constructor.

Parameters:
componentAdapterFactory -
parent -

MCIntegrationContainer

public MCIntegrationContainer(org.picocontainer.PicoContainer parent)
Constructor that exposes super constructor.

Parameters:
parent -

MCIntegrationContainer

public MCIntegrationContainer(org.picocontainer.defaults.ComponentAdapterFactory componentAdapterFactory)
Constructor that exposes super constructor.

Parameters:
componentAdapterFactory -

MCIntegrationContainer

public MCIntegrationContainer()
Constructor that exposes super constructor.

Method Detail

registerComponent

public org.picocontainer.ComponentAdapter registerComponent(org.picocontainer.ComponentAdapter componentAdapter)
Method interception that swaps the original component adapter for intercepting one for components that require mc integration. If mc integration isn't available in the current runtime environment, then interception simply delegates to parent without interfering.

Specified by:
registerComponent in interface org.picocontainer.MutablePicoContainer
Overrides:
registerComponent in class ConcurrentPicoContainer
Parameters:
componentAdapter - original component adapter
Returns:
the original component adapter, or the intercepting component adapter that takes care of mc integration

hasMCKernel

public static boolean hasMCKernel(org.picocontainer.ComponentAdapter componentAdapter)
Check if runtime environment supports mc integration.

Parameters:
componentAdapter - original component adapter
Returns:
true if mc integration is supported

eXo Kernel :: Container 2.4.4-CLD

Copyright © 2013 eXo Platform SAS. All Rights Reserved.