Package com.yahoo.jdisc.application
Class OsgiHeader
java.lang.Object
com.yahoo.jdisc.application.OsgiHeader
This interface acts as a namespace for the supported OSGi bundle headers.
- Author:
- Simon Thoresen Hult
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis method reads the named header from the manifest of the given bundle, and parses it as a comma-separated list of values.static boolean
Returns true if the named header is present in the manifest of the given bundle.
-
Field Details
-
APPLICATION
- See Also:
-
PREINSTALL_BUNDLE
- See Also:
-
PRIVILEGED_ACTIVATOR
- See Also:
-
-
Constructor Details
-
OsgiHeader
public OsgiHeader()
-
-
Method Details
-
isSet
Returns true if the named header is present in the manifest of the given bundle.- Parameters:
bundle
- The bundle whose manifest to check.headerName
- The name of the header to check for.- Returns:
- True if header is present.
-
asList
This method reads the named header from the manifest of the given bundle, and parses it as a comma-separated list of values. If the header is not set, this method returns an empty list.- Parameters:
bundle
- The bundle whose manifest to parse the header from.headerName
- The name of the header to parse.- Returns:
- A list of parsed header values, may be empty.
-