org.jboss.security.plugins.samples
Class DatabaseRealmMappingService
java.lang.Object
|
+--javax.management.NotificationBroadcasterSupport
|
+--org.jboss.util.ServiceMBeanSupport
|
+--org.jboss.security.plugins.samples.DatabaseRealmMappingService
- All Implemented Interfaces:
- DatabaseRealmMappingServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.naming.spi.ObjectFactory, Service, ServiceMBean
- public class DatabaseRealmMappingService
- extends ServiceMBeanSupport
- implements DatabaseRealmMappingServiceMBean, javax.naming.spi.ObjectFactory
This is a JMX service which manages access to security realms for a bean.
The service creates it and binds a Reference to it into JNDI.
- Author:
- Daniel O'Connor docodan@nycap.rr.com
- See Also:
EJBSecurityManager
Field Summary |
static java.lang.String |
JNDI_NAME
|
Method Summary |
java.lang.String |
getName()
|
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment)
|
protected javax.management.ObjectName |
getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
protected void |
initService()
|
protected void |
startService()
|
protected void |
stopService()
|
Methods inherited from class org.jboss.util.ServiceMBeanSupport |
destroy, destroyService, getState, getStateString, init, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JNDI_NAME
public static java.lang.String JNDI_NAME
DatabaseRealmMappingService
public DatabaseRealmMappingService()
getName
public java.lang.String getName()
- Specified by:
getName
in interface ServiceMBean
- Overrides:
getName
in class ServiceMBeanSupport
getObjectName
protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws javax.management.MalformedObjectNameException
- Overrides:
getObjectName
in class ServiceMBeanSupport
initService
protected void initService()
throws java.lang.Exception
- Overrides:
initService
in class ServiceMBeanSupport
startService
protected void startService()
throws java.lang.Exception
- Overrides:
startService
in class ServiceMBeanSupport
stopService
protected void stopService()
- Overrides:
stopService
in class ServiceMBeanSupport
getObjectInstance
public java.lang.Object getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment)
throws java.lang.Exception
- Specified by:
getObjectInstance
in interface javax.naming.spi.ObjectFactory
Copyright © 2000 The JBoss Organization. All Rights Reserved.