Examples of DomainDefinition


Examples of org.jboss.aop.DomainDefinition

      JBossSessionBean31MetaData singletonBean = (JBossSessionBean31MetaData) beanMetaData;

      // Create a singleton container
      ClassLoader classLoader = unit.getClassLoader();
      String domainName = AOPBasedSingletonContainer.getAOPDomainName();
      DomainDefinition singletonContainerAOPDomain = AspectManager.instance().getContainer(domainName);
      if (singletonContainerAOPDomain == null)
      {
         throw new DeploymentException(domainName + " AOP domain not configured - cannot deploy EJB named "
               + beanMetaData.getEjbName() + " in unit " + unit);
      }
      Hashtable<String, String> ctxProperties = new Hashtable<String, String>();
      AOPBasedSingletonContainer singletonContainer;
      try
      {
         singletonContainer = new AOPBasedSingletonContainer(classLoader, singletonBean.getEjbClass(), singletonBean
               .getEjbName(), (Domain) singletonContainerAOPDomain.getManager(), ctxProperties, singletonBean, unit, asyncExecutorService);
      }
      catch (ClassNotFoundException cnfe)
      {
         throw new DeploymentException(cnfe);
      }
View Full Code Here

Examples of org.jboss.aop.DomainDefinition

      return bootstrap;
   }

   protected static Domain getDomain(String domainName)
   {
      DomainDefinition domainDef = AspectManager.instance().getContainer(domainName);
      if (domainDef == null)
         throw new IllegalArgumentException("No such domain '" + domainName + "'");
      return (Domain) domainDef.getManager();
   }
View Full Code Here

Examples of org.jboss.aop.DomainDefinition

/*     */   public void start()
/*     */   {
/* 109 */     AspectManager parent = this.manager;
/* 110 */     if (this.extendz != null)
/*     */     {
/* 112 */       DomainDefinition parentDef = this.manager.getContainer(this.extendz);
/* 113 */       if (parentDef == null)
/*     */       {
/* 115 */         throw new RuntimeException("unable to find parent Domain: " + this.extendz);
/*     */       }
/* 117 */       parent = parentDef.getManager();
/*     */     }
/*     */
/* 120 */     this.definition = new DomainDefinition(this.name, parent, this.parentFirst, this.inheritDefinitions, this.inheritBindings);
/* 121 */     this.manager.addContainer(this.definition);
/*     */   }
View Full Code Here

Examples of org.jboss.aop.DomainDefinition

/*     */   }
/*     */
/*     */   protected ServiceContainer getServiceContainer(int ejbIndex) throws Exception
/*     */   {
/* 197 */     String containerName = getAspectDomain(ejbIndex, this.defaultServiceDomain);
/* 198 */     DomainDefinition domain = AspectManager.instance().getContainer(containerName);
/*     */
/* 200 */     if (domain == null) {
/* 201 */       throw new RuntimeException("No container configured with name '" + containerName + "''");
/*     */     }
/*     */
/* 204 */     return new ServiceContainer(this.deployment.getMbeanServer(), this.di.getClassLoader(), this.className, (String)this.ejbNames.get(ejbIndex), domain.getManager(), this.ctxProperties, this.di.getInterceptorInfoRepository(), this.deployment);
/*     */   }
View Full Code Here

Examples of org.jboss.aop.DomainDefinition

/*     */
/*     */   protected ConsumerContainer getConsumerContainer(int ejbIndex)
/*     */     throws Exception
/*     */   {
/* 212 */     String containerName = getAspectDomain(ejbIndex, this.defaultConsumerDomain);
/* 213 */     DomainDefinition domain = AspectManager.instance().getContainer(containerName);
/*     */
/* 215 */     if (domain == null) {
/* 216 */       throw new RuntimeException("No container configured with name '" + containerName + "''");
/*     */     }
/*     */
/* 219 */     return new ConsumerContainer((String)this.ejbNames.get(ejbIndex), domain.getManager(), this.di.getClassLoader(), this.className, this.ctxProperties, this.di.getInterceptorInfoRepository(), this.deployment);
/*     */   }
View Full Code Here

