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

      return unit.isAttachmentPresent(JBossMetaData.class);
   }
  
   private void removeCommonDataResourceReference(JBossWebMetaData jbossWeb, Environment ejbJndiEnv)
   {
      Environment jbossWebEnv = jbossWeb.getJndiEnvironmentRefsGroup();
      if (jbossWebEnv == null || ejbJndiEnv == null)
      {
         return;
      }
      // datasource(s)
      DataSourcesMetaData jbossWebDataSources = jbossWebEnv.getDataSources();
      DataSourcesMetaData ejbCompDataSources = ejbJndiEnv.getDataSources();
      if (jbossWebDataSources != null && ejbCompDataSources != null)
      {
         for (DataSourceMetaData ejbCompDataSource : ejbCompDataSources)
         {
View Full Code Here

    * @param jbossWebMetaData
    * @return
    */
   private boolean hasDataSources(JBossWebMetaData jbossWebMetaData)
   {
      Environment jbossWebEnv = jbossWebMetaData.getJndiEnvironmentRefsGroup();
      if (jbossWebEnv == null)
      {
         return false;
      }
      if(jbossWebEnv.getDataSources() == null || jbossWebEnv.getDataSources().isEmpty())
      {
         return false;
      }
      return true;
   }
View Full Code Here

         if (injectionManager != null)
         {
            // set the InjectionManager on the deployment
            deployment.setInjectionManager(injectionManager);
            // Setup the Injector
            Environment webEnvironment = metaData.getJndiEnvironmentRefsGroup();
            if (webEnvironment != null)
            {
               // convert JBMETA metadata to jboss-injection specific metadata
               JndiEnvironmentRefsGroup jndiEnvironment = new JndiEnvironmentImpl(webEnvironment, unit.getClassLoader());
               // For optimization, we'll create an Injector only if there's atleast one InjectionTarget
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

            setSecurityProxy(override.securityProxy);
      }

      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

         setEjbClass(override.ejbClass);
      else if(original != null && original.ejbClass != null)
         setEjbClass(original.ejbClass);
      if(jndiEnvironmentRefsGroup == null)
         jndiEnvironmentRefsGroup = new EnvironmentRefsGroupMetaData();
      Environment env1 = override != null ? override.getJndiEnvironmentRefsGroup() : null;
      Environment env2 = original != null ? original.getJndiEnvironmentRefsGroup() : null;
      jndiEnvironmentRefsGroup.merge(env1, env2, "", "", false);
      if(override != null && override.securityIdentity != null)
         setSecurityIdentity(override.securityIdentity);
      else if(original != null && original.securityIdentity != null)
         setSecurityIdentity(original.securityIdentity);
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

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.