Package org.jboss.metadata.javaee.spec

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


         JBossClientMetaData jbossXmlMD = super.unmarshal(JBossClientMetaData.class);
         // Create a merged view
         JBossClientMetaData mergedMetaData = new JBossClientMetaData();
         mergedMetaData.merge(jbossXmlMD, merged, false);

         EnvironmentEntryMetaData msg = mergedMetaData.getEnvironmentEntryByName("msg");
         assertNotNull(msg);
         assertEquals("java.lang.String", msg.getType());
         assertEquals("how are you?", msg.getValue());

         LifecycleCallbacksMetaData postConstructs = mergedMetaData.getPostConstructs();
         assertNotNull(postConstructs);
         // 2 because of the null class name in the xml
         assertEquals(2, postConstructs.size());
         LifecycleCallbackMetaData pc0 = postConstructs.get(0);
         assertEquals("postConstruct", pc0.getMethodName());

         LifecycleCallbacksMetaData preDestroys = mergedMetaData.getPreDestroys();
         assertNotNull(preDestroys);
         // 2 because of the null class name in the xml
         assertEquals(2, preDestroys.size());
         LifecycleCallbackMetaData pd0 = preDestroys.get(0);
         assertEquals("preDestroy", pd0.getMethodName());

         assertEquals("org.jboss.ejb3.test.applicationclient.client.TestCallbackHandler", mergedMetaData.getCallbackHandler());

         // jms Queue maps to message-destination-refs
         MessageDestinationReferencesMetaData msgRefs = mergedMetaData.getMessageDestinationReferences();
         assertNotNull(msgRefs);
         MessageDestinationReferenceMetaData sendQueue = mergedMetaData.getMessageDestinationReferenceByName("sendQueue");
         assertNotNull(sendQueue);
         assertEquals("MDB_QUEUE", sendQueue.getJndiName());
         assertEquals("MDB_QUEUE", sendQueue.getMappedName());
         Set<ResourceInjectionTargetMetaData> sendQueueTargets = sendQueue.getInjectionTargets();
         assertEquals(1, sendQueueTargets.size());
         ResourceInjectionTargetMetaData sendQueueField = sendQueueTargets.iterator().next();
         assertEquals(Client.class.getName(), sendQueueField.getInjectionTargetClass());
         assertEquals("sendQueue", sendQueueField.getInjectionTargetName());

         // jms queue connection factory maps to resource-ref
         ResourceReferenceMetaData qcfRef = mergedMetaData.getResourceReferenceByName("queueConnectionFactory");
         assertNotNull(qcfRef);
         assertEquals("jms/QueueConnectionFactory", qcfRef.getJndiName());
         assertEquals("jms/QueueConnectionFactory", qcfRef.getMappedName());
         Set<ResourceInjectionTargetMetaData> qcfRefTargets = qcfRef.getInjectionTargets();
         assertEquals(1, qcfRefTargets.size());
         ResourceInjectionTargetMetaData qcfRefField = qcfRefTargets.iterator().next();
         assertEquals(Client.class.getName(), qcfRefField.getInjectionTargetClass());
         assertEquals("queueConnectionFactory", qcfRefField.getInjectionTargetName());
        
         // ORB maps to a resource-env-ref
         ResourceEnvironmentReferenceMetaData orbRes = clientMD.getResourceEnvironmentReferenceByName(Client.class.getName() + "/orb");
         assertNotNull(orbRes);
         assertEquals(ORB.class.getName(), orbRes.getType());
         ResourceEnvironmentReferenceMetaData messageReplier = mergedMetaData.getResourceEnvironmentReferenceByName("messageReplier");
         assertNotNull(messageReplier);
         assertEquals("javax.jms.Queue", messageReplier.getType());

         // String maps to env-entry
         EnvironmentEntryMetaData queueNameEntry = mergedMetaData.getEnvironmentEntryByName("queueName");
         assertNotNull(queueNameEntry);
         assertEquals("queue/testQueueOverride", queueNameEntry.getValue());
         Set<ResourceInjectionTargetMetaData> queueNameEntryTargets = queueNameEntry.getInjectionTargets();
         assertNotNull(queueNameEntryTargets);
         assertEquals(1, queueNameEntryTargets.size());
         ResourceInjectionTargetMetaData queueNameEntryField = queueNameEntryTargets.iterator().next();
         assertEquals(Client.class.getName(), queueNameEntryField.getInjectionTargetClass());
         assertEquals("queueName", queueNameEntryField.getInjectionTargetName());
