Package org.jboss.metadata.javaee.spec

Examples of org.jboss.metadata.javaee.spec.Environment


         // Find the container dependency metadata
         String ejbCompID = "ejb/" + vfsPath + "#" + bean.getEjbName();
         ContainerDependencyMetaData cdmd = endpointMap.get(ejbCompID);
         if(cdmd == null)
            throw new IllegalStateException("Failed to find ContainerDependencyMetaData for: "+ejbCompID);
         Environment env = bean.getJndiEnvironmentRefsGroup();
         resolve(cdmd, unit, endpointMap, env, resolver,  unresolvedPaths);
      }
   }
View Full Code Here


      if(beans == null || beans.size() == 0)
         return unresolvedRefs;

      for(JBossEnterpriseBeanMetaData bean : beans)
      {
         Environment env = bean.getJndiEnvironmentRefsGroup();
         resolve(unit, env, unresolvedRefs);
      }
      return unresolvedRefs;
   }
View Full Code Here

   public void loadXml(X xml, InjectionContainer container)
   {
      if (xml == null) return;
      if (xml instanceof Environment == false) return;
      Environment env = (Environment) xml;
      if (env.getPersistenceContextRefs() == null) return;
      for (PersistenceContextReferenceMetaData ref : env.getPersistenceContextRefs())
      {
         String encName = "env/" + ref.getPersistenceContextRefName();
         // we add injection target no matter what.  enc injection might be overridden but
         // XML injection cannot be overriden
         Class<?> injectionType = InjectionUtil.injectionTarget(encName, ref, container, container.getEncInjections());
View Full Code Here

      this.messageDestinations = MessageDestinationsMetaData.merge(overrideMsgDests,
            originalMsgDests, overridenFile, overrideFile);

      if(this.jndiEnvironmentRefsGroup == null)
         jndiEnvironmentRefsGroup = new JBossEnvironmentRefsGroupMetaData();
      Environment env = null;
      JBossEnvironmentRefsGroupMetaData jenv = null;
      if( override != null )
         jenv = override.jndiEnvironmentRefsGroup;
      if(original != null)
         env = original.getJndiEnvironmentRefsGroup();
View Full Code Here

            setSecurityProxy(override.getSecurityProxy());
      }

      if(this.jndiEnvironmentRefsGroup == null)
         jndiEnvironmentRefsGroup = new JBossEnvironmentRefsGroupMetaData();
      Environment env = original != null ? original.getJndiEnvironmentRefsGroup() : null;
      JBossEnvironmentRefsGroupMetaData jenv = null;
      ResourceManagersMetaData resourceMgrs = this.getJBossMetaData().getResourceManagers();
      if( override != null )
      {
         ResourceManagersMetaData resourceMgrsOverride = override.getJBossMetaData().getResourceManagers();
View Full Code Here

      this.messageDestinations = MessageDestinationsMetaData.merge(overrideMsgDests,
            originalMsgDests, overridenFile, overrideFile);

      if(this.jndiEnvironmentRefsGroup == null)
         jndiEnvironmentRefsGroup = new JBossEnvironmentRefsGroupMetaData();
      Environment env = null;
      JBossEnvironmentRefsGroupMetaData jenv = null;
      if( override != null )
         jenv = override.jndiEnvironmentRefsGroup;
      if(original != null)
         env = original.getJndiEnvironmentRefsGroup();
View Full Code Here

/* 1471 */         setSecurityProxy(override.securityProxy);
/*      */       }
/*      */     }
/* 1474 */     if (this.jndiEnvironmentRefsGroup == null)
/* 1475 */       this.jndiEnvironmentRefsGroup = new JBossEnvironmentRefsGroupMetaData();
/* 1476 */     Environment env = original != null ? original.getJndiEnvironmentRefsGroup() : null;
/* 1477 */     JBossEnvironmentRefsGroupMetaData jenv = null;
/* 1478 */     ResourceManagersMetaData resourceMgrs = getJBossMetaData().getResourceManagers();
/* 1479 */     if (override != null)
/*      */     {
/* 1481 */       ResourceManagersMetaData resourceMgrsOverride = override.getJBossMetaData().getResourceManagers();
View Full Code Here

/* 601 */       setEjbClass(override.ejbClass);
/* 602 */     else if ((original != null) && (original.ejbClass != null))
/* 603 */       setEjbClass(original.ejbClass);
/* 604 */     if (this.jndiEnvironmentRefsGroup == null)
/* 605 */       this.jndiEnvironmentRefsGroup = new EnvironmentRefsGroupMetaData();
/* 606 */     Environment env1 = override != null ? override.getJndiEnvironmentRefsGroup() : null;
/* 607 */     Environment env2 = original != null ? original.getJndiEnvironmentRefsGroup() : null;
/* 608 */     this.jndiEnvironmentRefsGroup.merge(env1, env2, "", "", false);
/* 609 */     if ((override != null) && (override.securityIdentity != null))
/* 610 */       setSecurityIdentity(override.securityIdentity);
/* 611 */     else if ((original != null) && (original.securityIdentity != null))
/* 612 */       setSecurityIdentity(original.securityIdentity);
View Full Code Here

/*     */
/*     */   public void loadXml(X xml, InjectionContainer container)
/*     */   {
/*  55 */     if (xml == null) return;
/*  56 */     if (!(xml instanceof Environment)) return;
/*  57 */     Environment env = (Environment)xml;
/*  58 */     if (env.getPersistenceContextRefs() == null) return;
/*  59 */     for (PersistenceContextReferenceMetaData ref : env.getPersistenceContextRefs())
/*     */     {
/*  61 */       String encName = "env/" + ref.getPersistenceContextRefName();
/*     */
/*  64 */       Class injectionType = InjectionUtil.injectionTarget(encName, ref, container, container.getEncInjections());
/*     */
View Full Code Here

/* 1008 */       originalMsgDests = original.getMessageDestinations();
/* 1009 */     this.messageDestinations = MessageDestinationsMetaData.merge(overrideMsgDests, originalMsgDests, overridenFile, overrideFile);
/*      */
/* 1012 */     if (this.jndiEnvironmentRefsGroup == null)
/* 1013 */       this.jndiEnvironmentRefsGroup = new JBossEnvironmentRefsGroupMetaData();
/* 1014 */     Environment env = null;
/* 1015 */     JBossEnvironmentRefsGroupMetaData jenv = null;
/* 1016 */     if (override != null)
/* 1017 */       jenv = override.jndiEnvironmentRefsGroup;
/* 1018 */     if (original != null)
/* 1019 */       env = original.getJndiEnvironmentRefsGroup();
View Full Code Here

TOP

Related Classes of org.jboss.metadata.javaee.spec.Environment

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.