Methods Summary |
---|
public void | addWebService(WebService descriptor)
descriptor.setWebServicesDescriptor(this);
webServices.add(descriptor);
super.changed();
|
public BundleDescriptor | getBundleDescriptor()
return bundleDesc;
|
public java.lang.ClassLoader | getClassLoader() return null;
|
public java.lang.String | getDefaultSpecVersion()
return WebServicesDescriptorNode.SPEC_VERSION;
|
public WebServiceEndpoint | getEndpointByName(java.lang.String endpointName)Endpoint has a unique name within all the endpoints in the module.
for(Iterator iter = getEndpoints().iterator(); iter.hasNext();) {
WebServiceEndpoint next = (WebServiceEndpoint) iter.next();
if( next.getEndpointName().equals(endpointName) ) {
return next;
}
}
return null;
|
public java.util.Collection | getEndpoints()
Collection allEndpoints = new HashSet();
for(WebService webService : webServices) {
allEndpoints.addAll( webService.getEndpoints() );
}
return allEndpoints;
|
public java.util.Collection | getEndpointsImplementedBy(EjbDescriptor ejb)
Collection<WebServiceEndpoint> endpoints = new HashSet();
if( ejb instanceof EjbSessionDescriptor ) {
for(WebServiceEndpoint next : getEndpoints()) {
if( next.implementedByEjbComponent(ejb) ) {
endpoints.add(next);
}
}
}
return endpoints;
|
public java.util.Collection | getEndpointsImplementedBy(WebComponentDescriptor desc)
Collection<WebServiceEndpoint> endpoints = new HashSet();
for(WebServiceEndpoint next : getEndpoints()) {
if( next.implementedByWebComponent(desc) ) {
endpoints.add(next);
}
}
return endpoints;
|
public java.lang.String | getModuleID() return "";
|
public javax.enterprise.deploy.shared.ModuleType | getModuleType()
if (bundleDesc!=null) {
return bundleDesc.getModuleType();
}
return null;
|
public WebService | getWebServiceByName(java.lang.String webServiceName)
for (WebService webService : webServices) {
if( webService.getName().equals(webServiceName) ) {
return webService;
}
}
return null;
|
public java.util.Collection | getWebServices()
return new HashSet<WebService>(webServices);
|
public boolean | hasEndpointsImplementedBy(EjbDescriptor ejb)
return !(getEndpointsImplementedBy(ejb).isEmpty());
|
public boolean | hasEndpointsImplementedBy(WebComponentDescriptor desc)
return !(getEndpointsImplementedBy(desc).isEmpty());
|
public boolean | hasWebServices()
return !(webServices.isEmpty());
|
public boolean | isApplication()return false;
|
public void | print(java.lang.StringBuffer toStringBuffer)Returns a formatted String of the attributes of this object.
super.print(toStringBuffer);
if (hasWebServices()) {
for (Iterator itr = getWebServices().iterator();itr.hasNext();) {
WebService aWebService = (WebService) itr.next();
toStringBuffer.append("\n Web Service : ");
aWebService.print(toStringBuffer);
}
}
|
public void | removeWebService(WebService descriptor)
descriptor.setWebServicesDescriptor(null);
webServices.remove(descriptor);
super.changed();
|
public void | setBundleDescriptor(BundleDescriptor module)
bundleDesc = module;
|