public interface Plugin
Modifier and Type | Method and 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.
|
InputStream getStaticResource(String name)
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).RuntimeException
- If no such static resource is contained in the plugin bundle.boolean hasStaticResource(String name)
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).Copyright © 2018. All Rights Reserved.