View Full Code Here


      assertTrue(strictlyPooledMDB instanceof MessageDrivenBeanMetaData);
      MessageDrivenBeanMetaData strictlyPooledMDBMD = (MessageDrivenBeanMetaData) strictlyPooledMDB;
      assertEquals("AUTO_ACKNOWLEDGE", strictlyPooledMDBMD.getAcknowledgeMode());
      assertEquals("javax.jms.Queue", strictlyPooledMDBMD.getMessageDestinationType());
      assertEquals(SubscriptionDurability.NonDurable, strictlyPooledMDBMD.getSubscriptionDurability());
      EnvironmentEntryMetaData maxActiveCount = strictlyPooledMDBMD.getEnvironmentEntryByName("maxActiveCount");
      assertEquals("maxActiveCountID", maxActiveCount.getId());
      assertEquals("java.lang.Integer", maxActiveCount.getType());
      assertEquals("5", maxActiveCount.getValue());

      IEnterpriseBeanMetaData subclassMDB = beans.get("SubclassMDB");
      assertNotNull("strictlyPooledMDB", subclassMDB);
      assertEquals("SubclassMDB-id", subclassMDB.getId());
      assertEquals("Message driven pooling test", subclassMDB.getDescriptionGroup().getDescription());
View Full Code Here

      assertEquals("jbossHome", urlResField.getInjectionTargetName());

      // UserTransaction
     
      // String maps to env-entry
      EnvironmentEntryMetaData queueNameEntry = clientMD.getEnvironmentEntryByName("queueName");
      assertNotNull(queueNameEntry);
      assertEquals("queue/testQueue", queueNameEntry.getValue());
      Set<ResourceInjectionTargetMetaData> queueNameEntryTargets = queueNameEntry.getInjectionTargets();
      assertNotNull(queueNameEntryTargets);
      assertEquals(1, queueNameEntryTargets.size());
      ResourceInjectionTargetMetaData queueNameEntryField = queueNameEntryTargets.iterator().next();
      assertEquals(Super.class.getName(), queueNameEntryField.getInjectionTargetClass());
      assertEquals("queueName", queueNameEntryField.getInjectionTargetName());
View Full Code Here

      assertEquals(MyServlet.class.getName(), contextRefTarget.getInjectionTargetClass());
      assertEquals("utx", contextRefTarget.getInjectionTargetName());

      EnvironmentEntriesMetaData envEntries = env.getEnvironmentEntries();
      assertEquals(2, envEntries.size());
      EnvironmentEntryMetaData pi = envEntries.get(MyServlet.class.getName()+ "/pi");
      assertEquals("3.14159", pi.getValue());
      // TODO: should this be java.lang.Double?
      assertEquals("double", pi.getType());

      MessageDestinationReferencesMetaData msgRefs = env.getMessageDestinationReferences();
      assertEquals(1, msgRefs.size());
      MessageDestinationReferenceMetaData mailQueue = msgRefs.get(MyServlet.class.getName() + "/mailQueue");
      assertNotNull(mailQueue);
View Full Code Here

      assertEquals("jbossHome", urlResField.getInjectionTargetName());

      // UserTransaction
     
      // String maps to env-entry
      EnvironmentEntryMetaData queueNameEntry = clientMD.getEnvironmentEntryByName("queueName");
      assertNotNull(queueNameEntry);
      assertEquals("queue/testQueue", queueNameEntry.getValue());
      Set<ResourceInjectionTargetMetaData> queueNameEntryTargets = queueNameEntry.getInjectionTargets();
      assertNotNull(queueNameEntryTargets);
      assertEquals(1, queueNameEntryTargets.size());
      ResourceInjectionTargetMetaData queueNameEntryField = queueNameEntryTargets.iterator().next();
      assertEquals(Client.class.getName(), queueNameEntryField.getInjectionTargetClass());
      assertEquals("queueName", queueNameEntryField.getInjectionTargetName());
View Full Code Here

      assertEquals("org.jboss.test.metadata.annotation.ejb3.MyStatelessBean", contextRefTarget.getInjectionTargetClass());
      assertEquals("context", contextRefTarget.getInjectionTargetName());

      EnvironmentEntriesMetaData envEntries = sbeanMD.getEnvironmentEntries();
      assertEquals(2, envEntries.size());
      EnvironmentEntryMetaData pi = envEntries.get(sbeanMD.getEjbClass() + "/pi");
      assertEquals("3.14159", pi.getValue());
      // TODO: should this be java.lang.Double?
      assertEquals("double", pi.getType());

      MessageDestinationReferencesMetaData msgRefs = sbeanMD.getMessageDestinationReferences();
      assertEquals(1, msgRefs.size());
      MessageDestinationReferenceMetaData mailQueue = msgRefs.get(sbeanMD.getEjbClass() + "/mailQueue");
      assertNotNull(mailQueue);
