[webbeans-commits] Webbeans SVN: r3423 - ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Mon Aug 10 15:16:52 EDT 2009
Author: pete.muir at jboss.org
Date: 2009-08-10 15:16:52 -0400 (Mon, 10 Aug 2009)
New Revision: 3423
Removed:
ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/BootstrapBean.java
Log:
Move BootstrapBean to JBoss integration
Deleted: ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/BootstrapBean.java
===================================================================
--- ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/BootstrapBean.java 2009-08-10 16:19:23 UTC (rev 3422)
+++ ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/BootstrapBean.java 2009-08-10 19:16:52 UTC (rev 3423)
@@ -1,148 +0,0 @@
-package org.jboss.webbeans.bootstrap.api.helpers;
-
-import org.jboss.webbeans.bootstrap.api.Bootstrap;
-import org.jboss.webbeans.bootstrap.api.Environment;
-import org.jboss.webbeans.bootstrap.api.ServiceRegistry;
-import org.jboss.webbeans.bootstrap.spi.Deployment;
-import org.jboss.webbeans.context.api.BeanStore;
-import org.jboss.webbeans.ejb.spi.EjbServices;
-import org.jboss.webbeans.manager.api.WebBeansManager;
-import org.jboss.webbeans.messaging.spi.JmsServices;
-import org.jboss.webbeans.persistence.spi.JpaServices;
-import org.jboss.webbeans.resources.spi.ResourceLoader;
-import org.jboss.webbeans.resources.spi.ResourceServices;
-import org.jboss.webbeans.transaction.spi.TransactionServices;
-import org.jboss.webbeans.ws.spi.WebServices;
-
-/**
- * A bean version of bootstrap that delegates to the underlying bootstrap impl
- *
- * @author Pete Muir
- *
- */
-public class BootstrapBean implements Bootstrap
-{
-
- private final Bootstrap bootstrap;
-
- public BootstrapBean(Bootstrap bootstrap)
- {
- this.bootstrap = bootstrap;
- }
-
- public void setEjbServices(EjbServices ejbServices)
- {
- bootstrap.getServices().add(EjbServices.class, ejbServices);
- }
-
- public EjbServices getEjbServices()
- {
- return bootstrap.getServices().get(EjbServices.class);
- }
-
- public void setJpaServices(JpaServices jpaServices)
- {
- bootstrap.getServices().add(JpaServices.class, jpaServices);
- }
-
- public JpaServices getJpaServices()
- {
- return bootstrap.getServices().get(JpaServices.class);
- }
-
- public ResourceServices getResourceServices()
- {
- return bootstrap.getServices().get(ResourceServices.class);
- }
-
- public void setResourceServices(ResourceServices resourceServices)
- {
- bootstrap.getServices().add(ResourceServices.class, resourceServices);
- }
-
- public void setDeployment(Deployment deployment)
- {
- bootstrap.getServices().add(Deployment.class, deployment);
- }
-
- public Deployment getDeployment()
- {
- return bootstrap.getServices().get(Deployment.class);
- }
-
- public void setTransactionServices(TransactionServices transactionServices)
- {
- bootstrap.getServices().add(TransactionServices.class, transactionServices);
- }
-
- public TransactionServices getTransactionServices()
- {
- return bootstrap.getServices().get(TransactionServices.class);
- }
-
- public void setApplicationContext(BeanStore applicationContext)
- {
- bootstrap.setApplicationContext(applicationContext);
- }
-
- public void setResourceLoader(ResourceLoader resourceLoader)
- {
- bootstrap.getServices().add(ResourceLoader.class, resourceLoader);
- }
-
- public ResourceLoader getResourceLoader()
- {
- return bootstrap.getServices().get(ResourceLoader.class);
- }
-
- public WebServices getWebServices()
- {
- return bootstrap.getServices().get(WebServices.class);
- }
-
- public void setWebServices(WebServices webServices)
- {
- bootstrap.getServices().add(WebServices.class, webServices);
- }
-
- public JmsServices getJmsServices()
- {
- return bootstrap.getServices().get(JmsServices.class);
- }
-
- public void setJmsServices(JmsServices jmsServices)
- {
- bootstrap.getServices().add(JmsServices.class, jmsServices);
- }
-
- public void boot()
- {
- bootstrap.boot();
- }
-
- public WebBeansManager getManager()
- {
- return bootstrap.getManager();
- }
-
- public ServiceRegistry getServices()
- {
- return bootstrap.getServices();
- }
-
- public void initialize()
- {
- bootstrap.initialize();
- }
-
- public void setEnvironment(Environment environment)
- {
- bootstrap.setEnvironment(environment);
- }
-
- public void shutdown()
- {
- bootstrap.shutdown();
- }
-
-}
More information about the weld-commits
mailing list