public class DefaultPluginDataSourceFactory extends Object implements PluginDataSourceFactory
PluginDataSourceFactory.FilterByType, PluginDataSourceFactory.ResourceView| Constructor and Description | 
|---|
| DefaultPluginDataSourceFactory(FileTypeMap fileTypeMap,
                              com.google.common.base.Function<com.atlassian.fugue.Pair<com.atlassian.plugin.Plugin,PluginDataSourceFactory.ResourceView>,InputStream> resourceStreamFactory,
                              com.atlassian.plugin.Plugin plugin) | 
| 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. | 
public DefaultPluginDataSourceFactory(FileTypeMap fileTypeMap, com.google.common.base.Function<com.atlassian.fugue.Pair<com.atlassian.plugin.Plugin,PluginDataSourceFactory.ResourceView>,InputStream> resourceStreamFactory, com.atlassian.plugin.Plugin plugin)
public com.atlassian.fugue.Maybe<Iterable<DataSource>> resourcesFromModules(String moduleKey)
PluginDataSourceFactoryDataSources.resourcesFromModules in interface PluginDataSourceFactoryPluginDataSourceFactory.resourcesFromModules(String, Predicate)public com.atlassian.fugue.Maybe<Iterable<DataSource>> resourcesFromModules(String moduleKey, @Nullable com.atlassian.plugin.util.collect.Predicate<PluginDataSourceFactory.ResourceView> filter)
PluginDataSourceFactoryDataSources.resourcesFromModules in interface PluginDataSourceFactorymoduleKey - 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 anythingpublic com.atlassian.fugue.Maybe<DataSource> resourceFromModuleByName(String moduleKey, String resourceName)
PluginDataSourceFactoryDataSource.resourceFromModuleByName in interface PluginDataSourceFactorymoduleKey - 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–2017 Atlassian. All rights reserved.