org.jboss.mq.server.jmx
public class: InterceptorLoader [javadoc |
source]
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.mq.server.jmx.InterceptorMBeanSupport
org.jboss.mq.server.jmx.InterceptorLoader
All Implemented Interfaces:
InterceptorLoaderMBean, InterceptorMBean, KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter
Adapts JBossMQService to deliver JMSServerInvoker.
| Methods from org.jboss.system.ServiceMBeanSupport: |
|---|
|
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, startService, stop, stopService, unsetKernelControllerContext |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.jboss.mq.server.jmx.InterceptorLoader Detail: |
public JMSServerInterceptor getInterceptor() {
return interceptor;
}
Gets the JMSServer attribute of the JBossMQService object, here we
wrap the server in the invoker loaded. |
public String getInterceptorClass() throws Exception {
return interceptor.getClass().getName();
}
|
public void setInterceptorClass(String c) throws Exception {
interceptor = (JMSServerInterceptor) Thread.currentThread().getContextClassLoader().loadClass(c).newInstance();
}
|
protected void startService() throws Exception {
if (interceptor == null)
throw new IllegalStateException("The interceptor class was not set (null)");
super.startService();
}
|