View Full Code Here

      ejbRef.setJndiName(ejbRef.getEjbRefName() + "Original");
      ejbRefs.add(ejbRef);
      originalEnv.setEjbReferences(ejbRefs);
     
      EnvironmentEntriesMetaData envEntries = new EnvironmentEntriesMetaData();
      EnvironmentEntryMetaData envEntry = new EnvironmentEntryMetaData();
      envEntry.setEnvEntryName("entry1");
      envEntry.setJndiName(envEntry.getEnvEntryName() + "Original");
      envEntries.add(envEntry);
      envEntry = new EnvironmentEntryMetaData();
      envEntry.setEnvEntryName("entry2");
      envEntry.setJndiName(envEntry.getEnvEntryName() + "Original");
      envEntries.add(envEntry);
      originalEnv.setEnvironmentEntries(envEntries);
     
      MessageDestinationReferencesMetaData destRefs = new MessageDestinationReferencesMetaData();
      MessageDestinationReferenceMetaData destRef = new MessageDestinationReferenceMetaData();
      destRef.setMessageDestinationRefName("destRef1");
      destRef.setJndiName(destRef.getMessageDestinationRefName() + "Original");
      destRefs.add(destRef);
      destRef = new MessageDestinationReferenceMetaData();
      destRef.setMessageDestinationRefName("destRef2");
      destRef.setJndiName(destRef.getMessageDestinationRefName() + "Original");
      destRefs.add(destRef);
      originalEnv.setMessageDestinationReferences(destRefs);
     
      PersistenceContextReferencesMetaData pctxRefs = new PersistenceContextReferencesMetaData();
      PersistenceContextReferenceMetaData pctxRef = new PersistenceContextReferenceMetaData();
      pctxRef.setPersistenceContextRefName("pctxRef1");
      pctxRef.setJndiName(pctxRef.getPersistenceContextRefName() + "Original");
      pctxRefs.add(pctxRef);
      pctxRef = new PersistenceContextReferenceMetaData();
      pctxRef.setPersistenceContextRefName("pctxRef2");
      pctxRef.setJndiName(pctxRef.getPersistenceContextRefName() + "Original");
      pctxRefs.add(pctxRef);
      originalEnv.setPersistenceContextRefs(pctxRefs);

      PersistenceUnitReferencesMetaData pUnitRefs = new PersistenceUnitReferencesMetaData();
      PersistenceUnitReferenceMetaData pUnitRef = new PersistenceUnitReferenceMetaData();
      pUnitRef.setPersistenceUnitRefName("pUnitRef1");
      pUnitRef.setJndiName(pUnitRef.getPersistenceUnitRefName() + "Original");
      pUnitRefs.add(pUnitRef);
      pUnitRef = new PersistenceUnitReferenceMetaData();
      pUnitRef.setPersistenceUnitRefName("pUnitRef2");
      pUnitRef.setJndiName(pUnitRef.getPersistenceUnitRefName() + "Original");
      pUnitRefs.add(pUnitRef);
      originalEnv.setPersistenceUnitRefs(pUnitRefs);
     
      LifecycleCallbacksMetaData callbacks = new LifecycleCallbacksMetaData();
      LifecycleCallbackMetaData callback = new LifecycleCallbackMetaData();
      callback.setClassName("class1");
      callback.setMethodName("postCtor1Original");
      callbacks.add(callback);
      callback = new LifecycleCallbackMetaData();
      callback.setClassName("class2");
      callback.setMethodName("postCtor2Original");
      callbacks.add(callback);
      originalEnv.setPostConstructs(callbacks);
     
      callbacks = new LifecycleCallbacksMetaData();
      callback = new LifecycleCallbackMetaData();
      callback.setClassName("class1");
      callback.setMethodName("preDestroy1Original");
      callbacks.add(callback);
      callback = new LifecycleCallbackMetaData();
      callback.setClassName("class2");
      callback.setMethodName("preDestroy2Original");
      callbacks.add(callback);
      originalEnv.setPreDestroys(callbacks);
     
      ResourceEnvironmentReferencesMetaData resEnvRefs = new ResourceEnvironmentReferencesMetaData();
      ResourceEnvironmentReferenceMetaData resEnvRef = new ResourceEnvironmentReferenceMetaData();
      resEnvRef.setResourceEnvRefName("resEnvRef1");
      resEnvRef.setJndiName(resEnvRef.getResourceEnvRefName() + "Original");
      resEnvRefs.add(resEnvRef);
      resEnvRef = new ResourceEnvironmentReferenceMetaData();
      resEnvRef.setResourceEnvRefName("resEnvRef2");
      resEnvRef.setJndiName(resEnvRef.getResourceEnvRefName() + "Original");
      resEnvRefs.add(resEnvRef);
      originalEnv.setResourceEnvironmentReferences(resEnvRefs);
     
      ResourceReferencesMetaData resRefs = new ResourceReferencesMetaData();
      ResourceReferenceMetaData resRef = new ResourceReferenceMetaData();
      resRef.setResourceRefName("resRef1");
      resRef.setJndiName(resRef.getResourceRefName() + "Original");
      resRefs.add(resRef);
      resRef = new ResourceReferenceMetaData();
      resRef.setResourceRefName("resRef2");
      resRef.setJndiName(resRef.getResourceRefName() + "Original");
      resRefs.add(resRef);
      originalEnv.setResourceReferences(resRefs);
     
      JBossServiceReferencesMetaData serviceRefs = new JBossServiceReferencesMetaData();
      JBossServiceReferenceMetaData serviceRef = new JBossServiceReferenceMetaData();
      serviceRef.setServiceRefName("serviceRef1");
      serviceRef.setJndiName(serviceRef.getServiceRefName() + "Original");
      serviceRefs.add(serviceRef);
      serviceRef = new JBossServiceReferenceMetaData();
      serviceRef.setServiceRefName("serviceRef2");
      serviceRef.setJndiName(serviceRef.getServiceRefName() + "Original");
      serviceRefs.add(serviceRef);
      originalEnv.setServiceReferences(serviceRefs);
     
      // override
      JBossSessionBeanMetaData override = new JBossSessionBeanMetaData();
      override.setEjbName("session");
      JBossEnvironmentRefsGroupMetaData overrideEnv = new JBossEnvironmentRefsGroupMetaData();
      override.setJndiEnvironmentRefsGroup(overrideEnv);
      overrideEnv.setAnnotatedEjbReferences(new AnnotatedEJBReferencesMetaData());

      localRefs = new EJBLocalReferencesMetaData();
      localRef = new EJBLocalReferenceMetaData();
      localRef.setEjbRefName("localRef2");
      localRef.setJndiName(localRef.getEjbRefName() + "Override");
      localRefs.add(localRef);
      overrideEnv.setEjbLocalReferences(localRefs);
     
      ejbRefs = new EJBReferencesMetaData();
      ejbRef = new EJBReferenceMetaData();
      ejbRef.setEjbRefName("ejbRef2");
      ejbRef.setJndiName(ejbRef.getEjbRefName() + "Override");
      ejbRefs.add(ejbRef);
      overrideEnv.setEjbReferences(ejbRefs);

      envEntries = new EnvironmentEntriesMetaData();
      envEntry = new EnvironmentEntryMetaData();
      envEntry.setEnvEntryName("entry2");
      envEntry.setJndiName(envEntry.getEnvEntryName() + "Override");
      envEntries.add(envEntry);
      envEntry = new EnvironmentEntryMetaData();
      envEntry.setEnvEntryName("entry3");
      envEntry.setJndiName(envEntry.getEnvEntryName() + "Override");
      envEntries.add(envEntry);
      overrideEnv.setEnvironmentEntries(envEntries);

      destRefs = new MessageDestinationReferencesMetaData();
      destRef = new MessageDestinationReferenceMetaData();
      destRef.setMessageDestinationRefName("destRef2");
      destRef.setJndiName(destRef.getMessageDestinationRefName() + "Override");
      destRefs.add(destRef);
      overrideEnv.setMessageDestinationReferences(destRefs);
     
      pctxRefs = new PersistenceContextReferencesMetaData();
      pctxRef = new PersistenceContextReferenceMetaData();
      pctxRef.setPersistenceContextRefName("pctxRef2");
      pctxRef.setJndiName(pctxRef.getPersistenceContextRefName() + "Override");
      pctxRefs.add(pctxRef);
      pctxRef = new PersistenceContextReferenceMetaData();
      pctxRef.setPersistenceContextRefName("pctxRef3");
      pctxRef.setJndiName(pctxRef.getPersistenceContextRefName() + "Override");
      pctxRefs.add(pctxRef);
      overrideEnv.setPersistenceContextRefs(pctxRefs);
     
      pUnitRefs = new PersistenceUnitReferencesMetaData();
      pUnitRef = new PersistenceUnitReferenceMetaData();
      pUnitRef.setPersistenceUnitRefName("pUnitRef2");
      pUnitRef.setJndiName(pUnitRef.getPersistenceUnitRefName() + "Override");
      pUnitRefs.add(pUnitRef);
      pUnitRef = new PersistenceUnitReferenceMetaData();
      pUnitRef.setPersistenceUnitRefName("pUnitRef3");
      pUnitRef.setJndiName(pUnitRef.getPersistenceUnitRefName() + "Override");
      pUnitRefs.add(pUnitRef);
      overrideEnv.setPersistenceUnitRefs(pUnitRefs);
     
      callbacks = new LifecycleCallbacksMetaData();
      callback = new LifecycleCallbackMetaData();
      callback.setClassName("class2");
      callback.setMethodName("postCtor2Override");
      callbacks.add(callback);
      callback = new LifecycleCallbackMetaData();
      callback.setClassName("class3");
      callback.setMethodName("postCtor3Override");
      callbacks.add(callback);
      overrideEnv.setPostConstructs(callbacks);

      callbacks = new LifecycleCallbacksMetaData();
      callback = new LifecycleCallbackMetaData();
      callback.setClassName("class2");
      callback.setMethodName("preDestroy2Override");
      callbacks.add(callback);
      callback = new LifecycleCallbackMetaData();
      callback.setClassName("class3");
      callback.setMethodName("preDestroy3Override");
      callbacks.add(callback);
      overrideEnv.setPreDestroys(callbacks);

      resEnvRefs = new ResourceEnvironmentReferencesMetaData();
      resEnvRef = new ResourceEnvironmentReferenceMetaData();
      resEnvRef.setResourceEnvRefName("resEnvRef2");
      resEnvRef.setJndiName(resEnvRef.getResourceEnvRefName() + "Override");
      resEnvRefs.add(resEnvRef);
      resEnvRef = new ResourceEnvironmentReferenceMetaData();
      resEnvRef.setResourceEnvRefName("resEnvRef3");
      resEnvRef.setJndiName(resEnvRef.getResourceEnvRefName() + "Override");
      resEnvRefs.add(resEnvRef);
      overrideEnv.setResourceEnvironmentReferences(resEnvRefs);
     
      resRefs = new ResourceReferencesMetaData();
      resRef = new ResourceReferenceMetaData();
      resRef.setResourceRefName("resRef2");
      resRef.setJndiName(resRef.getResourceRefName() + "Override");
      resRefs.add(resRef);
      overrideEnv.setResourceReferences(resRefs);

      serviceRefs = new JBossServiceReferencesMetaData();
      serviceRef = new JBossServiceReferenceMetaData();
      serviceRef.setServiceRefName("serviceRef2");
      serviceRef.setJndiName(serviceRef.getServiceRefName() + "Override");
      serviceRefs.add(serviceRef);
      serviceRef = new JBossServiceReferenceMetaData();
      serviceRef.setServiceRefName("serviceRef3");
      serviceRef.setJndiName(serviceRef.getServiceRefName() + "Override");
      serviceRefs.add(serviceRef);
      overrideEnv.setServiceReferences(serviceRefs);
     
      // merged
      JBossSessionBeanMetaData merged = new JBossSessionBeanMetaData();
      JBossEnterpriseBeansMetaData mergedBeans = new JBossEnterpriseBeansMetaData();
      mergedBeans.setEjbJarMetaData(new JBoss50MetaData());
      merged.setEnterpriseBeansMetaData(mergedBeans);
      merged.merge(override, original);
      JBossEnvironmentRefsGroupMetaData mergedEnv = (JBossEnvironmentRefsGroupMetaData) merged.getJndiEnvironmentRefsGroup();
      assertNotNull(mergedEnv);
     
      // Simple in here
      assertNotNull(merged.getAnnotatedEjbReferences());
     

      // local refs
      localRefs = mergedEnv.getEjbLocalReferences();
      assertNotNull(localRefs);
      assertEquals(2, localRefs.size());
      localRef = localRefs.get("localRef1");
      assertNotNull(localRef);
      assertEquals(localRef.getEjbRefName() + "Original", localRef.getJndiName());
      localRef = localRefs.get("localRef2");
      assertNotNull(localRef);
      assertEquals(localRef.getEjbRefName() + "Override", localRef.getJndiName());
     
      ejbRefs = mergedEnv.getEjbReferences();
      assertNotNull(ejbRefs);
      assertEquals(2, ejbRefs.size());
      ejbRef = ejbRefs.get("ejbRef1");
      assertNotNull(ejbRef);
      assertEquals(ejbRef.getEjbRefName() + "Original", ejbRef.getJndiName());
      ejbRef = ejbRefs.get("ejbRef2");
      assertNotNull(ejbRef);
      assertEquals(ejbRef.getEjbRefName() + "Override", ejbRef.getJndiName());
     
      envEntries = mergedEnv.getEnvironmentEntries();
      assertNotNull(envEntries);
      assertEquals(3, envEntries.size());
      envEntry = envEntries.get("entry1");
      assertNotNull(envEntry);
      assertEquals(envEntry.getEnvEntryName() + "Original", envEntry.getJndiName());
      envEntry = envEntries.get("entry2");
      assertNotNull(envEntry);
      assertEquals(envEntry.getEnvEntryName() + "Override", envEntry.getJndiName());
      envEntry = envEntries.get("entry3");
      assertNotNull(envEntry);
      assertEquals(envEntry.getEnvEntryName() + "Override", envEntry.getJndiName());
     
      destRefs = mergedEnv.getMessageDestinationReferences();
      assertNotNull(destRefs);
      assertEquals(2, destRefs.size());
      destRef = destRefs.get("destRef1");
