org.nuxeo.ecm.webengine.app.impl
Class ResourceContributions
java.lang.Object
org.nuxeo.ecm.webengine.app.impl.ResourceContributions
public class ResourceContributions
- extends Object
Describe the external contributions on a parent resource
Class names are used to store references to involved resources instead of class objects since
WebEngine is using a specific class loader (not the one used by the framework) to load resources - and doing so we avoid class cast exceptions.
- Author:
- Bogdan Stefanescu
ResourceContributions
public ResourceContributions(Class<?> target)
getTarget
public Class<?> getTarget()
getContribution
public ResourceContribution getContribution(String key)
getContributions
public ResourceContribution[] getContributions()
getContributions
public List<ResourceContribution> getContributions(ExtensibleResource target,
String category)
getContributions
public List<ResourceContribution> getContributions(Class<? extends ExtensibleResource> target,
String category)
addContribution
public void addContribution(ResourceContribution c)
throws Exception
- Throws:
Exception
removeContribution
public void removeContribution(String key)
addContribution
public void addContribution(Class<? extends ResourceContribution> contrib)
throws Exception
- Throws:
Exception
removeContribution
public void removeContribution(Class<?> contrib)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.