Examples of removeResource()


Examples of org.apache.catalina.deploy.NamingResources.removeResource()

        ContextResource resource = nresources.findResource(resourceName);
        if (resource == null) {
            throw new IllegalArgumentException
                ("Invalid resource name '" + resourceName + "'");
        }
        nresources.removeResource(resourceName);
    }


    /**
     * Remove any resource link with the specified name.
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResources.removeResource()

        ContextResource resource = nresources.findResource(resourceName);
        if (resource == null) {
            throw new IllegalArgumentException
                ("Invalid resource name '" + resourceName + "'");
        }
        nresources.removeResource(resourceName);
        nresources.removeResourceParams(resourceName);
   
    }
   
   
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResources.removeResource()

        }
       
        // cannot use side-efects.  It's removed and added back each time
        // there is a modification in a resource.
        NamingResources nr = cr.getNamingResources();
        nr.removeResource(cr.getName());
        nr.addResource(cr);
    }
   
}
View Full Code Here

Examples of org.apache.catalina.deploy.NamingResourcesImpl.removeResource()

        ContextResource resource = nresources.findResource(resourceName);
        if (resource == null) {
            throw new IllegalArgumentException
                ("Invalid resource name '" + resourceName + "'");
        }
        nresources.removeResource(resourceName);

    }


    /**
 
View Full Code Here

Examples of org.apache.tomcat.util.descriptor.web.NamingResources.removeResource()

        }

        // cannot use side-effects.  It's removed and added back each time
        // there is a modification in a resource.
        NamingResources nr = cr.getNamingResources();
        nr.removeResource(cr.getName());
        nr.addResource(cr);
    }
}
View Full Code Here

Examples of org.corrib.s3b.sscf.manage.BookmarksHelper.removeResource()

    catch (Exception e)
    {
      //if the inserting is failed, removed just created resource
      XfoafSscfResource xfsr = XfoafSscfResource.getXfoafSscfResource(uri,innerModel);
      if(xfsr!=null)
        bh.removeResource(xfsr, person);
    }
   
    return uri;
  }
 
View Full Code Here

Examples of org.jboss.gravia.repository.Repository.removeResource()

    public static void removeRepositoryContent(Set<ResourceIdentity> identities) throws IOException {
        if (identities != null) {
            Repository repository = ServiceLocator.getRequiredService(Repository.class);
            for (ResourceIdentity resid : identities) {
                repository.removeResource(resid);
            }
        }
    }

    public static void deleteDirectory(String directory) throws IOException {
View Full Code Here

Examples of org.jboss.gravia.repository.RepositoryMBean.removeResource()

    protected void removeRepositoryContent(ManagedContext context, Set<ResourceIdentity> identities) throws IOException {
        IllegalArgumentAssertion.assertNotNull(context, "context");
        if (identities != null) {
            RepositoryMBean repository = MBeanProxy.get(context.getMBeanServer(), RepositoryMBean.OBJECT_NAME, RepositoryMBean.class);
            for (ResourceIdentity resid : identities) {
                repository.removeResource(resid.getCanonicalForm());
            }
        }
    }
}
View Full Code Here

Examples of org.jboss.gravia.repository.RepositoryMBean.removeResource()

    protected void removeRepositoryContent(Context context, Set<ResourceIdentity> identities) throws IOException {
        IllegalArgumentAssertion.assertNotNull(context, "context");
        if (identities != null) {
            RepositoryMBean repository = MBeanProxy.get(context.getMBeanServer(), RepositoryMBean.OBJECT_NAME, RepositoryMBean.class);
            for (ResourceIdentity resid : identities) {
                repository.removeResource(resid.getCanonicalForm());
            }
        }
    }
}
View Full Code Here

Examples of org.jboss.profileservice.spi.repository.MutableRepository.removeResource()

/*     */   }
/*     */
/*     */   protected VFSDeployment removeDeployment(String name, URI uri) throws Exception
/*     */   {
/* 503 */     MutableRepository mrepo = getRepository(uri);
/* 504 */     Resource res = mrepo.removeResource(name);
/* 505 */     VFSDeploymentResource vfsres = (VFSDeploymentResource)res;
/* 506 */     VFSDeployment deployment = (VFSDeployment)vfsres.getProperties().get("deployment");
/* 507 */     return deployment;
/*     */   }
/*     */ }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.