Methods Summary |
---|
void | add(java.lang.String j2eeType, java.lang.String oldType)
mOldTypeToJ2EETypeMap.put( oldType, j2eeType );
mJ2EETypeToOldTypeMap.put( j2eeType, oldType );
|
abstract void | initMap()These are delegates that require a config name only, no other keys
other than category=config
|
public java.lang.String | j2eeTypeToOldType(java.lang.String j2eeType)
return mJ2EETypeToOldTypeMap.get( j2eeType );
|
public java.lang.String | oldObjectNameToJ2EEType(javax.management.ObjectName oldObjectName)Determine the j2eeType associated with the ObjectName for an "old"
config MBean
final String oldType = oldObjectName.getKeyProperty( OLD_TYPE_PROP );
if ( oldType == null )
{
System.err.println( "no j2eeType for: " + oldObjectName );
throw new IllegalArgumentException( oldObjectName.toString() );
}
String j2eeType = null;
/*
if ( oldType.equals( "ssl" ) )
{
// ambiguous without parent
if ( oldObjectName.getKeyProperty( "ssl-client-config" ) != null )
{
j2eeType = XTypes.IIOP_SSL_CLIENT_CONFIG;
}
else
{
j2eeType = XTypes.SSL_CONFIG;
}
}
else
*/
{
j2eeType = mOldTypeToJ2EETypeMap.get( oldType );
if ( j2eeType == null )
{
throw new IllegalArgumentException( oldType );
}
}
assert( j2eeType != null );
return( j2eeType );
|
public java.util.Map | oldPropsToNewProps(java.util.Map oldProps)
final Map<String,String> newProps = new HashMap<String,String>();
for( final String oldProp : oldProps.keySet() )
{
final String newProp =mOldTypeToJ2EETypeMap.get( oldProp );
if ( newProp != null )
{
newProps.put( newProp, oldProps.get( oldProp ) );
}
}
return newProps;
|
public java.lang.String | oldTypeToJ2EEType(java.lang.String oldType, javax.management.ObjectName oldObjectName)Determine the j2eeType associated with the ObjectName for an "old"
config MBean
String j2eeType = null;
if ( oldType.equals( oldObjectName.getKeyProperty( OLD_TYPE_PROP ) ) )
{
j2eeType = oldObjectNameToJ2EEType( oldObjectName );
}
else
{
j2eeType = mOldTypeToJ2EETypeMap.get( oldType );
}
return( j2eeType );
|
public java.lang.String | oldTypeToJ2EEType(javax.management.ObjectName objectName)By default, the mapping is done using only the OLD_TYPE_PROP field.
return oldTypeToJ2EEType( objectName.getKeyProperty( OLD_TYPE_PROP ) );
|
public java.lang.String | oldTypeToJ2EEType(java.lang.String oldType)
return mOldTypeToJ2EETypeMap.get(oldType);
|