View Full Code Here

      EjbJar3xMetaData result = unmarshal();
      IEnterpriseBeansMetaData beans = result.getEnterpriseBeans();
      assertNotNull(beans);
      IEnterpriseBeanMetaData bean = beans.get("StatelessSession1");
      assertNotNull("StatelessSession1 bean", bean);
      EnvironmentEntryMetaData entry = bean.getEnvironmentEntryByName("session1-entry1-name");
      assertEquals("session1-entry1-id", entry.getId());
      assertEquals("session1-entry1-value", entry.getValue());
      assertEquals("java.lang.String", entry.getType());
      assertEquals("session1-entry1-mapped-name", entry.getMappedName());
      Set<ResourceInjectionTargetMetaData> targets = entry.getInjectionTargets();
      assertEquals(1, targets.size());
      ResourceInjectionTargetMetaData target = targets.iterator().next();
      assertEquals("session1.entry1.target", target.getInjectionTargetClass());
      assertEquals("session1_entry1_injection_target_name", target.getInjectionTargetName());
   }
View Full Code Here

      if ((envEntries == null) || (envEntries.size() == 0))
      {
         return Collections.emptyList();
      }

      EnvironmentEntryMetaData eeMD = null;
      LinkedList<InjectionMetaData> retVal = new LinkedList<InjectionMetaData>();
      String envEntryName = null;
      String envEntryValue = null;
      String targetClass = null;
      String targetName = null;
      String valueClass = null;

      for (Iterator<EnvironmentEntryMetaData> i = envEntries.iterator(); i.hasNext();)
      {
         eeMD = i.next();
         envEntryName = eeMD.getEnvEntryName();
         envEntryValue = eeMD.getValue();
         valueClass = eeMD.getType();

         Set<ResourceInjectionTargetMetaData> injectionTargets = eeMD.getInjectionTargets();
         if ((injectionTargets != null) && (injectionTargets.size() > 0))
         {
            for (Iterator<ResourceInjectionTargetMetaData> j = injectionTargets.iterator(); j.hasNext(); )
            {
               ResourceInjectionTargetMetaData ritMD = j.next();
View Full Code Here

/* 171 */       if (env == null)
/*     */       {
/* 173 */         env = new EnvironmentEntriesMetaData();
/* 174 */         refs.setEnvironmentEntries(env);
/*     */       }
/* 176 */       EnvironmentEntryMetaData entry = createEntry(annotation, element);
/* 177 */       env.add(entry);
/* 178 */       if (trace)
/* 179 */         log.trace("created env-entry: " + entry);
/*     */     }
/* 181 */     else if (isServiceRef(type))
View Full Code Here

TOP

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

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.