Examples of UnifiedServiceRefMetaData


Examples of org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData

    * when rebuild is called (actually getPort(...))
    * @param epMetaData
    */
   private void bufferServiceRefContributions(EndpointMetaData epMetaData)
   {
      UnifiedServiceRefMetaData serviceRefMetaData = ServiceObjectFactoryJAXWS.getServiceRefAssociation();

      if(serviceRefMetaData!=null)
      {
         for(UnifiedPortComponentRefMetaData portComp : serviceRefMetaData.getPortComponentRefs())
         {
            epMetaData.getServiceRefContrib().add(portComp);
         }
      }
   }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData

         // Get the target class name
         String targetClassName = (String)ref.get(ServiceReferenceable.TARGET_CLASS_NAME).getContent();

         // Unmarshall the UnifiedServiceRef
         UnifiedServiceRefMetaData serviceRef = unmarshallServiceRef(ref);
         String serviceRefName = serviceRef.getServiceRefName();
         QName serviceQName = serviceRef.getServiceQName();

         String serviceImplClass = serviceRef.getServiceImplClass();
         if (serviceImplClass == null)
            serviceImplClass = (String)ref.get(ServiceReferenceable.SERVICE_IMPL_CLASS).getContent();

         // If the target defaults to javax.xml.ws.Service, use the service as the target
         if (Service.class.getName().equals(targetClassName))
            targetClassName = serviceImplClass;
        
         log.debug("[name=" + serviceRefName + ",service=" + serviceImplClass + ",target=" + targetClassName + "]");

         // Load the service class
         ClassLoader ctxLoader = Thread.currentThread().getContextClassLoader();
         Class serviceClass = ctxLoader.loadClass(serviceImplClass);
         Class targetClass = (targetClassName != null ? ctxLoader.loadClass(targetClassName) : null);

         if (Service.class.isAssignableFrom(serviceClass) == false)
            throw new IllegalArgumentException("WebServiceRef type '" + serviceClass + "' is not assignable to javax.xml.ws.Service");
        
         log.debug("Loaded Service '" + serviceClass.getName() + "' from: " + serviceClass.getProtectionDomain().getCodeSource());

         // Receives either a javax.xml.ws.Service or a dynamic proxy
         Object target;

         // Get the URL to the wsdl
         URL wsdlURL = serviceRef.getWsdlLocation();
         try
         {
            // Associate the ServiceRefMetaData with this thread
            serviceRefAssociation.set(serviceRef);
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData

      }
   }

   private UnifiedServiceRefMetaData unmarshallServiceRef(Reference ref) throws ClassNotFoundException, NamingException
   {
      UnifiedServiceRefMetaData sref;
      RefAddr refAddr = ref.get(ServiceReferenceable.SERVICE_REF_META_DATA);
      ByteArrayInputStream bais = new ByteArrayInputStream((byte[])refAddr.getContent());
      try
      {
         ObjectInputStream ois = new ObjectInputStream(bais);
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData

/*     */     {
/*  90 */       Reference ref = (Reference)obj;
/*     */
/*  93 */       String targetClassName = (String)ref.get("TARGET_CLASS_NAME").getContent();
/*     */
/*  96 */       UnifiedServiceRefMetaData serviceRef = unmarshallServiceRef(ref);
/*  97 */       String serviceRefName = serviceRef.getServiceRefName();
/*  98 */       QName serviceQName = serviceRef.getServiceQName();
/*     */
/* 100 */       String serviceImplClass = serviceRef.getServiceImplClass();
/* 101 */       if (serviceImplClass == null) {
/* 102 */         serviceImplClass = (String)ref.get("SERVICE_CLASS_NAME").getContent();
/*     */       }
/*     */
/* 105 */       if (Service.class.getName().equals(targetClassName)) {
/* 106 */         targetClassName = serviceImplClass;
/*     */       }
/* 108 */       log.debug("[name=" + serviceRefName + ",service=" + serviceImplClass + ",target=" + targetClassName + "]");
/*     */
/* 111 */       ClassLoader ctxLoader = Thread.currentThread().getContextClassLoader();
/* 112 */       Class serviceClass = ctxLoader.loadClass(serviceImplClass);
/* 113 */       Class targetClass = targetClassName != null ? ctxLoader.loadClass(targetClassName) : null;
/*     */
/* 115 */       if (!Service.class.isAssignableFrom(serviceClass)) {
/* 116 */         throw new IllegalArgumentException("WebServiceRef type '" + serviceClass + "' is not assignable to javax.xml.ws.Service");
/*     */       }
/*     */
/* 118 */       log.debug("Loaded Service '" + serviceClass.getName() + "' from: " + serviceClass.getProtectionDomain().getCodeSource());
/*     */
/* 124 */       URL wsdlURL = serviceRef.getWsdlLocation();
/*     */       Object target;
/*     */       try
/*     */       {
/* 128 */         serviceRefAssociation.set(serviceRef);
/*     */
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData

/*     */   }
/*     */
/*     */   private UnifiedServiceRefMetaData unmarshallServiceRef(Reference ref) throws ClassNotFoundException, NamingException {
/* 229 */     RefAddr refAddr = ref.get("SERVICE_REF_META_DATA");
/* 230 */     ByteArrayInputStream bais = new ByteArrayInputStream((byte[])(byte[])refAddr.getContent());
/*     */     UnifiedServiceRefMetaData sref;
/*     */     try {
/* 233 */       ObjectInputStream ois = new ObjectInputStream(bais);
/* 234 */       sref = (UnifiedServiceRefMetaData)ois.readObject();
/* 235 */       ois.close();
/*     */     }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData

/*     */     }
/*     */   }
/*     */
/*     */   private void bufferServiceRefContributions(EndpointMetaData epMetaData)
/*     */   {
/* 184 */     UnifiedServiceRefMetaData serviceRefMetaData = ServiceObjectFactoryJAXWS.getServiceRefAssociation();
/*     */
/* 186 */     if (serviceRefMetaData != null)
/*     */     {
/* 188 */       for (UnifiedPortComponentRefMetaData portComp : serviceRefMetaData.getPortComponentRefs())
/*     */       {
/* 190 */         epMetaData.getServiceRefContrib().add(portComp);
/*     */       }
/*     */     }
/*     */   }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData

/*     */   {
/*     */     try
/*     */     {
/* 109 */       Reference ref = (Reference)obj;
/*     */
/* 112 */       UnifiedServiceRefMetaData serviceRef = null;
/* 113 */       RefAddr metaRefAddr = ref.get("SERVICE_REF_META_DATA");
/* 114 */       ByteArrayInputStream bais = new ByteArrayInputStream((byte[])(byte[])metaRefAddr.getContent());
/*     */       try
/*     */       {
/* 117 */         ObjectInputStream ois = new ObjectInputStream(bais);
/* 118 */         serviceRef = (UnifiedServiceRefMetaData)ois.readObject();
/* 119 */         ois.close();
/*     */       }
/*     */       catch (IOException ex)
/*     */       {
/* 123 */         NamingException ne = new NamingException("Cannot unmarshall service ref meta data");
/* 124 */         ne.setRootCause(ex);
/* 125 */         throw ne;
/*     */       }
/*     */
/* 129 */       WSSecurityConfiguration securityConfig = null;
/* 130 */       RefAddr wsseRefAddr = ref.get("SECURITY_CONFIG");
/* 131 */       if (wsseRefAddr != null)
/*     */       {
/* 133 */         bais = new ByteArrayInputStream((byte[])(byte[])wsseRefAddr.getContent());
/*     */         try
/*     */         {
/* 136 */           ObjectInputStream ois = new ObjectInputStream(bais);
/* 137 */           securityConfig = (WSSecurityConfiguration)ois.readObject();
/* 138 */           ois.close();
/*     */         }
/*     */         catch (IOException e)
/*     */         {
/* 142 */           throw new NamingException("Cannot unmarshall security config, cause: " + e.toString());
/*     */         }
/*     */       }
/*     */
/* 146 */       ServiceImpl jaxrpcService = null;
/* 147 */       URL wsdlLocation = serviceRef.getWsdlLocation();
/* 148 */       if (wsdlLocation != null)
/*     */       {
/* 150 */         if (log.isDebugEnabled()) {
/* 151 */           log.debug("Create jaxrpc service from wsdl");
/*     */         }
/*     */
/* 154 */         QName serviceName = serviceRef.getServiceQName();
/* 155 */         JavaWsdlMapping javaWsdlMapping = getJavaWsdlMapping(serviceRef);
/* 156 */         jaxrpcService = new ServiceImpl(serviceName, wsdlLocation, javaWsdlMapping, securityConfig, serviceRef);
/*     */       }
/*     */       else
/*     */       {
/* 160 */         if (log.isDebugEnabled())
/* 161 */           log.debug("Create jaxrpc service with no wsdl");
/* 162 */         jaxrpcService = new ServiceImpl(new QName("http://www.jboss.org/jbossws", "AnonymousService"));
/*     */       }
/*     */
/* 165 */       ServiceMetaData serviceMetaData = jaxrpcService.getServiceMetaData();
/*     */       Properties callProps;
/* 168 */       if (serviceRef.getCallProperties().size() > 0)
/*     */       {
/* 170 */         callProps = new Properties();
/* 171 */         serviceMetaData.setProperties(callProps);
/* 172 */         for (UnifiedCallPropertyMetaData prop : serviceRef.getCallProperties()) {
/* 173 */           callProps.setProperty(prop.getPropName(), prop.getPropValue());
/*     */         }
/*     */
/*     */       }
/*     */
/* 178 */       RefAddr pcLinkRef = ref.get("PORT_COMPONENT_LINK");
/* 179 */       if (pcLinkRef != null)
/*     */       {
/* 181 */         String pcLink = (String)pcLinkRef.getContent();
/* 182 */         log.debug("Resolving port-component-link: " + pcLink);
/*     */
/* 185 */         String endpointAddress = null;
/*     */         try
/*     */         {
/* 188 */           SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
/* 189 */           EndpointRegistry epRegistry = ((EndpointRegistryFactory)spiProvider.getSPI(EndpointRegistryFactory.class)).getEndpointRegistry();
/* 190 */           Endpoint endpoint = epRegistry.resolve(new PortComponentResolver(pcLink));
/* 191 */           if (endpoint == null) {
/* 192 */             throw new WSException("Cannot resolve port-component-link: " + pcLink);
/*     */           }
/* 194 */           ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)endpoint.getAttachment(ServerEndpointMetaData.class);
/* 195 */           endpointAddress = sepMetaData.getEndpointAddress();
/*     */         }
/*     */         catch (Throwable ex)
/*     */         {
/*     */         }
/*     */
/* 203 */         if (endpointAddress == null)
/*     */         {
/* 205 */           String servletPath = (String)ref.get("PORT_COMPONENT_LINK_SERVLET").getContent();
/* 206 */           servletPath = servletPath + "?pcLink=" + URLEncoder.encode(pcLink, "UTF-8");
/* 207 */           InputStream is = new URL(servletPath).openStream();
/* 208 */           BufferedReader br = new BufferedReader(new InputStreamReader(is));
/* 209 */           endpointAddress = br.readLine();
/* 210 */           is.close();
/*     */         }
/*     */
/* 213 */         if (log.isDebugEnabled())
/* 214 */           log.debug("Resolved to: " + endpointAddress);
/* 215 */         if (serviceMetaData.getEndpoints().size() == 1)
/*     */         {
/* 217 */           EndpointMetaData epMetaData = (EndpointMetaData)serviceMetaData.getEndpoints().get(0);
/* 218 */           epMetaData.setEndpointAddress(endpointAddress);
/*     */         }
/*     */         else
/*     */         {
/* 222 */           log.warn("Cannot set endpoint address for port-component-link, unsuported number of endpoints");
/*     */         }
/*     */       }
/*     */
/* 226 */       narrowPortSelection(serviceRef, serviceMetaData);
/*     */
/* 233 */       ClassLoader contextCL = Thread.currentThread().getContextClassLoader();
/* 234 */       Class siClass = contextCL.loadClass(serviceRef.getServiceInterface());
/* 235 */       if (!Service.class.isAssignableFrom(siClass)) {
/* 236 */         throw new JAXRPCException("The service interface does not implement javax.xml.rpc.Service: " + siClass.getName());
/*     */       }
/*     */
/* 239 */       for (UnifiedPortComponentRefMetaData pcr : serviceRef.getPortComponentRefs())
/*     */       {
/* 241 */         String seiName = pcr.getServiceEndpointInterface();
/* 242 */         if (seiName != null)
/*     */         {
/* 244 */           Class seiClass = contextCL.loadClass(seiName);
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData

/*     */     }
/*     */   }
/*     */
/*     */   private UnifiedServiceRefMetaData getUnifiedServiceRefMetaData(UnifiedVirtualFile vfsRoot, ServiceReferenceMetaData sref)
/*     */   {
/* 100 */     UnifiedServiceRefMetaData result = new UnifiedServiceRefMetaData(vfsRoot);
/* 101 */     result.setServiceRefName(sref.getServiceRefName());
/* 102 */     result.setServiceInterface(sref.getServiceInterface());
/* 103 */     result.setServiceRefType(sref.getServiceRefType());
/* 104 */     result.setWsdlFile(sref.getWsdlFile());
/* 105 */     result.setMappingFile(sref.getJaxrpcMappingFile());
/* 106 */     result.setServiceQName(sref.getServiceQname());
/* 107 */     result.setAnnotatedElement(sref.getAnnotatedElement());
/* 108 */     result.setProcessed(sref.isProcessed());
/*     */
/* 110 */     List pcRefs = sref.getPortComponentRef();
/* 111 */     if (pcRefs != null)
/*     */     {
/* 113 */       for (PortComponentRef pcRef : pcRefs)
/*     */       {
/* 115 */         UnifiedPortComponentRefMetaData upcRef = getUnifiedPortComponentRefMetaData(result, pcRef);
/* 116 */         if ((upcRef.getServiceEndpointInterface() != null) || (upcRef.getPortQName() != null))
/* 117 */           result.addPortComponentRef(upcRef);
/*     */         else {
/* 119 */           this.log.warn("Ignore <port-component-ref> without <service-endpoint-interface> and <port-qname>: " + upcRef);
/*     */         }
/*     */       }
/*     */     }
/* 123 */     ServiceReferenceHandlersMetaData srHandlers = sref.getHandlers();
/* 124 */     if (srHandlers != null)
/*     */     {
/* 126 */       Iterator it = srHandlers.iterator();
/* 127 */       while (it.hasNext())
/*     */       {
/* 129 */         ServiceReferenceHandlerMetaData srHandlerMetaData = (ServiceReferenceHandlerMetaData)it.next();
/* 130 */         UnifiedHandlerMetaData uHandlerMetaData = getUnifiedHandlerMetaData(srHandlerMetaData);
/* 131 */         result.addHandler(uHandlerMetaData);
/*     */       }
/*     */     }
/*     */
/* 135 */     ServiceReferenceHandlerChainsMetaData srHandlerChains = sref.getHandlerChains();
/* 136 */     if (srHandlerChains != null)
/*     */     {
/* 138 */       UnifiedHandlerChainsMetaData uHandlerChains = new UnifiedHandlerChainsMetaData();
/* 139 */       List srHandlerChainList = srHandlerChains.getHandlers();
/* 140 */       for (ServiceReferenceHandlerChainMetaData srHandlerChain : srHandlerChainList)
/*     */       {
/* 142 */         UnifiedHandlerChainMetaData uHandlerChain = new UnifiedHandlerChainMetaData();
/* 143 */         uHandlerChain.setServiceNamePattern(srHandlerChain.getServiceNamePattern());
/* 144 */         uHandlerChain.setPortNamePattern(srHandlerChain.getPortNamePattern());
/* 145 */         uHandlerChain.setProtocolBindings(srHandlerChain.getProtocolBindings());
/* 146 */         List srHandlerChainHandlers = srHandlerChain.getHandler();
/* 147 */         Iterator it = srHandlerChainHandlers.iterator();
/* 148 */         while (it.hasNext())
/*     */         {
/* 150 */           ServiceReferenceHandlerMetaData srHandlerMetaData = (ServiceReferenceHandlerMetaData)it.next();
/* 151 */           UnifiedHandlerMetaData uHandlerMetaData = getUnifiedHandlerMetaData(srHandlerMetaData);
/* 152 */           uHandlerChain.addHandler(uHandlerMetaData);
/*     */         }
/* 154 */         uHandlerChains.addHandlerChain(uHandlerChain);
/*     */       }
/* 156 */       result.setHandlerChains(uHandlerChains);
/*     */     }
/*     */
/* 159 */     if ((sref instanceof JBossServiceReferenceMetaData))
/*     */     {
/* 161 */       JBossServiceReferenceMetaData jbRef = (JBossServiceReferenceMetaData)sref;
/* 162 */       result.setServiceImplClass(jbRef.getServiceClass());
/* 163 */       result.setConfigName(jbRef.getConfigName());
/* 164 */       result.setConfigFile(jbRef.getConfigFile());
/* 165 */       result.setWsdlOverride(jbRef.getWsdlOverride());
/* 166 */       result.setHandlerChain(jbRef.getHandlerChain());
/*     */     }
/* 168 */     return result;
/*     */   }
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData

      try
      {
         Reference ref = (Reference)obj;

         // Unmarshall the ServiceRefMetaData
         UnifiedServiceRefMetaData serviceRef = null;
         RefAddr metaRefAddr = ref.get(ServiceReferenceable.SERVICE_REF_META_DATA);
         ByteArrayInputStream bais = new ByteArrayInputStream((byte[])metaRefAddr.getContent());
         try
         {
            ObjectInputStream ois = new ObjectInputStream(bais);
            serviceRef = (UnifiedServiceRefMetaData)ois.readObject();
            ois.close();
         }
         catch (IOException ex)
         {
            NamingException ne = new NamingException("Cannot unmarshall service ref meta data");
            ne.setRootCause(ex);
            throw ne;
         }

         // Unmarshall the WSSecurityConfiguration
         WSSecurityConfiguration securityConfig = null;
         RefAddr wsseRefAddr = ref.get(ServiceReferenceable.SECURITY_CONFIG);
         if (wsseRefAddr != null)
         {
            bais = new ByteArrayInputStream((byte[])wsseRefAddr.getContent());
            try
            {
               ObjectInputStream ois = new ObjectInputStream(bais);
               securityConfig = (WSSecurityConfiguration)ois.readObject();
               ois.close();
            }
            catch (IOException e)
            {
               throw new NamingException("Cannot unmarshall security config, cause: " + e.toString());
            }
         }

         ServiceImpl jaxrpcService = null;
         URL wsdlLocation = serviceRef.getWsdlLocation();
         if (wsdlLocation != null)
         {
            if (log.isDebugEnabled())
               log.debug("Create jaxrpc service from wsdl");

            // Create the actual service object
            QName serviceName = serviceRef.getServiceQName();
            JavaWsdlMapping javaWsdlMapping = getJavaWsdlMapping(serviceRef);
            jaxrpcService = new ServiceImpl(serviceName, wsdlLocation, javaWsdlMapping, securityConfig, serviceRef);
         }
         else
         {
            if (log.isDebugEnabled())
               log.debug("Create jaxrpc service with no wsdl");
            jaxrpcService = new ServiceImpl(new QName(Constants.NS_JBOSSWS_URI, "AnonymousService"));
         }

         ServiceMetaData serviceMetaData = jaxrpcService.getServiceMetaData();

         // Set any service level properties
         if (serviceRef.getCallProperties().size() > 0)
         {
            Properties callProps = new Properties();
            serviceMetaData.setProperties(callProps);
            for (UnifiedCallPropertyMetaData prop : serviceRef.getCallProperties())
               callProps.setProperty(prop.getPropName(), prop.getPropValue());
         }

         // The web service client using a port-component-link, the contet is the URL to
         // the PortComponentLinkServlet that will return the actual endpoint address
         RefAddr pcLinkRef = ref.get(ServiceReferenceable.PORT_COMPONENT_LINK);
         if (pcLinkRef != null)
         {
            String pcLink = (String)pcLinkRef.getContent();
            log.debug("Resolving port-component-link: " + pcLink);

            // First try to obtain the endpoint address loacally
            String endpointAddress = null;
            try
            {
               SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
               EndpointRegistry epRegistry = spiProvider.getSPI(EndpointRegistryFactory.class).getEndpointRegistry();
               Endpoint endpoint = epRegistry.resolve( new PortComponentResolver(pcLink) );
               if (endpoint == null)
                  throw new WSException("Cannot resolve port-component-link: " + pcLink);

               ServerEndpointMetaData sepMetaData = endpoint.getAttachment(ServerEndpointMetaData.class);
               endpointAddress = sepMetaData.getEndpointAddress();
            }
            catch (Throwable ex)
            {
               // ignore, we are probably a remote client
            }

            // We may be remote in the esoteric case where an appclient uses the port-comonent-link feature
            if (endpointAddress == null)
            {
               String servletPath = (String)ref.get(ServiceReferenceable.PORT_COMPONENT_LINK_SERVLET).getContent();
               servletPath += "?pcLink=" + URLEncoder.encode(pcLink, "UTF-8");
               InputStream is = new URL(servletPath).openStream();
               BufferedReader br = new BufferedReader(new InputStreamReader(is));
               endpointAddress = br.readLine();
               is.close();
            }

            if (log.isDebugEnabled())
               log.debug("Resolved to: " + endpointAddress);
            if (serviceMetaData.getEndpoints().size() == 1)
            {
               EndpointMetaData epMetaData = serviceMetaData.getEndpoints().get(0);
               epMetaData.setEndpointAddress(endpointAddress);
            }
            else
            {
               log.warn("Cannot set endpoint address for port-component-link, unsuported number of endpoints");
            }
         }

         narrowPortSelection(serviceRef, serviceMetaData);

         /********************************************************
          * Setup the Proxy that implements the service-interface
          ********************************************************/

         // load the service interface class
         ClassLoader contextCL = Thread.currentThread().getContextClassLoader();
         Class siClass = contextCL.loadClass(serviceRef.getServiceInterface());
         if (Service.class.isAssignableFrom(siClass) == false)
            throw new JAXRPCException("The service interface does not implement javax.xml.rpc.Service: " + siClass.getName());

         // load all service endpoint interface classes
         for (UnifiedPortComponentRefMetaData pcr : serviceRef.getPortComponentRefs())
         {
            String seiName = pcr.getServiceEndpointInterface();
            if (seiName != null)
            {
               Class seiClass = contextCL.loadClass(seiName);
View Full Code Here

Examples of org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData

        final Module module = unit.getAttachment(org.jboss.as.server.deployment.Attachments.MODULE);
        for (final ComponentDescription componentDescription : moduleDescription.getComponentsByClassName(componentClassName)) {
            if (componentDescription instanceof SessionBeanComponentDescription) {
                isEJB = true;

                final UnifiedServiceRefMetaData serviceRefUMDM = getServiceRef(unit, componentDescription, bindingName);
                initServiceRef(unit, serviceRefUMDM, type, annotation);
                processWSFeatures(unit, serviceRefUMDM, injectionTarget, classInfo);

                // Create the binding from whence our injection comes.
                final InjectionSource serviceRefSource = new WSRefValueSource(serviceRefUMDM, module.getClassLoader());
                final BindingConfiguration bindingConfiguration = new BindingConfiguration(bindingName, serviceRefSource);
                componentDescription.getBindingConfigurations().add(bindingConfiguration);
                // our injection comes from the local lookup, no matter what.
                final ResourceInjectionConfiguration injectionConfiguration = injectionTarget != null ? new ResourceInjectionConfiguration(injectionTarget, new LookupInjectionSource(bindingName)) : null;
                if (injectionConfiguration != null) {
                    componentDescription.addResourceInjection(injectionConfiguration);
                }
            }
        }
        if (!isEJB) {
            final UnifiedServiceRefMetaData serviceRefUMDM = getServiceRef(unit, null, bindingName);
            initServiceRef(unit, serviceRefUMDM, type, annotation);
            processWSFeatures(unit, serviceRefUMDM, injectionTarget, classInfo);

            // TODO: class hierarchies? shared bindings?
            final EEModuleClassDescription classDescription = moduleDescription.addOrGetLocalClassDescription(classInfo.name().toString());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.