Examples of EndpointRegistry


Examples of org.jboss.wsf.spi.management.EndpointRegistry

   }

   public void destroy(Deployment dep)
   {
      SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
      EndpointRegistry registry = spiProvider.getSPI(EndpointRegistryFactory.class).getEndpointRegistry();
           
      for (Endpoint ep : dep.getService().getEndpoints())
      {
         registry.unregister(ep);
      }
   }
View Full Code Here

Examples of org.jboss.wsf.spi.management.EndpointRegistry

    private static final DotName WEB_SERVICE_REF_ANNOTATION_NAME = DotName.createSimple(WebServiceRef.class.getName());
    private static final DotName WEB_SERVICE_REFS_ANNOTATION_NAME = DotName.createSimple(WebServiceRefs.class.getName());

    /** {@inheritDoc} **/
    protected void processComponentConfig(final DeploymentUnit deploymentUnit, final DeploymentPhaseContext phaseContext, final CompositeIndex index, final AbstractComponentDescription description) {
        EndpointRegistry registry = (EndpointRegistry) deploymentUnit.getServiceRegistry().getService(WSServices.REGISTRY_SERVICE).getValue();
        for (ObjectName name: registry.getEndpoints()) {
            Logger.getLogger(this.getClass()).fatal(name.toString());
        }
        final ClassInfo classInfo = index.getClassByName(DotName.createSimple(description.getComponentClassName()));
        if(classInfo == null) {
            return; // We can't continue without the annotation index info.
View Full Code Here

Examples of org.jboss.wsf.spi.management.EndpointRegistry

    }
   
    SPIProvider spiProv = SPIProviderResolver.getInstance().getProvider();
    EndpointRegistryFactory factory = spiProv
        .getSPI(EndpointRegistryFactory.class);
    EndpointRegistry registry = factory.getEndpointRegistry();
    Set<ObjectName> objectNames = registry.getEndpoints();

    for (ObjectName objectName : objectNames) {
      String endpoint = objectName
          .getKeyProperty(Endpoint.SEPID_PROPERTY_ENDPOINT);

      if (endpoint != null && endpoint.equals(endpointName)) {
        Endpoint ep = registry.getEndpoint(objectName);
        endpointAddress = ep.getAddress();
        return endpointAddress;
      }
    }
View Full Code Here

Examples of org.jboss.wsf.spi.management.EndpointRegistry

     * @return The service endpoint, or null if the endpoint is not found.
     */
    public static Endpoint getServiceEndpoint(String endpointName, String contextName) {
        SPIProvider spiProv = SPIProviderResolver.getInstance().getProvider();
        EndpointRegistryFactory factory =  spiProv.getSPI(EndpointRegistryFactory.class);
        EndpointRegistry registry = factory.getEndpointRegistry();
        Set<ObjectName> objectNames = registry.getEndpoints();

        for (ObjectName objectName : objectNames) {
            String context = objectName.getKeyProperty(Endpoint.SEPID_PROPERTY_CONTEXT);
            String endpoint = objectName.getKeyProperty(Endpoint.SEPID_PROPERTY_ENDPOINT);

            if ((contextName != null
                && context != null && context.equals(contextName)
                && endpoint != null && endpoint.equals(endpointName))
                || (contextName == null
                    && endpoint != null && endpoint.equals(endpointName))) {
                return registry.getEndpoint(objectName);
            }
        }
        return null;
    }
View Full Code Here

Examples of org.jboss.wsf.spi.management.EndpointRegistry

     * @return The service endpoint, or null if the endpoint is not found.
     */
    public static Endpoint getDeploymentEndpoint(String endpointName) {
        SPIProvider spiProv = SPIProviderResolver.getInstance().getProvider();
        EndpointRegistryFactory factory =  spiProv.getSPI(EndpointRegistryFactory.class);
        EndpointRegistry registry = factory.getEndpointRegistry();
        Set<ObjectName> objectNames = registry.getEndpoints();

        for (ObjectName objectName : objectNames) {
            if (objectName.toString().equals(endpointName)) {
                return registry.getEndpoint(objectName);
            }
        }
        return null;
    }
View Full Code Here

Examples of org.jboss.wsf.spi.management.EndpointRegistry

            dam.deploy(dep);
            // TODO: [JBWS-3426] fix this. START workaround
            if (target == null) {
                SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
                EndpointRegistryFactory factory = spiProvider.getSPI(EndpointRegistryFactory.class);
                EndpointRegistry registry = factory.getEndpointRegistry();
                for (final Endpoint endpoint : dep.getService().getEndpoints()) {
                    registry.register(endpoint);
                }
            }
            // END workaround
        } finally {
            if (dep != null) {
View Full Code Here

Examples of org.jboss.wsf.spi.management.EndpointRegistry

                final ServiceTarget target = deployment.getAttachment(ServiceTarget.class);
                // TODO: [JBWS-3426] fix this. START workaround
                if (target == null) {
                    SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
                    EndpointRegistryFactory factory = spiProvider.getSPI(EndpointRegistryFactory.class);
                    EndpointRegistry registry = factory.getEndpointRegistry();
                    for (final Endpoint endpoint : deployment.getService().getEndpoints()) {
                        registry.unregister(endpoint);
                    }
                }
                // END workaround
                DeploymentAspectManager dam = new DeploymentAspectManagerImpl();
                dam.setDeploymentAspects(aspects);
View Full Code Here

Examples of org.jboss.wsf.spi.management.EndpointRegistry

            // 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();
View Full Code Here

Examples of org.jboss.wsf.spi.management.EndpointRegistry

            // 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();
View Full Code Here

Examples of org.jboss.wsf.spi.management.EndpointRegistry

   }

   protected void processSOAPMessage(String fromName, InputStream inputStream, OutputStream outStream) throws SOAPException, IOException, RemoteException
   {
      SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
      EndpointRegistry epRegistry = spiProvider.getSPI(EndpointRegistryFactory.class).getEndpointRegistry();

      Endpoint endpoint = getEndpointForDestination(epRegistry, fromName);

      if (endpoint == null)
         throw new IllegalStateException("Cannot find endpoint for: " + fromName);
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.