org.ehcache.management.providers
Class CapabilityContextProvider
java.lang.Object
org.ehcache.management.providers.AbstractActionProvider<EhcacheManager,org.ehcache.management.providers.EhcacheManagerContext>
org.ehcache.management.providers.CapabilityContextProvider
- All Implemented Interfaces:
- ManagementProvider<EhcacheManager>
public class CapabilityContextProvider
- extends AbstractActionProvider<EhcacheManager,org.ehcache.management.providers.EhcacheManagerContext>
Method Summary |
java.lang.Object |
callAction(java.util.Map<java.lang.String,java.lang.String> context,
java.lang.String methodName,
java.lang.String[] argClassNames,
java.lang.Object[] args)
Call an action, if the provider supports this. |
org.terracotta.management.capabilities.context.CapabilityContext |
capabilityContext()
Get the context that the provided capabilities need to run. |
java.util.Collection<org.terracotta.management.context.ContextContainer> |
contexts()
|
protected org.ehcache.management.providers.EhcacheManagerContext |
createActionWrapper(EhcacheManager ehcacheManager)
|
java.lang.Class<EhcacheManager> |
managedType()
The class of managed objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CapabilityContextProvider
public CapabilityContextProvider()
createActionWrapper
protected org.ehcache.management.providers.EhcacheManagerContext createActionWrapper(EhcacheManager ehcacheManager)
- Specified by:
createActionWrapper
in class AbstractActionProvider<EhcacheManager,org.ehcache.management.providers.EhcacheManagerContext>
managedType
public java.lang.Class<EhcacheManager> managedType()
- Description copied from interface:
ManagementProvider
- The class of managed objects.
- Returns:
- a class.
capabilityContext
public org.terracotta.management.capabilities.context.CapabilityContext capabilityContext()
- Description copied from interface:
ManagementProvider
- Get the context that the provided capabilities need to run.
- Returns:
- the context requirements.
callAction
public java.lang.Object callAction(java.util.Map<java.lang.String,java.lang.String> context,
java.lang.String methodName,
java.lang.String[] argClassNames,
java.lang.Object[] args)
- Description copied from interface:
ManagementProvider
- Call an action, if the provider supports this.
- Parameters:
context
- the context.methodName
- the method name.argClassNames
- the class names of the method arguments.args
- the method arguments.
- Returns:
- the action's return value.
contexts
public java.util.Collection<org.terracotta.management.context.ContextContainer> contexts()