Methods Summary |
---|
private com.sun.enterprise.config.ConfigContext | createConfigContext(java.io.File domainXML)
setPreEnvironment();
final ConfigContext ctx =
ConfigFactory.createConfigContext( domainXML.toString(),
true, true, true );
setPostEnvironment( ctx );
return ctx;
|
synchronized ConfigDelegate | createConfigDelegate(com.sun.enterprise.config.ConfigBean configBean)
if ( getConfigContext() != configBean.getConfigContext() )
{
throw new IllegalArgumentException( "ConfigBean " +
configBean.getXPath() + " has mismatched ConfigContext" );
}
return new ConfigDelegate( getConfigContext(), configBean );
|
private void | debug(java.lang.Object o)
AMXDebug.getInstance().getOutput( "ConfigDelegateFactory" ).println( o );
|
public com.sun.enterprise.config.ConfigContext | getConfigContext()
return mConfigContext;
|
public static synchronized com.sun.enterprise.management.offline.ConfigDelegateFactory | getInstance(java.io.File domainXML)
if ( mFactories == null )
{
mFactories = new HashMap<File,ConfigDelegateFactory>();
}
ConfigDelegateFactory instance = mFactories.get( domainXML );
if ( instance == null )
{
instance = new ConfigDelegateFactory( domainXML );
mFactories.put( domainXML, instance );
}
return instance;
|
private void | setPostEnvironment(com.sun.enterprise.config.ConfigContext ctx)
try
{
((ConfigContextImpl)ctx).setXPathInAllBeans();
}
catch(ConfigException e)
{
throw new RuntimeException( e );
}
|
private void | setPreEnvironment()
System.setProperty(
"com.sun.enterprise.config.config_environment_factory_class",
"com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory"
);
|