Package org.jboss.gravia.repository

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


    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

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.