/** * * This implementation checks to see if the resource type is one that * is being persisted, and if so, creates a file for the instance. * */ public void resourceAdded(EndpointReference epr, Resource resource) throws SoapFault { String contextPath = resource.getContextPath(); if (getResourceManager().isUsingPersistence(contextPath)) createResourceFile(epr, resource); }
/** * * This implementation checks to see if the resource type is one that * is being persisted, and if so, tries to delete the resource's file. * */ public void resourceRemoved(EndpointReference epr) throws SoapFault { String contextPath = getContextPath(epr); if (getResourceManager().isUsingPersistence(contextPath)) destroyResourceFile(epr); } }
throws SoapFault ResourceManager manager = getResourceManager();