Package org.jboss.internal.soa.esb.publish

Examples of org.jboss.internal.soa.esb.publish.ContractProvider


                        }
                        Publish publishAnnotation = (Publish)actionClass.getAnnotation(Publish.class);
                        if (publishAnnotation != null) {
                          Class<?> publisherClass = publishAnnotation.value();
                          if (ContractProvider.class.isAssignableFrom(publisherClass)) {
                            ContractProvider provider;
                            try {
                              provider = (ContractProvider)publisherClass.newInstance();
                              Properties properties = toProperties(action.getPropertyList());
                              provider.setContractProperties(properties);
                            } catch (Exception e) {
                              throw new RuntimeException("Failed to create ContractProvider", e);
                            }
                            ServiceContract serviceContract = new ServiceContract(
                              new org.jboss.soa.esb.Service(service.getCategory(), service.getName()),
View Full Code Here


                        }
                        Publish publishAnnotation = (Publish)actionClass.getAnnotation(Publish.class);
                        if (publishAnnotation != null) {
                          Class<?> publisherClass = publishAnnotation.value();
                          if (ContractProvider.class.isAssignableFrom(publisherClass)) {
                            ContractProvider provider;
                            try {
                              provider = (ContractProvider)publisherClass.newInstance();
                              Properties properties = toProperties(action.getPropertyList());
                              provider.setContractProperties(properties);
                            } catch (Exception e) {
                              throw new RuntimeException("Failed to create ContractProvider", e);
                            }
                            ServiceContract serviceContract = new ServiceContract(
                              new org.jboss.soa.esb.Service(service.getCategory(), service.getName()),
View Full Code Here

                        }
                        Publish publishAnnotation = (Publish)actionClass.getAnnotation(Publish.class);
                        if (publishAnnotation != null) {
                          Class<?> publisherClass = publishAnnotation.value();
                          if (ContractProvider.class.isAssignableFrom(publisherClass)) {
                            ContractProvider provider;
                            try {
                              provider = (ContractProvider)publisherClass.newInstance();
                              Properties properties = toProperties(action.getPropertyList());
                              provider.setContractProperties(properties);
                            } catch (Exception e) {
                              throw new RuntimeException("Failed to create ContractProvider", e);
                            }
                            ServiceContract serviceContract = new ServiceContract(
                              new org.jboss.soa.esb.Service(service.getCategory(), service.getName()),
View Full Code Here

                        }
                        Publish publishAnnotation = (Publish)actionClass.getAnnotation(Publish.class);
                        if (publishAnnotation != null) {
                          Class<?> publisherClass = publishAnnotation.value();
                          if (ContractProvider.class.isAssignableFrom(publisherClass)) {
                            ContractProvider provider;
                            try {
                              provider = (ContractProvider)publisherClass.newInstance();
                              Properties properties = toProperties(action.getPropertyList());
                              provider.setContractProperties(properties);
                            } catch (Exception e) {
                              throw new RuntimeException("Failed to create ContractProvider", e);
                            }
                            ServiceContract serviceContract = new ServiceContract(
                              new org.jboss.soa.esb.Service(service.getCategory(), service.getName()),
View Full Code Here

   
    private ContractInfo getContract() throws ServletException, IOException {
      if (contractInfo == null) {
        synchronized (this) {
          if (contractInfo == null) {
                ContractProvider contractProvider;
                try {
                  contractProvider = ContractProviderLifecycleResource.getContractProvider(service.getCategory(), service.getName());
                } catch (LifecycleResourceException lre) {
                  throw new ServletException(lre);
                }
                if (contractProvider != null) {
                  contractInfo = contractProvider.provideContract(service, endpointAddress);
                }
          }
        }
      }
      return contractInfo;
View Full Code Here

    {
      final String category = parent.getAttribute(ListenerTagNames.SERVICE_CATEGORY_NAME_TAG);
      final String name = parent.getAttribute(ListenerTagNames.SERVICE_NAME_TAG);
      if ((category != null) && (name != null))
      {
        final ContractProvider provider ;
        try
        {
          provider = ContractProviderLifecycleResource.getContractProvider(category, name);
        }
        catch (final LifecycleResourceException lre)
View Full Code Here

TOP

Related Classes of org.jboss.internal.soa.esb.publish.ContractProvider

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.