eXo Kernel :: Container 2.4.11-UXP01

org.exoplatform.container.management
Class ManagementContextImpl

java.lang.Object
  extended by org.exoplatform.container.management.ManagementContextImpl
All Implemented Interfaces:
ManagementContext, ManagedResource

public class ManagementContextImpl
extends Object
implements ManagementContext, ManagedResource

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
ManagementContextImpl(ManageableContainer container)
           
ManagementContextImpl(ManagementContextImpl parent, ManageableContainer container)
           
ManagementContextImpl(ManagementContextImpl parent, Object resource, ManagedTypeMetaData typeMD)
           
 
Method Summary
 void afterInvoke(Object managedResource)
          After a managed resource is invoked by the management layer.
 void beforeInvoke(Object managedResource)
          Before a managed resource is invoked by the management layer.
 ExoContainer findContainer()
           
 ManagedTypeMetaData getMetaData()
          Returns the resource meta data.
 ManagementContext getParent()
           
 Object getResource()
          The resource implementation.
<S> List<S>
getScopingData(Class<S> scopeType)
          Returns the scoping data of the context.
 void register(Object o)
          Register an object as a managed object.
<S> void
setScopingData(Class<S> scopeType, S scopingData)
          Callback made by the provider to the resource to signal that scoping data that is used for the managed resource.
 String toString()
           
 void unregister(Object o)
          Unregisters an object from its managed life cycle.
 void unregisterAll()
          Unmanages (unregisters) all early registered MBeans in ManagementProviders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManagementContextImpl

public ManagementContextImpl(ManageableContainer container)

ManagementContextImpl

public ManagementContextImpl(ManagementContextImpl parent,
                             ManageableContainer container)

ManagementContextImpl

public ManagementContextImpl(ManagementContextImpl parent,
                             Object resource,
                             ManagedTypeMetaData typeMD)
Method Detail

getParent

public ManagementContext getParent()

setScopingData

public <S> void setScopingData(Class<S> scopeType,
                               S scopingData)
Description copied from interface: ManagedResource
Callback made by the provider to the resource to signal that scoping data that is used for the managed resource.

Specified by:
setScopingData in interface ManagedResource
Type Parameters:
S - the generic type of the scope type
Parameters:
scopeType - the scope type
scopingData - the scoping data

register

public void register(Object o)
Description copied from interface: ManagementContext
Register an object as a managed object.

Specified by:
register in interface ManagementContext
Parameters:
o - the object to be managed

unregister

public void unregister(Object o)
Unregisters an object from its managed life cycle.

Specified by:
unregister in interface ManagementContext
Parameters:
o - the object to be unmanaged

unregisterAll

public void unregisterAll()
Unmanages (unregisters) all early registered MBeans in ManagementProviders


getScopingData

public <S> List<S> getScopingData(Class<S> scopeType)
Description copied from interface: ManagedResource
Returns the scoping data of the context. The list contains the scoping properties registered by the provider if a call has been made to the ManagedResource.setScopingData(Class, Object) method plus the scoping properties of the parent context.

Specified by:
getScopingData in interface ManagedResource
Type Parameters:
S - the generic type of the scope type
Parameters:
scopeType - the scope type
Returns:
the scoping properties

findContainer

public ExoContainer findContainer()

beforeInvoke

public void beforeInvoke(Object managedResource)
Description copied from interface: ManagedResource
Before a managed resource is invoked by the management layer.

Specified by:
beforeInvoke in interface ManagedResource
Parameters:
managedResource - the managed resource

afterInvoke

public void afterInvoke(Object managedResource)
Description copied from interface: ManagedResource
After a managed resource is invoked by the management layer.

Specified by:
afterInvoke in interface ManagedResource
Parameters:
managedResource - the managed resource

toString

public String toString()
Overrides:
toString in class Object

getResource

public Object getResource()
Description copied from interface: ManagedResource
The resource implementation.

Specified by:
getResource in interface ManagedResource
Returns:
the resource

getMetaData

public ManagedTypeMetaData getMetaData()
Description copied from interface: ManagedResource
Returns the resource meta data.

Specified by:
getMetaData in interface ManagedResource
Returns:
the meta data

eXo Kernel :: Container 2.4.11-UXP01

Copyright © 2014 eXo Platform SAS. All Rights Reserved.