|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gemini.blueprint.extender.internal.blueprint.activator.support.BlueprintConfigUtils
public class BlueprintConfigUtils
RFC124-version of ConfigUtils
class. Basically a small util class that handles the retrieval of relevant
headers from the any given bundle.
Field Summary | |
---|---|
static String |
BLUEPRINT_GRACE_PERIOD
Standard wait for dependencies header |
static String |
BLUEPRINT_HEADER
Manifest entry name for configuring Blueprint modules |
static String |
BLUEPRINT_TIMEOUT
Standard timeout header |
static String |
EXTENDER_VERSION
|
Constructor Summary | |
---|---|
BlueprintConfigUtils()
|
Method Summary | |
---|---|
static String |
getBlueprintHeader(Dictionary headers)
Returns the "Bundle-Blueprint" if present from the given dictionary. |
static String[] |
getBlueprintHeaderLocations(Dictionary headers)
Returns the location headers (if any) specified by the Blueprint-Bundle header (if available). |
static boolean |
getCreateAsync(Dictionary headers)
Shortcut for finding the boolean value for #DIRECTIVE_CREATE_ASYNCHRONOUSLY directive using the given
headers. |
static boolean |
getPublishContext(Dictionary headers)
Shortcut for finding the boolean value for #DIRECTIVE_PUBLISH_CONTEXT directive using the given headers. |
static String |
getSymNameHeader(Dictionary headers)
|
static long |
getTimeOut(Dictionary headers)
Shortcut for finding the boolean value for BLUEPRINT_TIMEOUT directive using the given headers. |
static boolean |
getWaitForDependencies(Dictionary headers)
Shortcut for finding the boolean value for BLUEPRINT_GRACE_PERIOD directive using the given headers. |
static boolean |
hasTimeout(Dictionary headers)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BLUEPRINT_HEADER
public static final String BLUEPRINT_GRACE_PERIOD
public static final String BLUEPRINT_TIMEOUT
public static final String EXTENDER_VERSION
Constructor Detail |
---|
public BlueprintConfigUtils()
Method Detail |
---|
public static String getBlueprintHeader(Dictionary headers)
headers
-
public static String getSymNameHeader(Dictionary headers)
public static boolean hasTimeout(Dictionary headers)
public static long getTimeOut(Dictionary headers)
BLUEPRINT_TIMEOUT
directive using the given headers.
Assumes the headers belong to a Spring powered bundle. Returns the timeout (in milliseconds) for which the application
context should wait to have its dependencies satisfied.
headers
-
public static boolean getWaitForDependencies(Dictionary headers)
BLUEPRINT_GRACE_PERIOD
directive using the given headers.
Assumes the headers belong to a Spring powered bundle.
headers
-
public static boolean getPublishContext(Dictionary headers)
#DIRECTIVE_PUBLISH_CONTEXT
directive using the given headers.
Assumes the headers belong to a Spring powered bundle.
headers
-
public static boolean getCreateAsync(Dictionary headers)
#DIRECTIVE_CREATE_ASYNCHRONOUSLY
directive using the given
headers.
Assumes the headers belong to a Spring powered bundle.
headers
-
public static String[] getBlueprintHeaderLocations(Dictionary headers)
ResourceLoader
for loading the configurations.
Different from ConfigUtils.getLocationsFromHeader(String, String)
since "," is used for separating
clauses while ; is used inside a clause to allow parameters or directives besides paths.
Since the presence of the header, disables any processing this method will return null if the header is not
specified, an empty array if it's empty (disabled) or a populated array otherwise.
headers
- bundle headers
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |