|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.osgi.framework.resource.ResourceConstants
public final class ResourceConstants
Defines standard names for the attributes, directives and name spaces for resources, capabilities and requirements.
The values associated with these keys are of type String, unless
otherwise indicated.
| Field Summary | |
|---|---|
static java.lang.String |
CAPABILITY_EFFECTIVE_DIRECTIVE
A capability directive used to specify
the effective time for the capability. |
static java.lang.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 java.lang.String |
CAPABILITY_INCLUDE_DIRECTIVE
A capability directive used to specify
the comma separated list of classes which must be allowed to be exported. |
static java.lang.String |
CAPABILITY_MANDATORY_DIRECTIVE
A capability 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. |
static java.lang.String |
CAPABILITY_USES_DIRECTIVE
A capability directive used to specify
the comma separated list of package
names a capability uses. |
static java.lang.String |
EFFECTIVE_ACTIVE
A directive value identifying a capability or requirement that
is effective at active time. |
static java.lang.String |
EFFECTIVE_RESOLVE
A directive value identifying a capability or requirement that
is effective at resolve time. |
static java.lang.String |
IDENTITY_NAMESPACE
Name space for the identity capability. |
static java.lang.String |
IDENTITY_SINGLETON_DIRECTIVE
An identity capability directive
identifying if the resource is a singleton. |
static java.lang.String |
IDENTITY_TYPE_ATTRIBUTE
An identity capability attribute identifying the
resource type. |
static java.lang.String |
IDENTITY_TYPE_BUNDLE
An identity capability type
attribute value identifying the resource type as an OSGi bundle. |
static java.lang.String |
IDENTITY_TYPE_FRAGMENT
An identity capability type
attribute value identifying the resource type as an OSGi fragment. |
static java.lang.String |
IDENTITY_TYPE_UNKNOWN
An identity capability type
attribute value identifying the resource type as unknown. |
static java.lang.String |
IDENTITY_VERSION_ATTRIBUTE
An identity capability attribute identifying the
version of the resource. |
static java.lang.String |
REQUIREMENT_CARDINALITY_DIRECTIVE
A requirement directive used to
specify the cardinality for a requirement. |
static java.lang.String |
REQUIREMENT_CARDINALITY_MULTIPLE
A directive value identifying a multiple cardinality type. |
static java.lang.String |
REQUIREMENT_CARDINALITY_SINGULAR
A directive value identifying a singular cardinality type. |
static java.lang.String |
REQUIREMENT_EFFECTIVE_DIRECTIVE
A requirement directive used to
specify the effective time for the requirement. |
static java.lang.String |
REQUIREMENT_FILTER_DIRECTIVE
A requirement directive used to
specify a capability filter. |
static java.lang.String |
REQUIREMENT_RESOLUTION_DIRECTIVE
A requirement directive used to
specify the resolution type for a requirement. |
static java.lang.String |
REQUIREMENT_RESOLUTION_DYNAMIC
|
static java.lang.String |
REQUIREMENT_RESOLUTION_MANDATORY
A directive value identifying a mandatory requirement resolution type. |
static java.lang.String |
REQUIREMENT_RESOLUTION_OPTIONAL
A directive value identifying an optional requirement resolution type. |
static java.lang.String |
REQUIREMENT_VISIBILITY_DIRECTIVE
A requirement directive used to
specify the visibility type for a requirement. |
static java.lang.String |
REQUIREMENT_VISIBILITY_PRIVATE
A directive value identifying a private visibility type. |
static java.lang.String |
REQUIREMENT_VISIBILITY_REEXPORT
A directive value identifying a reexport visibility type. |
static java.lang.String |
WIRING_BUNDLE_NAMESPACE
Name space for bundle capabilities and requirements. |
static java.lang.String |
WIRING_HOST_NAMESPACE
Name space for host capabilities and requirements. |
static java.lang.String |
WIRING_PACKAGE_NAMESPACE
Name space for package capabilities and requirements. |
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.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 java.lang.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 java.lang.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 java.lang.String IDENTITY_TYPE_BUNDLE
identity capability type
attribute value identifying the resource type as an OSGi bundle.
public static final java.lang.String IDENTITY_TYPE_FRAGMENT
identity capability type
attribute value identifying the resource type as an OSGi fragment.
public static final java.lang.String IDENTITY_TYPE_UNKNOWN
identity capability type
attribute value identifying the resource type as unknown.
public static final java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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.
REQUIREMENT_RESOLUTION_DIRECTIVE,
Constant Field Valuespublic static final java.lang.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.
REQUIREMENT_RESOLUTION_DIRECTIVE,
Constant Field Valuespublic static final java.lang.String REQUIREMENT_RESOLUTION_DYNAMIC
public static final java.lang.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 java.lang.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.
REQUIREMENT_EFFECTIVE_DIRECTIVE,
CAPABILITY_EFFECTIVE_DIRECTIVE,
Constant Field Valuespublic static final java.lang.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.
REQUIREMENT_EFFECTIVE_DIRECTIVE,
CAPABILITY_EFFECTIVE_DIRECTIVE,
Constant Field Valuespublic static final java.lang.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 java.lang.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
.
REQUIREMENT_VISIBILITY_DIRECTIVE,
Constant Field Valuespublic static final java.lang.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 java.lang.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 java.lang.String REQUIREMENT_CARDINALITY_MULTIPLE
cardinality type.
public static final java.lang.String REQUIREMENT_CARDINALITY_SINGULAR
cardinality type.
public static final java.lang.String CAPABILITY_USES_DIRECTIVE
directive used to specify
the comma separated list of package
names a capability uses.
public static final java.lang.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 java.lang.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 java.lang.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 java.lang.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||