in src/java/org/apache/fulcrum/yaafi/container/ContainerImpl.java [109:143]
public void startup(
String configFileName,
String roleFileName,
String parametersFileName )
{
getLogger().debug("Starting container...");
this.config.setComponentConfigurationLocation( configFileName );
this.config.setComponentRolesLocation( roleFileName );
this.config.setParametersLocation( parametersFileName );
this.config.setLogger( getLogger( ) );
File configFile = new File(configFileName);
if (!configFile.exists())
{
InputStream configIO = getClass().getResourceAsStream(configFileName);
if (configIO == null)
{
throw new RuntimeException(
"Could not initialize the container because the config file could not be found:" + configFileName);
}
}
try
{
initialize();
getLogger().info("YaffiContainer ready.");
}
catch (Exception e)
{
getLogger().error("Could not initialize the container", e);
throw new RuntimeException("Could not initialize the container");
}
}