org.objectweb.easybeans.api.jmx
Interface EZBManagementIdentifier<ManagedType>

Type Parameters:
ManagedType - Managed resource Type
All Known Implementing Classes:
CommonsManagementIdentifier, EmbeddedIdentifier, JContainer3Identifier, JSR77ManagementIdentifier, MDBMessageEndPointFactoryIdentifier, RemoteDeployerIdentifier, SessionFactoryIdentifier, StatefulSessionFactoryIdentifier, StatelessSessionFactoryIdentifier

public interface EZBManagementIdentifier<ManagedType>

JMX Identifier, used to create a JMX ObjectName from an Object.

Author:
Guillaume Sauthier

Method Summary
 java.lang.String getAdditionnalProperties(ManagedType instance)
           
 java.lang.String getDomain()
           
 java.lang.String getNamePropertyValue(ManagedType instance)
           
 java.lang.String getTypeName()
           
 java.lang.String getTypeProperty()
          May differ if JSR77 MBean or "normal" MBean.
A JSR77 MBean has j2eeType=XX, but a "normal" MBean has type=YY.
 java.lang.String getTypeValue()
          This method has to be implemented by each EZBManagementIdentifier.
 

Method Detail

getDomain

java.lang.String getDomain()
Returns:
Returns the JMX Domain name of the MBean.

getTypeProperty

java.lang.String getTypeProperty()
May differ if JSR77 MBean or "normal" MBean.
A JSR77 MBean has j2eeType=XX, but a "normal" MBean has type=YY. Will probably be implemented by an abstract class.

Returns:
Returns the type=type_name couple.

getTypeName

java.lang.String getTypeName()
Returns:
Returns the 'type' property name : j2eeType for JSR 77 and type for others.

getTypeValue

java.lang.String getTypeValue()
This method has to be implemented by each EZBManagementIdentifier.

Returns:
Returns the type value. (example : J2EEServer)

getNamePropertyValue

java.lang.String getNamePropertyValue(ManagedType instance)
Parameters:
instance - Managed instance from which the name will be extracted.
Returns:
Returns the ObjectName 'name' property value.

getAdditionnalProperties

java.lang.String getAdditionnalProperties(ManagedType instance)
Parameters:
instance - Managed instance from which the additionnal properties will be extracted.
Returns:
Returns a comma separated(,) list of properties (name=value)