Class ManagementContextImpl
java.lang.Object
org.exoplatform.container.management.ManagementContextImpl
- All Implemented Interfaces:
ManagementContext,ManagedResource
- Version:
- $Revision$
- Author:
- Julien Viet
-
Constructor Summary
ConstructorsConstructorDescriptionManagementContextImpl(ManageableContainer container) ManagementContextImpl(ManagementContextImpl parent, Object resource, ManagedTypeMetaData typeMD) ManagementContextImpl(ManagementContextImpl parent, ManageableContainer container) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterInvoke(Object managedResource) After a managed resource is invoked by the management layer.voidbeforeInvoke(Object managedResource) Before a managed resource is invoked by the management layer.Returns the resource meta data.The resource implementation.<S> List<S> getScopingData(Class<S> scopeType) Returns the scoping data of the context.voidRegister an object as a managed object.<S> voidsetScopingData(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.toString()voidunregister(Object o) Unregisters an object from its managed life cycle.voidUnmanages (unregisters) all early registered MBeans in ManagementProviders
-
Constructor Details
-
ManagementContextImpl
-
ManagementContextImpl
-
ManagementContextImpl
public ManagementContextImpl(ManagementContextImpl parent, Object resource, ManagedTypeMetaData typeMD)
-
-
Method Details
-
getParent
-
setScopingData
Description copied from interface:ManagedResourceCallback made by the provider to the resource to signal that scoping data that is used for the managed resource.- Specified by:
setScopingDatain interfaceManagedResource- Type Parameters:
S- the generic type of the scope type- Parameters:
scopeType- the scope typescopingData- the scoping data
-
register
Description copied from interface:ManagementContextRegister an object as a managed object.- Specified by:
registerin interfaceManagementContext- Parameters:
o- the object to be managed
-
unregister
Unregisters an object from its managed life cycle.- Specified by:
unregisterin interfaceManagementContext- Parameters:
o- the object to be unmanaged
-
unregisterAll
public void unregisterAll()Unmanages (unregisters) all early registered MBeans in ManagementProviders -
getScopingData
Description copied from interface:ManagedResourceReturns the scoping data of the context. The list contains the scoping properties registered by the provider if a call has been made to theManagedResource.setScopingData(Class, Object)method plus the scoping properties of the parent context.- Specified by:
getScopingDatain interfaceManagedResource- Type Parameters:
S- the generic type of the scope type- Parameters:
scopeType- the scope type- Returns:
- the scoping properties
-
findContainer
-
beforeInvoke
Description copied from interface:ManagedResourceBefore a managed resource is invoked by the management layer.- Specified by:
beforeInvokein interfaceManagedResource- Parameters:
managedResource- the managed resource
-
afterInvoke
Description copied from interface:ManagedResourceAfter a managed resource is invoked by the management layer.- Specified by:
afterInvokein interfaceManagedResource- Parameters:
managedResource- the managed resource
-
toString
-
getResource
Description copied from interface:ManagedResourceThe resource implementation.- Specified by:
getResourcein interfaceManagedResource- Returns:
- the resource
-
getMetaData
Description copied from interface:ManagedResourceReturns the resource meta data.- Specified by:
getMetaDatain interfaceManagedResource- Returns:
- the meta data
-