@ProviderType public class CDIConstants extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CDI_CAPABILITY_NAME
Capability name for CDI Integration.
|
static java.lang.String |
CDI_COMPONENT_NAME
Special string representing the name of a Component.
|
static java.lang.String |
CDI_CONTAINER_ID
The attribute of the CDI extender requirement declaring the container's id.
|
static java.lang.String |
CDI_CONTAINER_ID_PROPERTY
The key used for the container id service property in services provided by
CCR.
|
static java.lang.String |
CDI_EXTENSION_PROPERTY
A service property applied to
javax.enterprise.inject.spi.Extension services, whose value is
the name of the extension. |
static java.lang.String |
CDI_SPECIFICATION_VERSION
Compile time constant for the Specification Version of CDI Integration.
|
static java.lang.String |
REQUIREMENT_BEANS_ATTRIBUTE
The '
beans ' attribute on the CDI extender requirement. |
static java.lang.String |
REQUIREMENT_DESCRIPTOR_ATTRIBUTE
The '
descriptor ' attribute on the CDI extender requirement. |
public static final java.lang.String CDI_CAPABILITY_NAME
Used in Provide-Capability
and Require-Capability
manifest
headers with the osgi.extender
namespace. For example:
Require-Capability: osgi.extender; « filter:="(&(osgi.extender=osgi.cdi)(version>=1.0)(!(version>=2.0)))"
public static final java.lang.String CDI_COMPONENT_NAME
This string can be used with PID
OR
factory PID
to specify the name of the
component.
For example:
@PID(CDI_COMPONENT_NAME)
public static final java.lang.String CDI_CONTAINER_ID
Require-Capability: osgi.extender; « filter:="(&(osgi.extender=osgi.cdi)(version>=1.0)(!(version>=2.0)))"; « container.id="my.container"
public static final java.lang.String CDI_CONTAINER_ID_PROPERTY
public static final java.lang.String CDI_EXTENSION_PROPERTY
javax.enterprise.inject.spi.Extension
services, whose value is
the name of the extension.public static final java.lang.String CDI_SPECIFICATION_VERSION
Used in Version
and Requirement
annotations. The value of
this compile time constant will change when the specification version of
CDI Integration is updated.
public static final java.lang.String REQUIREMENT_DESCRIPTOR_ATTRIBUTE
descriptor
' attribute on the CDI extender requirement.
The value of this attribute is a list of bean CDI bean descriptor file
paths to be searched on the Bundle-ClassPath
. For example:
Require-Capability: osgi.extender; « filter:="(&(osgi.extender=osgi.cdi)(version>=1.0)(!(version>=2.0)))"; « descriptor:List<String>="META-INF/beans.xml"
public static final java.lang.String REQUIREMENT_BEANS_ATTRIBUTE
beans
' attribute on the CDI extender requirement.
The value of this attribute is a list of bean class names that will be processed by CCR. The default value is an empty list. For example:
Require-Capability: osgi.extender; « filter:="(&(osgi.extender=osgi.cdi)(version>=1.0)(!(version>=2.0)))"; « beans:List<String>="com.acme.Foo,com.acme.bar.Baz"
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0