public final class ResourceConstants extends Object
The values associated with these keys are of type String
, unless
otherwise indicated.
Modifier and Type | Field and Description |
---|---|
static String |
CAPABILITY_EFFECTIVE_DIRECTIVE
A capability
directive used to specify
the effective time for the capability. |
static String |
CAPABILITY_EXCLUDE_DIRECTIVE
A capability
directive used to specify
the comma separated list of classes which must not be allowed to be
exported. |
static String |
CAPABILITY_INCLUDE_DIRECTIVE
A capability
directive used to specify
the comma separated list of classes which must be allowed to be exported. |
static String |
CAPABILITY_MANDATORY_DIRECTIVE
|
static String |
CAPABILITY_USES_DIRECTIVE
|
static String |
EFFECTIVE_ACTIVE
A directive value identifying a
capability or requirement that
is effective at active time. |
static String |
EFFECTIVE_RESOLVE
A directive value identifying a
capability or requirement that
is effective at resolve time. |
static String |
IDENTITY_NAMESPACE
Name space for the identity capability.
|
static String |
IDENTITY_SINGLETON_DIRECTIVE
|
static String |
IDENTITY_TYPE_ATTRIBUTE
An
identity capability attribute identifying the
resource type. |
static String |
IDENTITY_TYPE_BUNDLE
|
static String |
IDENTITY_TYPE_FRAGMENT
|
static String |
IDENTITY_TYPE_UNKNOWN
|
static String |
IDENTITY_VERSION_ATTRIBUTE
An
identity capability attribute identifying the
version of the resource. |
static String |
REQUIREMENT_CARDINALITY_DIRECTIVE
A requirement
directive used to
specify the cardinality for a requirement. |
static String |
REQUIREMENT_CARDINALITY_MULTIPLE
A directive value identifying a multiple
cardinality type. |
static String |
REQUIREMENT_CARDINALITY_SINGULAR
A directive value identifying a singular
cardinality type. |
static String |
REQUIREMENT_EFFECTIVE_DIRECTIVE
A requirement
directive used to
specify the effective time for the requirement. |
static String |
REQUIREMENT_FILTER_DIRECTIVE
A requirement
directive used to
specify a capability filter. |
static String |
REQUIREMENT_RESOLUTION_DIRECTIVE
A requirement
directive used to
specify the resolution type for a requirement. |
static String |
REQUIREMENT_RESOLUTION_MANDATORY
A directive value identifying a mandatory
requirement resolution type. |
static String |
REQUIREMENT_RESOLUTION_OPTIONAL
A directive value identifying an optional
requirement resolution type. |
static String |
REQUIREMENT_VISIBILITY_DIRECTIVE
A requirement
directive used to
specify the visibility type for a requirement. |
static String |
REQUIREMENT_VISIBILITY_PRIVATE
A directive value identifying a private
visibility type. |
static String |
REQUIREMENT_VISIBILITY_REEXPORT
A directive value identifying a reexport
visibility type. |
static String |
WIRING_BUNDLE_NAMESPACE
Name space for bundle capabilities and requirements.
|
static String |
WIRING_HOST_NAMESPACE
Name space for host capabilities and requirements.
|
static String |
WIRING_PACKAGE_NAMESPACE
Name space for package capabilities and requirements.
|
public static final String IDENTITY_NAMESPACE
resource
provides exactly one† identity capability that can be
used to identify the resource.
For identity capability attributes the following applies:
osgi.identityattribute contains the symbolic name of the resource.
version
attribute contains
the Version
of the resource.
type
attribute contains the
resource type.
A resource with a symbolic name
provides
exactly one
† identity
capability
.
For a revision
with a symbolic name the
wiring
for the revision
provides
exactly
one† identity capability.
† A resource with no symbolic name must not provide an identity capability.
public static final String IDENTITY_VERSION_ATTRIBUTE
identity
capability attribute identifying the
version
of the resource. This attribute must be set to a value of
type Version
. If the resource has no version then the value
0.0.0
must be used for the attribute.public static final String IDENTITY_TYPE_ATTRIBUTE
identity
capability attribute identifying the
resource type. This attribute must be set to a value of type String
.
if the resource has no type then the value
unknown
must be used for the
attribute.public static final String IDENTITY_TYPE_BUNDLE
public static final String IDENTITY_TYPE_FRAGMENT
public static final String IDENTITY_TYPE_UNKNOWN
public static final String IDENTITY_SINGLETON_DIRECTIVE
identity
capability directive
identifying if the resource is a singleton. A String
value of "true" indicates
the resource is a singleton; any other value or null
indicates the resource is not a
singleton.public static final String WIRING_PACKAGE_NAMESPACE
osgi.wiring.packageattribute contains the name of the package.
version
attribute contains
the the Version
of the package if one is specified or
Version.emptyVersion
if not specified.
bundle-symbolic-name
attribute contains the symbolic name of the
resource providing the package if one is specified.
bundle-version
attribute contains the Version
of resource providing the package
if one is specified or Version.emptyVersion
if not specified.
String
and are used as
arbitrary matching attributes for the capability.
A resource provides zero or more package
capabilities
(this is, exported
packages) and requires zero or more package
requirements
(that is, imported
packages).
public static final String WIRING_BUNDLE_NAMESPACE
osgi.wiring.bundleattribute contains the symbolic name of the bundle.
bundle-version
attribute contains the Version
of the bundle if one is specified
or Version.emptyVersion
if not specified.
String
and are used as
arbitrary matching attributes for the capability.
A non-fragment resource with the osgi.bundle
type identity
provides
exactly one † bundle
capability
(that is, the bundle
can be required by another bundle). A fragment resource with the
osgi.fragment
type
identity
must not declare
a bundle capability. A resource requires zero or more bundle
requirements
(that is, required
bundles).
† A resource with no symbolic name must not provide a bundle capability.
public static final String WIRING_HOST_NAMESPACE
osgi.wiring.hostattribute contains the symbolic name of the bundle.
bundle-version
attribute contains the Version
of the bundle if one is specified
or Version.emptyVersion
if not specified.
String
and are used as
arbitrary matching attributes for the capability.
A non-fragment resource with the with the osgi.bundle
type identity
provides
zero or one † host
capabilities
.
A fragment resource with the
osgi.fragment
type
identity
must not declare
a host capability and must
declare
exactly one host
requirement.
† A resource with no bundle symbolic name must not provide a host capability.
public static final String REQUIREMENT_FILTER_DIRECTIVE
directive
used to
specify a capability filter. This filter is used to match against a
capability's attributes
.public static final String REQUIREMENT_RESOLUTION_DIRECTIVE
directive
used to
specify the resolution type for a requirement. The default value is
mandatory
.mandatory
,
optional
,
Constant Field Valuespublic static final String REQUIREMENT_RESOLUTION_MANDATORY
requirement
resolution type. A
mandatory resolution type indicates that the requirement must be resolved
when the resource
is resolved. If such requirement
cannot be resolved, the resource fails to resolve.public static final String REQUIREMENT_RESOLUTION_OPTIONAL
requirement
resolution type. An
optional resolution type indicates that the requirement is optional and
the resource
may be resolved without requirement being
resolved.public static final String REQUIREMENT_EFFECTIVE_DIRECTIVE
directive
used to
specify the effective time for the requirement. The default value is
resolve
.resolve
,
active
,
Constant Field Valuespublic static final String EFFECTIVE_RESOLVE
capability
or requirement
that
is effective at resolve time. Capabilities and requirements with an
effective time of resolve are the only capabilities which are processed
while resolving a resource.public static final String EFFECTIVE_ACTIVE
capability
or requirement
that
is effective at active time. Capabilities and requirements with an
effective time of active are ignored while resolving a resource.public static final String REQUIREMENT_VISIBILITY_DIRECTIVE
directive
used to
specify the visibility type for a requirement. The default value is
private
. This directive must only
be used for requirements with the require
bundle
name space.private
,
reexport
,
Constant Field Valuespublic static final String REQUIREMENT_VISIBILITY_PRIVATE
visibility
type. A private
visibility type indicates that any packages
that are exported by the required
bundle
are not made visible on the
export signature of the requiring bundle
.public static final String REQUIREMENT_VISIBILITY_REEXPORT
visibility
type. A reexport
visibility type indicates any packages
that are exported by the required bundle
are re-exported by the requiring bundle
.public static final String REQUIREMENT_CARDINALITY_DIRECTIVE
directive
used to
specify the cardinality for a requirement. The default value is
singular
.multiple
,
singular
,
Constant Field Valuespublic static final String REQUIREMENT_CARDINALITY_MULTIPLE
cardinality
type.public static final String REQUIREMENT_CARDINALITY_SINGULAR
cardinality
type.public static final String CAPABILITY_USES_DIRECTIVE
public static final String CAPABILITY_EFFECTIVE_DIRECTIVE
directive
used to specify
the effective time for the capability. The default value is
resolve
.resolve
,
active
,
Constant Field Valuespublic static final String CAPABILITY_MANDATORY_DIRECTIVE
directive
used to specify
the comma separated list of mandatory attributes which must be specified
in the filter
of a requirement in
order for the capability to match the requirement. This directive must
only be used for capabilities with the package
, bundle
, or
host
name space.public static final String CAPABILITY_INCLUDE_DIRECTIVE
directive
used to specify
the comma separated list of classes which must be allowed to be exported.
This directive must only be used for capabilities with the
package
name space.public static final String CAPABILITY_EXCLUDE_DIRECTIVE
directive
used to specify
the comma separated list of classes which must not be allowed to be
exported. This directive must only be used for capabilities with the
package
name space.Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.