#set( $package = $generated.packageName ) #set( $capitalServiceName = $generated.ServiceName ) #set( $lowerCaseServiceName = $generated.EndpointServiceName ) #set( $namespaceVersionHolder = $generated.NamespaceVersionHolder) #set( $endpointServiceName = $generated.ServiceQName) #set( $portName = $generated.PortName) #set( $portTypeName = $generated.PortTypeQName) #set( $resourcekey = $generated.Resourcekey) package $package; import org.apache.ws.resource.Resource; import org.apache.ws.resource.ResourceContext; import org.apache.ws.resource.ResourceContextException; import org.apache.ws.resource.ResourceException; import org.apache.ws.resource.ResourceUnknownException; import org.apache.ws.resource.NamespaceVersionHolder; import org.apache.ws.resource.impl.AbstractResourceHome; import org.apache.ws.addressing.EndpointReference; import javax.xml.namespace.QName; import java.io.Serializable; /** * The home for $capitalServiceName resources. *
* NOTE: This file is generated, but is meant to be modified. * It will NOT be overwritten by subsequent runs of Wsdl2Java. */ public class ${capitalServiceName}Home extends Abstract${capitalServiceName}Home implements Serializable { /* The service endpoint name as registered with the SOAP Platform. This is useful for building EPR's. */ private static final QName SERVICE_NAME = QName.valueOf("${endpointServiceName}"); /* The management PortType associated with this resource. This is useful for building EPR's. */ private static final QName PORT_TYPE = QName.valueOf("${portTypeName}"); /* The WSDL Port name associated with the resource. This is useful for building EPR's. */ private static final String PORT_NAME = "${portName}"; /* The name of the resource key for this resource. */ private static final QName RESOURCE_KEY_NAME = QName.valueOf("{${resourcekey.NamespaceURI}}${resourcekey.LocalPart}"); #if($namespaceVersionHolder) /* * A NamespaceVerionHolder which maintains the namespace URI of specification XSDs. */ $namespaceVersionHolder #end /** * Create and add any resource instances. * * @throws Exception on error */ public void init() throws Exception { super.init(); // TODO: Create and add any known resource instances here. // If this is home for a singleton service (i.e. a service that exposes exactly one resource), // use null as the resource identifier when creating the instance. //String instance1Id = "00000001"; //${capitalServiceName}Resource instance1 = (${capitalServiceName}Resource) createInstance( instance1Id ); //add( instance1 ); } public QName getServiceName() { return SERVICE_NAME; } public QName getPortType() { return PORT_TYPE; } public String getServicePortName() { return PORT_NAME; } public QName getResourceKeyNameQName() { return RESOURCE_KEY_NAME; } public NamespaceVersionHolder getNamespaceSet() { return SPEC_NAMESPACE_SET; } }