public void removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef) { this.getServiceReferenceDescriptors().remove(serviceRef); }
/** * @return true if this bundle descriptor defines web service clients */ public boolean hasWebServiceClients() { return !(getServiceReferenceDescriptors().isEmpty()); }
/** * @return true if this bundle descriptor defines web service clients */ public boolean hasWebServiceClients() { return !(getServiceReferenceDescriptors().isEmpty()); }
public void removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef) { this.getServiceReferenceDescriptors().remove(serviceRef); }
public void addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef) { serviceRef.setBundleDescriptor(this); this.getServiceReferenceDescriptors().add(serviceRef); }
public void addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef) { serviceRef.setBundleDescriptor(this); this.getServiceReferenceDescriptors().add(serviceRef); }
public HandlerChainContainer[] getHandlerChainContainers(boolean serviceSideHandlerChain, Class declaringClass) { if(serviceSideHandlerChain) { // We should not come here at all - anyway return null return null; } else { List<ServiceReferenceDescriptor> result = new ArrayList<ServiceReferenceDescriptor>(); result.addAll(getDescriptor().getServiceReferenceDescriptors()); return(result.toArray(new HandlerChainContainer[result.size()])); } } }
public HandlerChainContainer[] getHandlerChainContainers(boolean serviceSideHandlerChain, Class declaringClass) { if(serviceSideHandlerChain) { // We should not come here at all - anyway return null return null; } else { List<ServiceReferenceDescriptor> result = new ArrayList<ServiceReferenceDescriptor>(); result.addAll(getDescriptor().getServiceReferenceDescriptors()); return(result.toArray(new HandlerChainContainer[0])); } } }
/** * Looks up an service reference with the given name. * Throws an IllegalArgumentException if it is not found. */ public ServiceReferenceDescriptor getServiceReferenceByName(String name) { for (Iterator itr = this.getServiceReferenceDescriptors().iterator(); itr.hasNext();) { ServiceReferenceDescriptor srd = (ServiceReferenceDescriptor) itr.next(); if (srd.getName().equals(name)) { return srd; } } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionappclienthasnoservicerefbyname", "This application client [{0}] has no service reference by the name of [{1}]", new Object[] {getName(), name})); }
/** * Looks up an service reference with the given name. * Throws an IllegalArgumentException if it is not found. */ public ServiceReferenceDescriptor getServiceReferenceByName(String name) { for (Iterator itr = this.getServiceReferenceDescriptors().iterator(); itr.hasNext();) { ServiceReferenceDescriptor srd = (ServiceReferenceDescriptor) itr.next(); if (srd.getName().equals(name)) { return srd; } } throw new IllegalArgumentException(localStrings.getLocalString( "enterprise.deployment.exceptionappclienthasnoservicerefbyname", "This application client [{0}] has no service reference by the name of [{1}]", new Object[] {getName(), name})); }
Set serviceRefs = getServiceReferenceDescriptors(); for (Iterator itr = serviceRefs.iterator();itr.hasNext();) { aVisitor.accept((ServiceReferenceDescriptor) itr.next());
writeServiceReferenceDescriptors(appclientNode, appclientDesc.getServiceReferenceDescriptors().iterator());
writeServiceReferenceDescriptors(appclientNode, appclientDesc.getServiceReferenceDescriptors().iterator());