Examples of org.jboss.aop.DomainDefinition

/*     */
/*     */   protected StatefulContainer getStatefulContainer(int ejbIndex)
/*     */     throws Exception
/*     */   {
/* 227 */     String containerName = getAspectDomain(ejbIndex, this.defaultSFSBDomain);
/* 228 */     DomainDefinition domain = AspectManager.instance().getContainer(containerName);
/*     */
/* 230 */     if (domain == null) {
/* 231 */       throw new RuntimeException("No container configured with name '" + containerName + "''");
/*     */     }
/*     */
/* 234 */     return new StatefulContainer(this.di.getClassLoader(), this.className, (String)this.ejbNames.get(ejbIndex), domain.getManager(), this.ctxProperties, this.di.getInterceptorInfoRepository(), this.deployment);
/*     */   }
View Full Code Here

Examples of org.jboss.aop.DomainDefinition

/*     */   protected EJBContainer getStatelessContainer(int ejbIndex)
/*     */     throws Exception
/*     */   {
/* 242 */     String containerName = getAspectDomain(ejbIndex, this.defaultSLSBDomain);
/*     */
/* 244 */     DomainDefinition domain = AspectManager.instance().getContainer(containerName);
/*     */
/* 246 */     if (domain == null) {
/* 247 */       throw new RuntimeException("No container configured with name '" + containerName + "''");
/*     */     }
/*     */
/* 250 */     return new StatelessContainer(this.di.getClassLoader(), this.className, (String)this.ejbNames.get(ejbIndex), domain.getManager(), this.ctxProperties, this.di.getInterceptorInfoRepository(), this.deployment);
/*     */   }
View Full Code Here

Examples of org.jboss.aop.DomainDefinition

/*     */   protected MDB getMDB(int ejbIndex, EnterpriseBean xml) throws Exception
/*     */   {
/* 273 */     String domainName = getMDBDomainName(ejbIndex);
/*     */
/* 275 */     String containerName = getAspectDomain(ejbIndex, domainName);
/* 276 */     DomainDefinition domain = AspectManager.instance().getContainer(containerName);
/*     */
/* 278 */     if (domain == null) {
/* 279 */       throw new RuntimeException("No container configured with name '" + containerName + "''");
/*     */     }
/*     */
/* 282 */     MDB container = new MDB((String)this.ejbNames.get(ejbIndex), domain.getManager(), this.di.getClassLoader(), this.className, this.ctxProperties, this.di.getInterceptorInfoRepository(), this.deployment);
/*     */
/* 285 */     return container;
/*     */   }
View Full Code Here

Examples of org.jboss.aop.DomainDefinition

   }

   protected ServiceContainer getServiceContainer(int ejbIndex, JBossServiceBeanMetaData beanMetaData) throws Exception
   {
      String containerName = getAspectDomain(ejbIndex, defaultServiceDomain);
      DomainDefinition domain = AspectManager.instance().getContainer(containerName);

      if (domain == null)
         throw new RuntimeException("No container configured with name '"
                 + containerName + "''");

      return new ServiceContainer(deployment.getMbeanServer(), di.getClassLoader(), className,
              ejbNames.get(ejbIndex), (Domain) domain.getManager(), ctxProperties,
              deployment, beanMetaData);

   }
View Full Code Here

Examples of org.jboss.aop.DomainDefinition

   }

   protected ConsumerContainer getConsumerContainer(int ejbIndex, JBossConsumerBeanMetaData beanMetaData) throws Exception
   {
      String containerName = getAspectDomain(ejbIndex, defaultConsumerDomain);
      DomainDefinition domain = AspectManager.instance().getContainer(containerName);

      if (domain == null)
         throw new RuntimeException("No container configured with name '"
                 + containerName + "''");

      return new ConsumerContainer(ejbNames.get(ejbIndex), (Domain) domain.getManager(),
              di.getClassLoader(), className, ctxProperties,
              deployment, beanMetaData);

   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.