com.atlassian.confluence.core
Class DefaultPluginDataSourceFactory
java.lang.Object
com.atlassian.confluence.core.DefaultPluginDataSourceFactory
- All Implemented Interfaces:
- PluginDataSourceFactory
public class DefaultPluginDataSourceFactory
- extends Object
- implements PluginDataSourceFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPluginDataSourceFactory
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)
resourcesFromModules
public com.atlassian.fugue.Maybe<Iterable<DataSource>> resourcesFromModules(String moduleKey)
- Description copied from interface:
PluginDataSourceFactory
- Extract all resources from a module and expose them as
DataSources.
- Specified by:
resourcesFromModules in interface PluginDataSourceFactory
- See Also:
PluginDataSourceFactory.resourcesFromModules(String, Predicate)
resourcesFromModules
public com.atlassian.fugue.Maybe<Iterable<DataSource>> resourcesFromModules(String moduleKey,
@Nullable
com.atlassian.plugin.util.collect.Predicate<PluginDataSourceFactory.ResourceView> filter)
- Description copied from interface:
PluginDataSourceFactory
- Extract resources from a module and expose them as
DataSources.
- Specified by:
resourcesFromModules in interface PluginDataSourceFactory
- Parameters:
moduleKey - the key used to locate the modulefilter - an optional filter for resources
- Returns:
- maybe the
DataSources if the module could be located, the container is empty if the filter
did not match anything
resourceFromModuleByName
public com.atlassian.fugue.Maybe<DataSource> resourceFromModuleByName(String moduleKey,
String resourceName)
- Description copied from interface:
PluginDataSourceFactory
- Extract a resource identified by name from a module and expose it as
DataSource.
- Specified by:
resourceFromModuleByName in interface PluginDataSourceFactory
- Parameters:
moduleKey - the key used to locate the moduleresourceName - the name of the resource
- Returns:
- maybe the
DataSource if the module could be located and contained a resource with the given name
Copyright © 2003–2015 Atlassian. All rights reserved.