FileDocCategorySizeDatePackage
ResourceAdapterConfigFactory.javaAPI DocGlassfish v2 API4304Fri May 04 22:23:20 BST 2007com.sun.enterprise.management.config

ResourceAdapterConfigFactory

public final class ResourceAdapterConfigFactory extends ResourceFactoryImplBase
MBean managing all instances of <resource-adapter-config> .

Fields Summary
private final Set
LEGAL_OPTIONAL_KEYS
public static final String
RES_ADAPTOR_NAME_KEY
Constructors Summary
public ResourceAdapterConfigFactory(ConfigFactoryCallback callbacks)

		super( callbacks );
	
Methods Summary
public javax.management.ObjectNamecreate(java.lang.String resourceAdapterName, java.util.Map optional)
Create a new <resource-adapter-config>

param
resourceAdapterName
param
optional

		final String[] requiredParams = new String[] {
			RES_ADAPTOR_NAME_KEY, resourceAdapterName,
		};

		final Map<String,String>		params	= initParams( requiredParams, optional );

		final ObjectName	amxName = createNamedChild( resourceAdapterName, params );

		return( amxName );                                                  
	
protected javax.management.ObjectNamecreateOldChildConfig(javax.management.AttributeList translatedAttrs, java.util.Properties properties)
The caller is responsible for dealing with any Properties.

		final ObjectName	objectName	=
				getOldResourcesMBean().createResourceAdapterConfig( 
					translatedAttrs, properties, null );

		return( objectName );
	
protected java.util.SetgetLegalOptionalCreateKeys()

	
	     
	
	
		return( LEGAL_OPTIONAL_KEYS );
	
protected java.util.MapgetParamNameOverrides()

	
		 
	
	
		return( MapUtil.newMap( ResourceAdapterConfigKeys.THREAD_POOL_IDS_KEY, "thread-pool-ids" ) );
	
protected voidremoveByName(java.lang.String name)

		getOldResourcesMBean().deleteResourceAdapterConfig( name, null);