FileDocCategorySizeDatePackage
JACCProviderConfigFactory.javaAPI DocGlassfish v2 API4228Fri May 04 22:23:18 BST 2007com.sun.enterprise.management.config

JACCProviderConfigFactory

public final class JACCProviderConfigFactory extends ConfigFactory

Fields Summary
private static final String
POLICY_PROVIDER_KEY
private static final String
POLICY_CONFIGURATION_FACTORY_PROVIDER_KEY
private final com.sun.enterprise.management.support.oldconfig.OldSecurityServiceMBean
mOldSecurityService
Constructors Summary
public JACCProviderConfigFactory(ConfigFactoryCallback callbacks)

	
		 
		
	   
	
		super( callbacks );
		
		mOldSecurityService	=
		    getOldConfigProxies().getOldSecurityServiceMBean( getConfigName() );
	
Methods Summary
public javax.management.ObjectNamecreate(java.lang.String name, java.lang.String policyProvider, java.lang.String policyConfigurationFactoryProvider, java.util.Map reservedForFutureUse)
Create a new <jacc-provider>

param
name name of the <jacc-provider>
param
policyProvider a classname
param
policyConfigurationFactoryProvider a classname
param
reservedForFutureUse reserved for future use

		final String[] requiredParams = {	
			POLICY_PROVIDER_KEY,					policyProvider,	
			POLICY_CONFIGURATION_FACTORY_PROVIDER_KEY,	policyConfigurationFactoryProvider,
		};
		
		if ( name == null )
		{
		    throw new IllegalArgumentException( "" + null );
		}

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

		final ObjectName amxName = createNamedChild( name, params );

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

		trace( "createOldChildConfig: attrs: " + stringify( translatedAttrs ) );
		
		final ObjectName	objectName	=
				mOldSecurityService.createJaccProvider( translatedAttrs );
		
		return( objectName );
	
public voidremoveByName(java.lang.String name)

		mOldSecurityService.removeJaccProviderByName( name );