org.objectweb.easybeans.jsr77
Class JSR77ManagementIdentifier<T>

java.lang.Object
  extended by org.objectweb.easybeans.jsr77.JSR77ManagementIdentifier<T>
Type Parameters:
T - Managed Type
All Implemented Interfaces:
EZBManagementIdentifier<T>
Direct Known Subclasses:
EmbeddedIdentifier, JContainer3Identifier, MDBMessageEndPointFactoryIdentifier, SessionFactoryIdentifier

public abstract class JSR77ManagementIdentifier<T>
extends java.lang.Object
implements EZBManagementIdentifier<T>

Specialized EZBManagementIdentifier for JSR77 MBeans.

Author:
Guillaume Sauthier

Field Summary
private static JLog logger
          Logger.
 
Constructor Summary
protected JSR77ManagementIdentifier()
          Empty default constructor.
 
Method Summary
 java.lang.String getDomain()
          
protected static java.lang.String getInheritedPropertiesAsString(javax.management.ObjectName name)
           
static JLog getLogger()
           
protected static java.lang.String getParentNameProperty(java.lang.String parentObjectName)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.easybeans.api.jmx.EZBManagementIdentifier
getAdditionnalProperties, getNamePropertyValue, getTypeValue
 

Field Detail

logger

private static JLog logger
Logger.

Constructor Detail

JSR77ManagementIdentifier

protected JSR77ManagementIdentifier()
Empty default constructor.

Method Detail

getInheritedPropertiesAsString

protected static java.lang.String getInheritedPropertiesAsString(javax.management.ObjectName name)
Parameters:
name - base ObjectName
Returns:
Returns a String that contains "inherited" properties from parent's ObjectName

getParentNameProperty

protected static java.lang.String getParentNameProperty(java.lang.String parentObjectName)
Parameters:
parentObjectName - Parent ObjectName.
Returns:
Returns the couple j2eetype=name of the parent ObjectName.

getDomain

public java.lang.String getDomain()

Specified by:
getDomain in interface EZBManagementIdentifier<T>
Returns:
Returns the JMX Domain name of the MBean.

getTypeName

public java.lang.String getTypeName()

Specified by:
getTypeName in interface EZBManagementIdentifier<T>
Returns:
Returns the 'type' property name : j2eeType for JSR 77 and type for others.

getTypeProperty

public 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.

Specified by:
getTypeProperty in interface EZBManagementIdentifier<T>
Returns:
Returns the type=type_name couple.

getLogger

public static final JLog getLogger()
Returns:
the logger