org.ow2.jonas.lib.tenant.interceptor.jmx
Class JMXTenantIdInterceptor

java.lang.Object
  extended by org.ow2.jonas.lib.tenant.interceptor.jmx.JMXTenantIdInterceptor
All Implemented Interfaces:
org.ow2.jonas.jmx.Interceptor

public class JMXTenantIdInterceptor
extends Object
implements org.ow2.jonas.jmx.Interceptor

Intercept MBeanServer's call and add tenant-id attribute

Author:
Mohammed Boukada

Constructor Summary
JMXTenantIdInterceptor(String tenantIdAttributeName, boolean allowToAccessPlatformMBeans)
          Construct an Interceptor
 
Method Summary
 Object invoke(InvocationContext invocationContext)
          Invoke interceptor method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXTenantIdInterceptor

public JMXTenantIdInterceptor(String tenantIdAttributeName,
                              boolean allowToAccessPlatformMBeans)
Construct an Interceptor

Parameters:
tenantIdAttributeName -
allowToAccessPlatformMBeans -
Method Detail

invoke

public Object invoke(InvocationContext invocationContext)
              throws Exception
Invoke interceptor method

Specified by:
invoke in interface org.ow2.jonas.jmx.Interceptor
Parameters:
invocationContext - use to apply the interceptors sequence
Returns:
invocation results
Throws:
Exception


Copyright © 2013 OW2 Consortium. All Rights Reserved.