test.implementation.interceptor.support
Class MySharedInterceptor

java.lang.Object
  extended byorg.jboss.mx.interceptor.AbstractInterceptor (src) 
      extended byorg.jboss.mx.interceptor.AbstractSharedInterceptor (src) 
          extended bytest.implementation.interceptor.support.MySharedInterceptor
All Implemented Interfaces:
Interceptor (src) , MBeanRegistration (src) , SharedInterceptor (src)

public class MySharedInterceptor
extends AbstractSharedInterceptor (src)


Field Summary
 boolean isDestroy
           
 boolean isInit
           
 boolean isStart
           
 boolean isStop
           
 
Fields inherited from class org.jboss.mx.interceptor.AbstractSharedInterceptor (src)
objectName, server
 
Fields inherited from class org.jboss.mx.interceptor.AbstractInterceptor (src)
isShared, log, name
 
Constructor Summary
MySharedInterceptor()
           
 
Method Summary
 void destroy()
          This method is part of the interceptor MBean's registration lifecycle.
 void init()
          This method is part of the interceptor MBean's registration lifecycle.
 java.lang.Object invoke(Invocation (src)  i)
          The invoke method is called when the invocation object passes this interceptor.
 void start()
          This method is part of the interceptor MBean's registration lifecycle.
 void stop()
          This method is part of the interceptor MBean's registration lifecycle.
 
Methods inherited from class org.jboss.mx.interceptor.AbstractSharedInterceptor (src)
createObjectName, getMBeanServer, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setName, toString
 
Methods inherited from class org.jboss.mx.interceptor.AbstractInterceptor (src)
getName, isShared, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.mx.interceptor.Interceptor (src)
getName, isShared, setLogger
 

Field Detail

isInit

public boolean isInit

isStart

public boolean isStart

isStop

public boolean isStop

isDestroy

public boolean isDestroy
Constructor Detail

MySharedInterceptor

public MySharedInterceptor()
Method Detail

invoke

public java.lang.Object invoke(Invocation (src)  i)
                        throws java.lang.Throwable
Description copied from interface: Interceptor (src)
The invoke method is called when the invocation object passes this interceptor.

Specified by:
invoke in interface Interceptor (src)
Overrides:
invoke in class AbstractInterceptor (src)
Parameters:
i - the invocation object send towards the target resource by the invoker
Returns:
return value from the target resource
Throws:
java.lang.Throwable
See Also:
Invocation (src) , MBeanInvoker (src)

init

public void init()
          throws java.lang.Exception
Description copied from class: AbstractSharedInterceptor (src)
This method is part of the interceptor MBean's registration lifecycle. It is called before the MBean is registered to the server. Concrete interceptor implementations can override this method to provide initialization code that should be executed before the interceptor is registered.

Any exception that is propagated from this method to its caller will cancel the interceptor registration.

Specified by:
init in interface Interceptor (src)
Overrides:
init in class AbstractSharedInterceptor (src)
Throws:
java.lang.Exception - if you want to cancel the interceptor registration

start

public void start()
Description copied from class: AbstractSharedInterceptor (src)
This method is part of the interceptor MBean's registration lifecycle. It is called after the MBean is registered to the server. Concrete interceptor implementations can override this method to provide initialization code that should be executed once the MBean server and object name references for this interceptor have been resolved.

Specified by:
start in interface Interceptor (src)
Overrides:
start in class AbstractSharedInterceptor (src)

stop

public void stop()
          throws java.lang.Exception
Description copied from class: AbstractSharedInterceptor (src)
This method is part of the interceptor MBean's registration lifecycle. It is called before the MBean is unregistered from the server. Concrete interceptor implementations can override this method to provide cleanup code that should be executed before the interceptor is unregistered.

Any exception that is propagated from this method to its caller will cancel the interceptor unregistration.

Specified by:
stop in interface Interceptor (src)
Overrides:
stop in class AbstractSharedInterceptor (src)
Throws:
java.lang.Exception - if you want to cancel the interceptor unregistration

destroy

public void destroy()
Description copied from class: AbstractSharedInterceptor (src)
This method is part of the interceptor MBean's registration lifecycle. It is called after the MBean has been unregistered from the server. Concrete interceptor implementations can override this method to provide cleanup code that should be executed once the interceptor is no longer registered to the MBean server.

Specified by:
destroy in interface Interceptor (src)
Overrides:
destroy in class AbstractSharedInterceptor (src)