| |
|
| java.lang.Object org.jboss.mx.interceptor.AbstractInterceptor org.jboss.mx.interceptor.AbstractSharedInterceptor
All known Subclasses: test.implementation.interceptor.support.MySharedInterceptor,
Method Summary | |
protected ObjectName | createObjectName() Creates an object name for this interceptor. | public void | destroy() This method is part of the interceptor MBean's registration lifecycle.
It is called after the MBean has been unregistered from the server. | public MBeanServer | getMBeanServer() | public ObjectName | getObjectName() | public void | init() This method is part of the interceptor MBean's registration lifecycle.
It is called before the MBean is registered to the server. | public void | postDeregister() | public void | postRegister(Boolean registrationSuccesful) | public void | preDeregister() | public ObjectName | preRegister(MBeanServer server, ObjectName oname) | public synchronized ObjectName | register(MBeanServer server) Registers the interceptor to the MBean server. | public synchronized void | setName(String name) Shared interceptors allows their name to be set only before they have
been registered to the MBean server. | public void | start() This method is part of the interceptor MBean's registration lifecycle.
It is called after the MBean is registered to the server. | public void | stop() This method is part of the interceptor MBean's registration lifecycle.
It is called before the MBean is unregistered from the server. | public String | toString() Returns a string representation of this interceptor instance. |
objectName | protected ObjectName objectName(Code) | | Object name of this interceptor. Shared interceptors must always contain
a valid object name.
|
server | protected MBeanServer server(Code) | | MBean server reference for shared interceptors.
|
AbstractSharedInterceptor | public AbstractSharedInterceptor()(Code) | | Constructs a new shared interceptor instance. The interceptor is not
automatically registered to the MBean server. Notice that the interceptor
name must be set before the call to
AbstractSharedInterceptor.register method. Shared
interceptor names must be unique within the MBean server.
|
AbstractSharedInterceptor | public AbstractSharedInterceptor(String name)(Code) | | Constructs a new shared interceptor instance with a given name. The interceptor
is not automatically registered to the MBean server. Notice that the
shared interceptor name must be unique name among all shared interceptors
within the MBean server.
Parameters: name - name of this interceptor throws: IllegalArgumentException - if name contains null reference |
createObjectName | protected ObjectName createObjectName() throws MalformedObjectNameException(Code) | | Creates an object name for this interceptor. The object name contains a
type property and a name property. Property type
always contains string 'Interceptor' as its value. Interceptor's
name is used as a value for the name property. Therefore, an
interceptor created with name 'Bart' will generate an object name
matching to pattern:
org.jboss.mx.service.ServiceConstants.JBOSSMX_DOMAIN JBOSSMX_DOMAIN :type=Interceptor,name=Bart,*
generated object name for this interceptor throws: MalformedObjectNameException - if the object name could not becreated |
destroy | public void destroy()(Code) | | 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.
|
init | public void init() throws Exception(Code) | | 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.
throws: Exception - if you want to cancel the interceptor registration |
postDeregister | public void postDeregister()(Code) | | |
postRegister | public void postRegister(Boolean registrationSuccesful)(Code) | | |
register | public synchronized ObjectName register(MBeanServer server) throws InterceptorNameConflictException(Code) | | Registers the interceptor to the MBean server.
The interceptor is registered under the
org.jboss.mx.service.ServiceConstants.JBOSSMX_DOMAIN JBOSSMX_DOMAIN name. An interceptor's object name contains a type property and
a name property. Property type always contains string
'Interceptor' as its value. Interceptor's name is used as a value
for the name property. Therefore, an interceptor created with
name 'Bart' can be found from the MBean server under object name:
org.jboss.mx.service.ServiceConstants.JBOSSMX_DOMAIN JBOSSMX_DOMAIN :type=Interceptor,name=Bart,*
If the log reference has not been set for this interceptor when it is
registered, this implementation will register a log MBean via the system
log manager under
org.jboss.mx.service.ServiceConstants.JBOSSMX_DOMAIN JBOSSMX domain (see
org.jboss.mx.logging.SystemLogManager SystemLogManager for details). The log instance's name will match the pattern:
"JBossMX.Interceptor.<interceptor name>"
Parameters: server - MBean server where this shared interceptor is registered |
setName | public synchronized void setName(String name)(Code) | | Shared interceptors allows their name to be set only before they have
been registered to the MBean server. After that the name is fixed and
any attempt to invoke this method to change the name will yield a
IllegalArgumentException.
Parameters: name - name of this shared interceptor throws: IllegalArgumentException - if there was an attempt to change thename after the interceptor had been registered to the server |
start | public void start()(Code) | | 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.
|
stop | public void stop() throws Exception(Code) | | 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.
throws: Exception - if you want to cancel the interceptor unregistration |
toString | public String toString()(Code) | | Returns a string representation of this interceptor instance.
string representation |
|
|
|