Contexts and Dependency Injection 1.0
The Contexts and Dependency Injection specification makes it easier to integrate Java EE components of different types. It provides a common mechanism to inject component such as EJBs or Managed Beans into other components such as JSPs or other EJBs.
Dieses Feature aktivieren
To enable the Contexts and Dependency Injection 1.0 feature, add the following element declaration inside the featureManager element in your
server.xml file:
<feature>cdi-1.0</feature>
Unterstützte Java™-Versionen
- JavaSE-1.6
- JavaSE-1.7
- JavaSE-1.8
Feature entwickeln, das von diesem Feature abhängig ist
If you are developing a feature that depends on the Contexts and Dependency Injection 1.0 feature, include the following item in the Subsystem-Content header in the feature manifest file for your new feature:
com.ibm.websphere.appserver.cdi-1.0; type="osgi.subsystem.feature"
Features, die dieses Feature aktivieren
Von diesem Feature bereitgestellte Standard-API-Pakete
- javax.decorator
- javax.enterprise.context
- javax.enterprise.context.spi
- javax.enterprise.event
- javax.enterprise.inject
- javax.enterprise.inject.spi
- javax.enterprise.util
- javax.inject
- javax.interceptor
Featurekonfigurationselemente
You can use the following elements in your server.xml file to configure the Contexts and Dependency Injection 1.0 feature:
Referenzartikel