public class JBossWebEventHandlerAdapter extends CatalinaEventHandlerAdapter implements NotificationListener
eventHandler, factory, init, serverProvider, start
Constructor and Description |
---|
JBossWebEventHandlerAdapter(ContainerEventHandler eventHandler) |
JBossWebEventHandlerAdapter(ContainerEventHandler eventHandler,
MBeanServer server) |
JBossWebEventHandlerAdapter(ContainerEventHandler eventHandler,
MBeanServer server,
ServerProvider serverProvider,
CatalinaFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected void |
destroy(org.apache.catalina.Server server) |
void |
handleNotification(Notification notification,
Object object) |
int |
hashCode() |
protected void |
init(org.apache.catalina.Server server)
initialize server stuff: in jbossweb-2.1.x the server can't be destroyed so you could start (restart) one that needs
initializations...
|
protected boolean |
isAfterInit(org.apache.catalina.LifecycleEvent event) |
protected boolean |
isBeforeDestroy(org.apache.catalina.LifecycleEvent event) |
void |
setConnectorsStartedNotificationType(String type) |
void |
setConnectorsStoppedNotificationType(String type) |
void |
setServiceObjectName(ObjectName serviceObjectName) |
containerEvent, lifecycleEvent, propertyChange, start, stop, toObjectName
public JBossWebEventHandlerAdapter(ContainerEventHandler eventHandler)
public JBossWebEventHandlerAdapter(ContainerEventHandler eventHandler, MBeanServer server)
public JBossWebEventHandlerAdapter(ContainerEventHandler eventHandler, MBeanServer server, ServerProvider serverProvider, CatalinaFactory factory)
protected void init(org.apache.catalina.Server server)
CatalinaEventHandlerAdapter
init
in class CatalinaEventHandlerAdapter
protected void destroy(org.apache.catalina.Server server)
destroy
in class CatalinaEventHandlerAdapter
public void handleNotification(Notification notification, Object object)
handleNotification
in interface NotificationListener
NotificationListener.handleNotification(javax.management.Notification, java.lang.Object)
public void setServiceObjectName(ObjectName serviceObjectName)
serviceObjectName
- the name to serverObjectNamepublic void setConnectorsStoppedNotificationType(String type)
notificationType
- the notificationType to setpublic void setConnectorsStartedNotificationType(String type)
connectorsStartedNotificationType
- the connectorsStartedNotificationType to setpublic int hashCode()
hashCode
in class Object
Object.hashCode()
protected boolean isAfterInit(org.apache.catalina.LifecycleEvent event)
isAfterInit
in class CatalinaEventHandlerAdapter
protected boolean isBeforeDestroy(org.apache.catalina.LifecycleEvent event)
isBeforeDestroy
in class CatalinaEventHandlerAdapter
Copyright © 2015 JBoss by Red Hat. All rights reserved.