Package org.jboss.wsf.spi.management

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


            dam.setDeploymentAspects(aspects);
            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
View Full Code Here


                SecurityActions.setContextClassLoader(ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader());
                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
View Full Code Here

    if (endpointAddress != null) {
      return endpointAddress;
    }
   
    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);
View Full Code Here

     * @param contextName Service's Deployment Context name.
     * @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);
View Full Code Here

     * @param endpointName The deployment name.
     * @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);
View Full Code Here

            dam.setDeploymentAspects(aspects);
            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
View Full Code Here

                SecurityActions.setContextClassLoader(ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader());
                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
View Full Code Here

   protected void initServiceEndpointManager()
   {
//      ServiceEndpointManagerFactory factory = ServiceEndpointManagerFactory.getInstance();
//      epManager = factory.getServiceEndpointManager();
     EndpointRegistryFactory factory = new EndpointRegistryFactoryImpl();
     epManager = factory.getEndpointRegistry();
   }
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.management.EndpointRegistryFactory

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.