Package org.jboss.metadata.javaee.spec

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


      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

         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

      merge(securityRolesMetaData, xml.getSecurityRoles(), annotation.getSecurityRoles());
      merged.setSecurityRoles(securityRolesMetaData);
     
      //Env
      EnvironmentRefsGroupMetaData environmentRefsGroup = new EnvironmentRefsGroupMetaData();
      Environment xmlEnv = xml != null ? xml.getJndiEnvironmentRefsGroup() : null;
      Environment annEnv = annotation != null ? annotation.getJndiEnvironmentRefsGroup() : null;
      environmentRefsGroup.merge(xmlEnv,annEnv, "", "", false);
      merged.setJndiEnvironmentRefsGroup(environmentRefsGroup);
     
      //Message Destinations
      MessageDestinationsMetaData messageDestinations = new MessageDestinationsMetaData();
View Full Code Here

      return classes;
   }
  
   private void assertEjbReferenceInvokerBindings(JBossEnterpriseBeanMetaData bean)
   {
      Environment envRefs = bean.getJndiEnvironmentRefsGroup();
      assertNotNull(envRefs);
      EJBReferencesMetaData ejbReferences = envRefs.getEjbReferences();
      assertNotNull(ejbReferences);
      EJBReferenceMetaData ejbRef = ejbReferences.get("session1EjbRef1Name");
      assertNotNull(ejbRef);
     
      assertEquals("session1Invoker1EjbName1", ejbRef.getInvokerBinding("invokerProxyBinding1Name"));
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

      String ejbName = beanImplClass.getSimpleName();
      JBossSessionBeanMetaData slsb = (JBossSessionBeanMetaData) metadata.getEnterpriseBean(ejbName);
      assert slsb != null : "Bean metadata for " + ejbName + " could not be found";

      // Get Environment
      Environment env = slsb.getJndiEnvironmentRefsGroup();

      // Look in Resource Env References
      ResourceEnvironmentReferencesMetaData envRefs = env.getResourceEnvironmentReferences();
      assertNotNull(envRefs);
      assertEquals(1, envRefs.size());
      ResourceEnvironmentReferenceMetaData envRef = envRefs.get("context");
      assertNotNull(envRef);
      assertNotNull(envRef.getInjectionTargets());
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

         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

      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

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.