Package org.jboss.deployers.structure.spi.helpers

Examples of org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit


{
   public MockEjb3Deployment(DeploymentUnit unit)
   {
      // TODO This should be replaced w/ a MockDeploymentUnit when completed,
      // to support nested deployments, @see ejb3-test MockDeploymentUnit
      this(unit, new AbstractDeploymentUnit(new AbstractDeploymentContext("test", "")));
   }
View Full Code Here


         {
            return Thread.currentThread().getContextClassLoader();
         }
      });

      AbstractDeploymentUnit deploymentUnit = new AbstractDeploymentUnit(new AbstractDeploymentContext("test", ""));
      deploymentUnit.createClassLoader(new ClassLoaderFactory() {
         public ClassLoader createClassLoader(org.jboss.deployers.structure.spi.DeploymentUnit unit) throws Exception
         {
            return Thread.currentThread().getContextClassLoader();
         }
View Full Code Here

         {
            return Thread.currentThread().getContextClassLoader();
         }
      });

      AbstractDeploymentUnit deploymentUnit = new AbstractDeploymentUnit(new AbstractDeploymentContext("test", ""));
      deploymentUnit.createClassLoader(new ClassLoaderFactory() {
         public ClassLoader createClassLoader(org.jboss.deployers.structure.spi.DeploymentUnit unit) throws Exception
         {
            return Thread.currentThread().getContextClassLoader();
         }
View Full Code Here

   @BeforeClass
   public static void beforeClass() throws Exception
   {
      AbstractEJB3TestCase.beforeClass();
     
      AbstractDeploymentUnit deploymentUnit = new AbstractDeploymentUnit(new AbstractDeploymentContext("ejbthree1558", ""));
      deploymentUnit.createClassLoader(new ClassLoaderFactory() {
         public ClassLoader createClassLoader(org.jboss.deployers.structure.spi.DeploymentUnit unit) throws Exception
         {
            return Thread.currentThread().getContextClassLoader();
         }

         public void removeClassLoader(org.jboss.deployers.structure.spi.DeploymentUnit unit) throws Exception
         {
         }
      });
      DeploymentUnit unit = new MockDeploymentUnit(deploymentUnit);
      Ejb3Deployment deployment = new MockEjb3Deployment(unit, deploymentUnit);

      deployment.setEJBReferenceResolver(new ScopedEJBReferenceResolver());
     
      Class<?> beanImplementationClasses[] = { TXNotSupportedMDB.class };
      JBossMetaData jbossMetaData = MetaDataHelper.getMetaDataFromBeanImplClasses(beanImplementationClasses);
      unit.addAttachment(AttachmentNames.PROCESSED_METADATA, jbossMetaData);
     
      String ejbName = "TXNotSupportedMDB";
      JBossMessageDrivenBeanMetaData beanMetaData = (JBossMessageDrivenBeanMetaData) jbossMetaData.getEnterpriseBean(ejbName);
      Domain domain = getDomain("Message Driven Bean");
      ClassLoader cl = deploymentUnit.getClassLoader();
      String beanClassName = beanMetaData.getEjbClass();
      Properties ctxProperties = null;
     
      container = new MyMDB(ejbName, domain, cl, beanClassName, ctxProperties, deployment, beanMetaData);
   }
View Full Code Here

  
   public AbstractDeploymentUnitTransientManagedObjectsUnitTestCase(String name)
   {
      super(name);
      AbstractDeploymentContext context = new AbstractDeploymentContext("attachments", "");
      unit = new AbstractDeploymentUnit(context);
      context.setDeploymentUnit(unit);
      mutable = context.getTransientManagedObjects();
   }
View Full Code Here

  
   public AbstractDeploymentUnitAttachmentsUnitTestCase(String name)
   {
      super(name);
      AbstractDeploymentContext context = new AbstractDeploymentContext("attachments", "");
      unit = new AbstractDeploymentUnit(context);
      context.setDeploymentUnit(unit);
   }
View Full Code Here

  
   public AbstractDeploymentUnitTransientAttachmentsUnitTestCase(String name)
   {
      super(name);
      AbstractDeploymentContext context = new AbstractDeploymentContext("attachments", "");
      unit = new AbstractDeploymentUnit(context);
      context.setDeploymentUnit(unit);
      mutable = context.getTransientAttachments();
   }
View Full Code Here

  
   public AbstractDeploymentUnitPredeterminedManagedObjectsUnitTestCase(String name)
   {
      super(name);
      AbstractDeploymentContext context = new AbstractDeploymentContext("attachments", "");
      unit = new AbstractDeploymentUnit(context);
      context.setDeploymentUnit(unit);
      mutable = (MutableAttachments) context.getPredeterminedManagedObjects();
   }
View Full Code Here

  
   public AbstractDeploymentUnitAttachmentHierarchyUnitTestCase(String name)
   {
      super(name);
      AbstractDeploymentContext context = new AbstractDeploymentContext("attachments", "");
      unit = new AbstractDeploymentUnit(context);
      context.setDeploymentUnit(unit);
      predeterminedManagedObjects = (MutableAttachments) context.getPredeterminedManagedObjects();
      transientManagedObjects = context.getTransientManagedObjects();
      transientAttachments = context.getTransientAttachments();
   }
View Full Code Here

         {
            return Thread.currentThread().getContextClassLoader();
         }
      });

      AbstractDeploymentUnit deploymentUnit = new AbstractDeploymentUnit(new AbstractDeploymentContext("test", ""));
      deploymentUnit.createClassLoader(new ClassLoaderFactory() {
         public ClassLoader createClassLoader(org.jboss.deployers.structure.spi.DeploymentUnit unit) throws Exception
         {
            return Thread.currentThread().getContextClassLoader();
         }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.