public void start() {
logger.info("Configuring EasyBeans for Web Container type ''{0}''", this.containerType);
// Create embedded instance
this.embedded = new Embedded();
IDeployerManager deployerManager = new DeployerManager();
this.embedded.setDeployerManager(deployerManager);
AbsDeployer deployer = null;
// Register the deployers
switch (this.containerType) {
// Use Tomcat deployer if it is Tomcat
case TOMCAT6:
try {
deployer = new Tomcat6Deployer();
} catch (DeployerException e) {
logger.warn("Unable to set Tomcat6 deployer.", e);
}
break;
case JETTY6:
try {
JettyDeployer.setContextEvent(this.servletContextEvent);
deployer = new JettyDeployer();
} catch (DeployerException e) {
logger.warn("Unable to set the servlet context event on the jetty deployer."
+ "The default deployer will be used.", e);
}
break;
case JETTY7:
try {
deployer = new Jetty7Deployer(this.servletContextEvent);
} catch (DeployerException e) {
logger.warn("Unable to set the servlet context event on the jetty deployer."
+ "The default deployer will be used.", e);
}
break;
case UNKNOWN:
default:
logger.info("Using default deployer as the web container has not be detected");
deployer = new EasyBeansDeployer();
break;
}
// reset the deployer
deployer.setEmbedded(this.embedded);
deployerManager.register(deployer);
// user configuration ?
URL xmlConfigurationURL = Thread.currentThread().getContextClassLoader().getResource(EasyBeans.USER_XML_FILE);
if (xmlConfigurationURL == null) {