ConnectorResourceConfigFactorypublic final class ConnectorResourceConfigFactory extends ResourceFactoryImplBase
Fields Summary |
---|
public static final String | RESOURCE_POOL_NAME_KEY |
Constructors Summary |
---|
public ConnectorResourceConfigFactory(ConfigFactoryCallback callbacks)
super( callbacks );
|
Methods Summary |
---|
public javax.management.ObjectName | create(java.lang.String jndiName, java.lang.String poolName, java.util.Map optional)Creates a new <connector-resource>
final String[] requiredParams = new String[]
{
RESOURCE_POOL_NAME_KEY, poolName,
};
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, java.util.Properties props)
return( getOldResourcesMBean().createConnectorResource( translatedAttrs, props, null ) );
| 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.CONNECTOR_RESOURCE_CONFIG, name );
if ( refs.size() == 0 )
{
getOldResourcesMBean().removeConnectorResourceByJndiName( name );
}
else
{
for( final ResourceRefConfig ref : refs )
{
final String target = ref.getContainer().getName();
getOldResourcesMBean().deleteConnectorResource( name, target );
}
}
|
|