Class ManagementContextImpl

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

public class ManagementContextImpl extends Object implements ManagementContext, ManagedResource
Version:
$Revision$
Author:
Julien Viet
  • Constructor Details

  • Method Details

    • 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 ManageableContainer 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