Package org.jboss.metadata.javaee.spec

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


   {
      if (xml == null)
      {
         return;
      }
      ServiceReferencesMetaData serviceRefs = xml.getServiceReferences();
      if (serviceRefs == null)
         return;
      for (ServiceReferenceMetaData sref : serviceRefs)
      {
         if (this.srefMap.get(sref.getServiceRefName()) != null)
View Full Code Here


         // When @WebServiceRef is not used service-ref won't be processed
         // In this case we process them late
         if (clientMetaData != null)
         {
            ServiceReferencesMetaData serviceRefs = clientMetaData.getServiceReferences();
            if (serviceRefs != null)
            {
               Iterator<ServiceReferenceMetaData> itRefs = serviceRefs.iterator();
               while (itRefs.hasNext())
               {
                  ServiceReferenceMetaData sref = itRefs.next();
                  try
                  {
View Full Code Here

   private Map<String, ServiceReferenceMetaData> srefMap = new HashMap<String, ServiceReferenceMetaData>();
  
   public void loadXml(X xml, InjectionContainer container)
   {
      if (xml == null) return;
      ServiceReferencesMetaData serviceRefs = xml.getServiceReferences();
      if (serviceRefs == null) return;

      for (ServiceReferenceMetaData sref : serviceRefs)
      {
         log.debug("service-ref: " + sref);
View Full Code Here

      linkEjbRefs(unit, ejbRefs, envCtx);
      EJBLocalReferencesMetaData ejbLocalRefs = metaData.getEjbLocalReferences();
      log.debug("linkEjbLocalRefs");
      linkEjbLocalRefs(unit, ejbLocalRefs, envCtx);
      log.debug("linkServiceRefs");
      ServiceReferencesMetaData serviceRefs = metaData.getServiceReferences();
      linkServiceRefs(unit, serviceRefs, envCtx);
   }
View Full Code Here

   }

   @XmlTransient
   public ServiceReferencesMetaData getServiceReferences()
   {
      ServiceReferencesMetaData refs = null;
      if(jndiEnvironmentRefsGroup != null)
         refs = jndiEnvironmentRefsGroup.getServiceReferences();
      return refs;
   }
View Full Code Here

         if(trace)
            log.trace("created env-entry: "+entry);
      }
      else if(isServiceRef(type))
      {
         ServiceReferencesMetaData srefs = refs.getServiceReferences();
         if(srefs == null)
         {
            srefs = new ServiceReferencesMetaData();
            refs.setServiceReferences(srefs);
         }
         ServiceReferenceMetaData ref = createServiceRef(annotation, element);
         srefs.add(ref);
         if(trace)
            log.trace("created service-ref: "+ref);
      }
      else if(isResourceRef(type))
      {
View Full Code Here

         puRefs = new PersistenceUnitReferencesMetaData();
         metaData.setPersistenceUnitRefs(puRefs);
      }
      processClass(puRefs, type);
      // @WebServiceRefs/@WebServiceRef
      ServiceReferencesMetaData wsRefs = metaData.getServiceReferences();
      if(wsRefs == null)
      {
         wsRefs = new ServiceReferencesMetaData();
         metaData.setServiceReferences(wsRefs);
      }
      processClass(wsRefs, type);
   }
View Full Code Here

    *
    * @return the service references
    */
   public Iterator<ServiceReferenceMetaData> getServiceReferences()
   {
      ServiceReferencesMetaData result = getDelegate().getServiceReferences();
      return (result != null ? result.iterator() : new ArrayList<ServiceReferenceMetaData>().iterator());
   }
View Full Code Here

         return merged;

      EnvironmentEntriesMetaData envEntries = null;
      EJBReferencesMetaData ejbRefs = null;
      EJBReferencesMetaData jbossEjbRefs = null;
      ServiceReferencesMetaData serviceRefs = null;
      ServiceReferencesMetaData jbossServiceRefs = null;
      ResourceReferencesMetaData resRefs = null;
      ResourceReferencesMetaData jbossResRefs = null;
      ResourceEnvironmentReferencesMetaData resEnvRefs = null;
      ResourceEnvironmentReferencesMetaData jbossResEnvRefs = null;
      MessageDestinationReferencesMetaData messageDestinationRefs = null;
      MessageDestinationReferencesMetaData jbossMessageDestinationRefs = null;
      PersistenceUnitReferencesMetaData persistenceUnitRefs = null;
      LifecycleCallbacksMetaData postConstructs = null;
      LifecycleCallbacksMetaData preDestroys = null;
     
      if (environmentRefsGroup != null)
      {
         envEntries = environmentRefsGroup.getEnvironmentEntries();
         ejbRefs = environmentRefsGroup.getEjbReferences();
         serviceRefs = environmentRefsGroup.getServiceReferences();
         resRefs = environmentRefsGroup.getResourceReferences();
         resEnvRefs = environmentRefsGroup.getResourceEnvironmentReferences();
         messageDestinationRefs = environmentRefsGroup.getMessageDestinationReferences();
         persistenceUnitRefs = environmentRefsGroup.getPersistenceUnitRefs();
         postConstructs = environmentRefsGroup.getPostConstructs();
         preDestroys = environmentRefsGroup.getPreDestroys();
      }
     
      if (jbossEnvironmentRefsGroup != null)
      {
         jbossEjbRefs = jbossEnvironmentRefsGroup.getEjbReferences();
         jbossServiceRefs = jbossEnvironmentRefsGroup.getServiceReferences();
         jbossResRefs = jbossEnvironmentRefsGroup.getResourceReferences();
         jbossResEnvRefs = jbossEnvironmentRefsGroup.getResourceEnvironmentReferences();
         jbossMessageDestinationRefs = jbossEnvironmentRefsGroup.getMessageDestinationReferences();
      }
     
      EJBReferencesMetaData mergedEjbRefs = EJBReferencesMetaData.merge(jbossEjbRefs, ejbRefs, overridenFile, overrideFile, mustOverride);
      if (mergedEjbRefs != null)
         merged.setEjbReferences(mergedEjbRefs);
     
      ServiceReferencesMetaData mergedServiceRefs = ServiceReferencesMetaData.merge(jbossServiceRefs, serviceRefs, overridenFile, overrideFile);
      if (mergedServiceRefs != null)
         merged.setServiceReferences(mergedServiceRefs);

      ResourceReferencesMetaData mergedResRefs = ResourceReferencesMetaData.merge(jbossResRefs, resRefs, overridenFile, overrideFile, mustOverride);
      if (mergedResRefs != null)
View Full Code Here

         return merged;

      EnvironmentEntriesMetaData envEntries = null;
      EJBReferencesMetaData ejbRefs = null;
      EJBReferencesMetaData jbossEjbRefs = null;
      ServiceReferencesMetaData serviceRefs = null;
      ServiceReferencesMetaData jbossServiceRefs = null;
      ResourceReferencesMetaData resRefs = null;
      ResourceReferencesMetaData jbossResRefs = null;
      ResourceEnvironmentReferencesMetaData resEnvRefs = null;
      ResourceEnvironmentReferencesMetaData jbossResEnvRefs = null;
      MessageDestinationReferencesMetaData messageDestinationRefs = null;
      MessageDestinationReferencesMetaData jbossMessageDestinationRefs = null;
      PersistenceUnitReferencesMetaData persistenceUnitRefs = null;
      LifecycleCallbacksMetaData postConstructs = null;
      LifecycleCallbacksMetaData preDestroys = null;
     
      if (environmentRefsGroup != null)
      {
         envEntries = environmentRefsGroup.getEnvironmentEntries();
         ejbRefs = environmentRefsGroup.getEjbReferences();
         serviceRefs = environmentRefsGroup.getServiceReferences();
         resRefs = environmentRefsGroup.getResourceReferences();
         resEnvRefs = environmentRefsGroup.getResourceEnvironmentReferences();
         messageDestinationRefs = environmentRefsGroup.getMessageDestinationReferences();
         persistenceUnitRefs = environmentRefsGroup.getPersistenceUnitRefs();
         postConstructs = environmentRefsGroup.getPostConstructs();
         preDestroys = environmentRefsGroup.getPreDestroys();
      }
     
      if (jbossEnvironmentRefsGroup != null)
      {
         jbossEjbRefs = jbossEnvironmentRefsGroup.getEjbReferences();
         jbossServiceRefs = jbossEnvironmentRefsGroup.getServiceReferences();
         jbossResRefs = jbossEnvironmentRefsGroup.getResourceReferences();
         jbossResEnvRefs = jbossEnvironmentRefsGroup.getResourceEnvironmentReferences();
         jbossMessageDestinationRefs = jbossEnvironmentRefsGroup.getMessageDestinationReferences();
      }
     
      EJBReferencesMetaData mergedEjbRefs = EJBReferencesMetaData.merge(jbossEjbRefs, ejbRefs, overridenFile, overrideFile, mustOverride);
      if (mergedEjbRefs != null)
         merged.setEjbReferences(mergedEjbRefs);
     
      ServiceReferencesMetaData mergedServiceRefs = ServiceReferencesMetaData.merge(jbossServiceRefs, serviceRefs, overridenFile, overrideFile);
      if (mergedServiceRefs != null)
         merged.setServiceReferences(mergedServiceRefs);

      ResourceReferencesMetaData mergedResRefs = ResourceReferencesMetaData.merge(jbossResRefs, resRefs, overridenFile, overrideFile, mustOverride);
      if (mergedResRefs != null)
View Full Code Here

TOP

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

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.