Methods Summary |
---|
public static com.sun.appserv.management.config.MailResourceConfig | createInstance(com.sun.appserv.management.config.DomainConfig ss, java.lang.String name, java.lang.String host, java.lang.String user, java.lang.String from, java.util.Map optional)
return ss.createMailResourceConfig( name, host, user, from, optional );
|
protected final com.sun.appserv.management.config.AMXConfig | createProgeny(java.lang.String name, java.util.Map options)
final MailResourceConfig config =
getDomainConfig().createMailResourceConfig( name,
MAIL_RESOURCE_HOST,
MAIL_RESOURCE_USER,
MAIL_RESOURCE_FROM,
options);
assert( config != null );
return( config );
|
public static synchronized com.sun.appserv.management.config.MailResourceConfig | ensureDefaultInstance(com.sun.appserv.management.config.DomainConfig dc)synchronized because multiple instances are created, and we've chosen to remove/add
this resource multiple times for some specific tests.
MailResourceConfig result = dc.getMailResourceConfigMap().get( getDefaultInstanceName() );
/*
if ( result != null )
{
System.out.println( "ensureDefaultInstance(): removing: " +
JMXUtil.toString( Util.getExtra(result).getObjectName() ) );
dc.removeMailResourceConfig( result.getName() );
result = null;
}
*/
if ( result == null )
{
result = createInstance( dc, getDefaultInstanceName(),
MAIL_RESOURCE_HOST, MAIL_RESOURCE_USER, MAIL_RESOURCE_FROM, OPTIONS);
assert ! result.getEnabled();
final StandaloneServerConfig serverConfig = dc.getStandaloneServerConfigMap().get( "server" );
final Map<String,String> options = new HashMap<String,String>();
options.put( ResourceConfigKeys.ENABLED_KEY, "false" );
final ResourceRefConfig ref = serverConfig.createResourceRefConfig( result.getName(), options );
assert ! ref.getEnabled();
RefHelper.removeAllRefsTo( result, false );
}
return result;
|
public static java.lang.String | getDefaultInstanceName()
return getDefaultInstanceName( "MailResourceConfig" );
|
protected com.sun.appserv.management.base.Container | getProgenyContainer()
return getDomainConfig();
|
protected java.lang.String | getProgenyJ2EEType()
return XTypes.MAIL_RESOURCE_CONFIG;
|
protected java.lang.String | getProgenyTestName()
return( "jndi/MailResourceConfigMgrTest" );
|
protected void | removeProgeny(java.lang.String name)
getDomainConfig().removeMailResourceConfig( name );
|