public interface PluginDataSourceFactory
DataSources
for plugin module resources
.DataSourceFactory.forPlugin(String)
Modifier and Type | Interface and Description |
---|---|
static class |
PluginDataSourceFactory.FilterByType |
static interface |
PluginDataSourceFactory.ResourceView
A view on the
ResourceDescriptor . |
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Maybe<DataSource> |
resourceFromModuleByName(String moduleKey,
String resourceName)
Extract a resource identified by name from a module and expose it as
DataSource . |
com.atlassian.fugue.Maybe<Iterable<DataSource>> |
resourcesFromModules(String moduleKey)
Extract all resources from a module and expose them as
DataSources . |
com.atlassian.fugue.Maybe<Iterable<DataSource>> |
resourcesFromModules(String moduleKey,
com.atlassian.plugin.util.collect.Predicate<PluginDataSourceFactory.ResourceView> filter)
Extract resources from a module and expose them as
DataSources . |
com.atlassian.fugue.Maybe<Iterable<DataSource>> resourcesFromModules(String moduleKey, @Nullable com.atlassian.plugin.util.collect.Predicate<PluginDataSourceFactory.ResourceView> filter)
DataSources
.moduleKey
- the key used to locate the modulefilter
- an optional filter for resourcesDataSources
if the module could be located, the container is empty if the filter
did not match anythingcom.atlassian.fugue.Maybe<Iterable<DataSource>> resourcesFromModules(String moduleKey)
DataSources
.resourcesFromModules(String, Predicate)
com.atlassian.fugue.Maybe<DataSource> resourceFromModuleByName(String moduleKey, String resourceName)
DataSource
.moduleKey
- the key used to locate the moduleresourceName
- the name of the resourceDataSource
if the module could be located and contained a resource with the given nameCopyright © 2003–2016 Atlassian. All rights reserved.