public class WEFPluginRegistry extends Object
| Constructor and Description |
|---|
WEFPluginRegistry()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPlugin(WEFPlugin plugin)
Adds a plugin.
|
protected void |
buildResourceMap(WEFResource resource,
Map<String,WEFResource> resources)
Recursively builds a Map of unique resources for the given resource object.
|
List<WEFResource> |
getAllResources(WEFResource resource)
Returns a list of unique resources for the given resource
and all of it's dependencies.
|
WEFApplication |
getApplication(String name)
Returns the application plugin with the given name.
|
List<WEFApplication> |
getApplications()
Returns all the registered application plugins.
|
WEFPlugin |
getPlugin(String name)
Returns the plugin with the given name.
|
List<WEFResource> |
getPluginResources()
Returns a list of unique resources for all the registered plugins
and their dependencies.
|
List<WEFPlugin> |
getPlugins()
Returns all the regsistered plugins.
|
public static final String BEAN_NAME
public void addPlugin(WEFPlugin plugin)
plugin - The plugin to addpublic List<WEFPlugin> getPlugins()
public WEFPlugin getPlugin(String name)
name - Name of a plugin to retrievepublic List<WEFApplication> getApplications()
public WEFApplication getApplication(String name)
name - Name of an application plugin to retrievepublic List<WEFResource> getPluginResources()
public List<WEFResource> getAllResources(WEFResource resource)
resource - A WEFResource objectprotected void buildResourceMap(WEFResource resource, Map<String,WEFResource> resources)
resource - The WEFResource to get all resources forresources - Map of unique resources foundCopyright © 2005–2016 Alfresco Software. All rights reserved.