Package systems.dmx.core.service
Interface Plugin
-
- All Known Implementing Classes:
PluginImpl
public interface Plugin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
getStaticResource(String name)
Accesses a static resource of the plugin.boolean
hasStaticResource(String name)
Checks if this plugin bundle contains a static resource with the given name.
-
-
-
Method Detail
-
getStaticResource
InputStream getStaticResource(String name)
Accesses a static resource of the plugin. A static resource is some data (images, audio, text, etc) that is contained in the plugin bundle (that is the jar file).- Parameters:
name
- The resource name: a "/"-separated path name, relative to the plugin bundle's root directory. It may or may not begin with "/" (it makes no difference).- Returns:
- An InputStream to read the static resource content.
- Throws:
RuntimeException
- If no such static resource is contained in the plugin bundle.
-
hasStaticResource
boolean hasStaticResource(String name)
Checks if this plugin bundle contains a static resource with the given name.- Parameters:
name
- The resource name: a "/"-separated path name, relative to the plugin bundle's root directory. It may or may not begin with "/" (it makes no difference).
-
-