Package org.exoplatform.management.spi
Interface ManagedResource
- All Superinterfaces:
ManagementContext
- All Known Implementing Classes:
ManagementContextImpl
The managed resource provided by the kernel to a management provider. It gives access
to the resource itself, the meta data of the managed resource, the attached scoped data
and the before/after invoke contract when a resource is invoked from the management layer.
- Version:
- $Revision$
- Author:
- Julien Viet
-
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.<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.Methods inherited from interface org.exoplatform.management.ManagementContext
register, unregister
-
Method Details
-
getResource
Object getResource()The resource implementation.- Returns:
- the resource
-
getMetaData
ManagedTypeMetaData getMetaData()Returns the resource meta data.- Returns:
- the meta data
-
getScopingData
Returns the scoping data of the context. The list contains the scoping properties registered by the provider if a call has been made to thesetScopingData(Class, Object)method plus the scoping properties of the parent context.- Type Parameters:
S- the generic type of the scope type- Parameters:
scopeType- the scope type- Returns:
- the scoping properties
-
setScopingData
Callback made by the provider to the resource to signal that scoping data that is used for the managed resource.- Type Parameters:
S- the generic type of the scope type- Parameters:
scopeType- the scope typescopingData- the scoping data
-
beforeInvoke
Before a managed resource is invoked by the management layer.- Parameters:
managedResource- the managed resource
-
afterInvoke
After a managed resource is invoked by the management layer.- Parameters:
managedResource- the managed resource
-