Interface ResourceHoldingPlugin
- All Superinterfaces:
Plugin
- All Known Implementing Classes:
OsgiPlugin
Represents plugin able to hold/provide resources
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.rarogsoftware.rarog.platform.api.plugins.Plugin
Plugin.PluginState -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.springframework.core.io.Resource>findResources(String path) Retrieve all resources from plugin that match provided path.org.springframework.core.io.ResourcegetResource(String path) Retrieve single resource from plugin.Methods inherited from interface eu.rarogsoftware.rarog.platform.api.plugins.Plugin
addPluginStateListener, canBeEnabled, getKey, getManifest, getState, isActive, isEnabled, isInUse, removePluginStateListener
-
Method Details
-
getResource
Retrieve single resource from plugin. Method do not support wildcard characters.- Parameters:
path- path to resource- Returns:
Resourceor null if resource is not accessible or not found.
-
findResources
Retrieve all resources from plugin that match provided path. Method do support ant wildcard characters like '**'.- Parameters:
path- path to resources- Returns:
- collection of
Resourceor null if resources are not accessible or path is not correct. - See Also:
-
AntPathMatcher
-