Package org.jboss.metadata.javaee.spec

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


      final Map<Class<? extends Annotation>, ReferenceResolver> resolvers = this.getResolvers(unit);

      if (WSHelper.isJaxwsJseDeployment(dep))
      {
         this.log.debug("Building injection meta data for JAXWS JSE webservice deployment: " + dep.getSimpleName());
         final EnvironmentEntriesMetaData envEntriesMD = jbossWebMD.getEnvironmentEntries();

         // iterate through all POJO endpoints
         for (Endpoint endpoint : dep.getService().getEndpoints())
         {
            // build POJO injections meta data
            final InjectionsMetaData injectionsMD = this.buildInjectionsMetaData(envEntriesMD, resolvers);

            // associate injections meta data with POJO endpoint
            endpoint.addAttachment(InjectionsMetaData.class, injectionsMD);
         }
      }
      else if (WSHelper.isJaxwsEjbDeployment(dep))
      {
         this.log.debug("Building injection meta data for JAXWS EJB3 webservice deployment: " + dep.getSimpleName());
         final WebServiceDeployment webServiceDeployment = ASHelper.getRequiredAttachment(unit,
               WebServiceDeployment.class);
         final Service service = dep.getService();

         // iterate through all EJB3 endpoints
         for (final WebServiceDeclaration container : webServiceDeployment.getServiceEndpoints())
         {
            final String ejbName = container.getComponentName();
            final Endpoint endpoint = service.getEndpointByName(ejbName);
            if (endpoint != null && ASHelper.isWebServiceBean(container))
            {
               // build EJB 3 injections meta data
               final EnvironmentEntriesMetaData ejbEnvEntries = this.getEnvironmentEntries(ejbName, unit);
               final InjectionsMetaData injectionsMD = this.buildInjectionsMetaData(ejbEnvEntries, resolvers);

               // associate injections meta data with EJB 3 endpoint
               endpoint.addAttachment(InjectionsMetaData.class, injectionsMD);
            }
View Full Code Here


   protected void processEncReferences(WebApplication webApp, Context envCtx) throws ClassNotFoundException, NamingException
   {
      DeploymentUnit unit = webApp.getDeploymentUnit();
      JBossWebMetaData metaData = webApp.getMetaData();
      EnvironmentEntriesMetaData envEntries = metaData.getEnvironmentEntries();
      log.debug("addEnvEntries");
      addEnvEntries(envEntries, envCtx);
      ResourceEnvironmentReferencesMetaData resourceEnvRefs = metaData.getResourceEnvironmentReferences();
      log.debug("linkResourceEnvRefs");
      linkResourceEnvRefs(resourceEnvRefs, envCtx);
View Full Code Here

   }

   @XmlTransient
   public EnvironmentEntriesMetaData getEnvironmentEntries()
   {
      EnvironmentEntriesMetaData env = null;
      if(jndiEnvironmentRefsGroup != null)
         env = jndiEnvironmentRefsGroup.getEnvironmentEntries();
      return env;
   }
View Full Code Here

         type = getType(element);
      if(trace)
         log.trace("process: "+annotation+", type="+type);
      if(isEnvEntry(type))
      {
         EnvironmentEntriesMetaData env = refs.getEnvironmentEntries();
         if(env == null)
         {
            env = new EnvironmentEntriesMetaData();
            refs.setEnvironmentEntries(env);
         }
         EnvironmentEntryMetaData entry = createEntry(annotation, element);
         env.add(entry);
         if(trace)
            log.trace("created env-entry: "+entry);
      }
      else if(isServiceRef(type))
      {
View Full Code Here

    *
    * @return the environment entries
    */
   public Iterator<EnvEntryMetaData> getEnvironmentEntries()
   {
      EnvironmentEntriesMetaData result = getDelegate().getEnvironmentEntries();
      return new OldMetaDataIterator<EnvironmentEntryMetaData, EnvEntryMetaData>(result, EnvironmentEntryMetaData.class, EnvEntryMetaData.class);
   }
View Full Code Here

      JBossRemoteEnvironmentRefsGroupMetaData merged = new JBossRemoteEnvironmentRefsGroupMetaData();
     
      if (jbossEnvironmentRefsGroup == null && environmentRefsGroup == null)
         return merged;

      EnvironmentEntriesMetaData envEntries = null;
      EJBReferencesMetaData ejbRefs = null;
      EJBReferencesMetaData jbossEjbRefs = null;
      ServiceReferencesMetaData serviceRefs = null;
      ServiceReferencesMetaData jbossServiceRefs = null;
      ResourceReferencesMetaData resRefs = null;
View Full Code Here

         type = getType(element);
      if(trace)
         log.trace("process: "+annotation+", type="+type);
      if(isEnvEntry(type))
      {
         EnvironmentEntriesMetaData env = refs.getEnvironmentEntries();
         if(env == null)
         {
            env = new EnvironmentEntriesMetaData();
            refs.setEnvironmentEntries(env);
         }
         EnvironmentEntryMetaData entry = createEntry(annotation, element);
         env.add(entry);
         if(trace)
            log.trace("created env-entry: "+entry);
      }
      else if(isServiceRef(type))
      {
View Full Code Here

   }

   @XmlTransient
   public EnvironmentEntriesMetaData getEnvironmentEntries()
   {
      EnvironmentEntriesMetaData env = null;
      if(jndiEnvironmentRefsGroup != null)
         env = jndiEnvironmentRefsGroup.getEnvironmentEntries();
      return env;
   }
View Full Code Here

      RemoteEnvironmentRefsGroupMetaData merged = new RemoteEnvironmentRefsGroupMetaData();
     
      if (jbossEnvironmentRefsGroup == null && environmentRefsGroup == null)
         return merged;

      EnvironmentEntriesMetaData envEntries = null;
      EJBReferencesMetaData ejbRefs = null;
      EJBReferencesMetaData jbossEjbRefs = null;
      ServiceReferencesMetaData serviceRefs = null;
      ServiceReferencesMetaData jbossServiceRefs = null;
      ResourceReferencesMetaData resRefs = null;
View Full Code Here

   }

   @XmlTransient
   public EnvironmentEntriesMetaData getEnvironmentEntries()
   {
      EnvironmentEntriesMetaData env = null;
      if(jndiEnvironmentRefsGroup != null)
         env = jndiEnvironmentRefsGroup.getEnvironmentEntries();
      return env;
   }
View Full Code Here

TOP

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

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.