|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.Adaptee
org.norther.tammi.core.converter.DefaultObjectConverter
org.norther.tammi.core.converter.DefaultObjectNameConverter
public class DefaultObjectNameConverter
A converter for references between related MBeans. It produces either direct
references or javax.management.ObjectName instances.
| Field Summary | |
|---|---|
static String |
MBEAN_REFERENCE_TYPE
The MBean reference type. |
static String |
OBJECT_NAME_TYPE
The object name type. |
| Fields inherited from class org.norther.tammi.core.base.Adaptee |
|---|
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS |
| Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate |
|---|
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE |
| Constructor Summary | |
|---|---|
DefaultObjectNameConverter()
Constructs a new converter. |
|
| Method Summary | |
|---|---|
protected Object |
getComponentInstance(String className,
Object object,
String pattern,
Object minValue,
Object maxValue)
Gets object name instance converted from a string. |
boolean |
isConversionSupported(String className)
Checks whether conversion of the specified class is supported. |
protected String |
toComponentString(String className,
Object object,
String pattern)
Returns the string representation of an object name. |
| Methods inherited from class org.norther.tammi.core.converter.DefaultObjectConverter |
|---|
fromLocalizedObject, getFormatPattern, getInstance, getInstance, getInstance, getLocalizedPattern, getResourceFinderName, postmanaged, setResourceFinderName, toLocalizedObject, toString, toString, toString, toStrings, toStrings, toStrings, unmanaged |
| Methods inherited from class org.norther.tammi.core.base.Adaptee |
|---|
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String OBJECT_NAME_TYPE
public static final String MBEAN_REFERENCE_TYPE
| Constructor Detail |
|---|
public DefaultObjectNameConverter()
| Method Detail |
|---|
public boolean isConversionSupported(String className)
ObjectConverter
isConversionSupported in interface ObjectConverterisConversionSupported in class DefaultObjectConverterclassName - the class name.
protected Object getComponentInstance(String className,
Object object,
String pattern,
Object minValue,
Object maxValue)
throws ConversionException
getComponentInstance in class DefaultObjectConverterclassName - the name of the class.object - the source object.pattern - the conversion pattern.minValue - the minimum value.maxValue - the maximum value.
ConversionException - if conversion fails.
protected String toComponentString(String className,
Object object,
String pattern)
toComponentString in class DefaultObjectConverterclassName - the name of the class.object - the source object.pattern - the conversion pattern.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||