public class ManagementContextImpl extends Object implements ManagementContext, ManagedResource
| Constructor and Description |
|---|
ManagementContextImpl(ManageableContainer container) |
ManagementContextImpl(ManagementContextImpl parent,
ManageableContainer container) |
ManagementContextImpl(ManagementContextImpl parent,
Object resource,
ManagedTypeMetaData typeMD) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
ManageableContainer |
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
|
public ManagementContextImpl(ManageableContainer container)
public ManagementContextImpl(ManagementContextImpl parent, ManageableContainer container)
public ManagementContextImpl(ManagementContextImpl parent, Object resource, ManagedTypeMetaData typeMD)
public ManagementContext getParent()
public <S> void setScopingData(Class<S> scopeType, S scopingData)
ManagedResourcesetScopingData in interface ManagedResourceS - the generic type of the scope typescopeType - the scope typescopingData - the scoping datapublic void register(Object o)
ManagementContextregister in interface ManagementContexto - the object to be managedpublic void unregister(Object o)
unregister in interface ManagementContexto - the object to be unmanagedpublic void unregisterAll()
public <S> List<S> getScopingData(Class<S> scopeType)
ManagedResourceManagedResource.setScopingData(Class, Object)
method plus the scoping properties of the parent context.getScopingData in interface ManagedResourceS - the generic type of the scope typescopeType - the scope typepublic ManageableContainer findContainer()
public void beforeInvoke(Object managedResource)
ManagedResourcebeforeInvoke in interface ManagedResourcemanagedResource - the managed resourcepublic void afterInvoke(Object managedResource)
ManagedResourceafterInvoke in interface ManagedResourcemanagedResource - the managed resourcepublic Object getResource()
ManagedResourcegetResource in interface ManagedResourcepublic ManagedTypeMetaData getMetaData()
ManagedResourcegetMetaData in interface ManagedResourceCopyright © 2019 eXo Platform SAS. All Rights Reserved.