org.apache.geronimo.j2ee.mejb
Class MEJB

java.lang.Object
  extended by org.apache.geronimo.j2ee.mejb.MEJB
All Implemented Interfaces:
Remote, EJBObject, Management

public class MEJB
extends Object
implements Management

GBean implementing Management interface and supplying proxies to act as the MEJB container.


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
MEJB(String objectName, MBeanServer mbeanServer)
           
MEJB(String objectName, MBeanServerReference mbeanServerReference)
           
 
Method Summary
 Object getAttribute(ObjectName objectName, String s)
           
 AttributeList getAttributes(ObjectName objectName, String[] strings)
           
 String getDefaultDomain()
           
 EJBHome getEJBHome()
           
static GBeanInfo getGBeanInfo()
           
 Handle getHandle()
           
 ListenerRegistration getListenerRegistry()
           
 Integer getMBeanCount()
           
 MBeanInfo getMBeanInfo(ObjectName objectName)
           
 String getObjectName()
           
 Object getPrimaryKey()
           
 Object invoke(ObjectName objectName, String s, Object[] objects, String[] strings)
           
 boolean isEventProvider()
           
 boolean isIdentical(EJBObject obj)
           
 boolean isRegistered(ObjectName objectName)
           
 boolean isStateManageable()
           
 boolean isStatisticsProvider()
           
 Set queryNames(ObjectName objectName, QueryExp queryExp)
           
 void remove()
           
 void setAttribute(ObjectName objectName, Attribute attribute)
           
 AttributeList setAttributes(ObjectName objectName, AttributeList attributeList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

MEJB

public MEJB(String objectName,
            MBeanServerReference mbeanServerReference)

MEJB

public MEJB(String objectName,
            MBeanServer mbeanServer)
Method Detail

getMBeanInfo

public MBeanInfo getMBeanInfo(ObjectName objectName)
                       throws InstanceNotFoundException,
                              IntrospectionException,
                              ReflectionException
Specified by:
getMBeanInfo in interface Management
Throws:
InstanceNotFoundException
IntrospectionException
ReflectionException

getDefaultDomain

public String getDefaultDomain()
Specified by:
getDefaultDomain in interface Management

getAttribute

public Object getAttribute(ObjectName objectName,
                           String s)
                    throws MBeanException,
                           AttributeNotFoundException,
                           InstanceNotFoundException,
                           ReflectionException
Specified by:
getAttribute in interface Management
Throws:
MBeanException
AttributeNotFoundException
InstanceNotFoundException
ReflectionException

setAttribute

public void setAttribute(ObjectName objectName,
                         Attribute attribute)
                  throws InstanceNotFoundException,
                         AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException
Specified by:
setAttribute in interface Management
Throws:
InstanceNotFoundException
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException

getAttributes

public AttributeList getAttributes(ObjectName objectName,
                                   String[] strings)
                            throws InstanceNotFoundException,
                                   ReflectionException
Specified by:
getAttributes in interface Management
Throws:
InstanceNotFoundException
ReflectionException

setAttributes

public AttributeList setAttributes(ObjectName objectName,
                                   AttributeList attributeList)
                            throws InstanceNotFoundException,
                                   ReflectionException
Specified by:
setAttributes in interface Management
Throws:
InstanceNotFoundException
ReflectionException

invoke

public Object invoke(ObjectName objectName,
                     String s,
                     Object[] objects,
                     String[] strings)
              throws InstanceNotFoundException,
                     MBeanException,
                     ReflectionException
Specified by:
invoke in interface Management
Throws:
InstanceNotFoundException
MBeanException
ReflectionException

getMBeanCount

public Integer getMBeanCount()
Specified by:
getMBeanCount in interface Management

isRegistered

public boolean isRegistered(ObjectName objectName)
Specified by:
isRegistered in interface Management

queryNames

public Set queryNames(ObjectName objectName,
                      QueryExp queryExp)
Specified by:
queryNames in interface Management

getListenerRegistry

public ListenerRegistration getListenerRegistry()
Specified by:
getListenerRegistry in interface Management

getEJBHome

public EJBHome getEJBHome()
Specified by:
getEJBHome in interface EJBObject

getHandle

public Handle getHandle()
Specified by:
getHandle in interface EJBObject

getPrimaryKey

public Object getPrimaryKey()
Specified by:
getPrimaryKey in interface EJBObject

isIdentical

public boolean isIdentical(EJBObject obj)
Specified by:
isIdentical in interface EJBObject

remove

public void remove()
            throws RemoveException
Specified by:
remove in interface EJBObject
Throws:
RemoveException

getObjectName

public String getObjectName()

isStateManageable

public boolean isStateManageable()

isStatisticsProvider

public boolean isStatisticsProvider()

isEventProvider

public boolean isEventProvider()

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.