#set( $package = $generated.packageName ) #set( $capitalServiceName = $generated.ServiceName ) package $package; import org.apache.ws.resource.impl.AbstractResourceHome; import org.apache.commons.collections.map.ReferenceMap; import java.util.Map; /** * The class acts as an extension of the AbstractResourceHome which * maintains a reference to the STATIC map needed for accessing * resources via JNDI. This ensures the resources will be accessible * when serialized upon lookup from certain JNDI providers. *
* ***** WARNING ***** * This class is generated by Wsdl2Java and is NOT meant to be modified. * It will be overwritten by subsequent runs of Wsdl2Java. */ abstract class Abstract${capitalServiceName}Home extends AbstractResourceHome { /** * Map containing all ${capitalServiceName}Resource instances - this map must be static for * compatibility with certain JNDI providers. */ private static Map s_resources; /** * Returns a map of all ${capitalServiceName}Resource instances. Called by the {@link AbstractResourceHome} * superclass. */ protected synchronized final Map getResourceMap() { if ( s_resources == null ) { s_resources = AbstractResourceHome.createResourceMap( m_resourceIsPersistent ); } return s_resources; } }