|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PluginDataSourceFactory
Produces DataSources for plugin module resources.
DataSourceFactory.forPlugin(String)| Nested Class Summary | |
|---|---|
static class |
PluginDataSourceFactory.FilterByType
|
static interface |
PluginDataSourceFactory.ResourceView
A view on the ResourceDescriptor. |
| Method Summary | |
|---|---|
com.atlassian.fugue.Maybe<javax.activation.DataSource> |
resourceFromModuleByName(java.lang.String moduleKey,
java.lang.String resourceName)
Extract a resource identified by name from a module and expose it as DataSource. |
com.atlassian.fugue.Maybe<java.lang.Iterable<javax.activation.DataSource>> |
resourcesFromModules(java.lang.String moduleKey)
Extract all resources from a module and expose them as DataSources. |
com.atlassian.fugue.Maybe<java.lang.Iterable<javax.activation.DataSource>> |
resourcesFromModules(java.lang.String moduleKey,
com.atlassian.plugin.util.collect.Predicate<PluginDataSourceFactory.ResourceView> filter)
Extract resources from a module and expose them as DataSources. |
| Method Detail |
|---|
com.atlassian.fugue.Maybe<java.lang.Iterable<javax.activation.DataSource>> resourcesFromModules(java.lang.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 resources
DataSources if the module could be located, the container is empty if the filter
did not match anythingcom.atlassian.fugue.Maybe<java.lang.Iterable<javax.activation.DataSource>> resourcesFromModules(java.lang.String moduleKey)
DataSources.
resourcesFromModules(String, Predicate)
com.atlassian.fugue.Maybe<javax.activation.DataSource> resourceFromModuleByName(java.lang.String moduleKey,
java.lang.String resourceName)
DataSource.
moduleKey - the key used to locate the moduleresourceName - the name of the resource
DataSource if the module could be located and contained a resource with the given name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||