Methods Summary |
---|
public javax.management.ObjectName | create(java.lang.String jndiName, java.util.Map optional)Create a new <persistence-resource%gt;
final String[] requiredParams = new String[]{};
final Map<String,String> params = initParams( jndiName, requiredParams, optional );
final ObjectName amxName = createNamedChild( jndiName, params );
return( amxName );
|
protected javax.management.ObjectName | createOldChildConfig(javax.management.AttributeList translatedAttrs)The caller is responsible for dealing with any Properties.
final ObjectName objectName =
getOldResourcesMBean().createPersistenceManagerFactoryResource( translatedAttrs );
return( objectName );
|
protected java.util.Set | getLegalOptionalCreateKeys()
return( LEGAL_OPTIONAL_KEYS );
|
protected java.util.Map | getParamNameOverrides()
return( MapUtil.newMap( CONFIG_NAME_KEY, "jndi-name" ) );
|
protected void | removeByName(java.lang.String name)
final Set<ResourceRefConfig> refs =
findAllRefConfigs( XTypes.PERSISTENCE_MANAGER_FACTORY_RESOURCE_CONFIG, name );
if ( refs.size() == 0 )
{
getOldResourcesMBean().removePersistenceManagerFactoryResourceByJndiName( name );
}
else
{
for( final ResourceRefConfig ref : refs )
{
final String target = ref.getContainer().getName();
getOldResourcesMBean().deletePersistenceManagerFactoryResource( name, target );
}
}
|