SeamFramework.orgCommunity Documentation

Weld - JSR-299 Reference Implementation

JSR-299: The new Java standard for dependency injection and contextual lifecycle management


A note about naming and nomenclature
I. Beans
1. Introduction
1.1. What is a bean?
1.2. Getting our feet wet
2. More about beans
2.1. The anatomy of a bean
2.1.1. Bean types, qualifiers and dependency injection
2.1.2. Scope
2.1.3. EL name
2.1.4. Alternatives
2.1.5. Interceptor binding types
2.2. What kinds of classes are beans?
2.2.1. Managed beans
2.2.2. Session beans
2.2.3. Producer methods
2.2.4. Producer fields
3. JSF Web应用例子
4. Dependency injection and programmatic lookup
4.1. Injection points
4.2. What gets injected
4.3. Qualifier annotations
4.4. The built-in qualifiers @Default and @Any
4.5. Qualifiers with members
4.6. Multiple qualifiers
4.7. Alternatives
4.8. Fixing unsatisfied and ambiguous dependencies
4.9. 客户代理
4.10. Obtaining a contextual instance by programmatic lookup
4.11. InjectionPoint 对象
5. 范围和上下文
5.1. 范围类型
5.2. 内置范围
5.3. 对话范围
5.3.1. 对话划分
5.3.2. 对话的传播
5.3.3. 对话超时
5.4. The singleton pseudo-scope
5.5. 依赖的伪范围
5.6. The @New qualifier
II. Getting Start with Weld, the CDI Reference Implementation
6. Getting started with Weld
6.1. Prerequisites
6.2. Deploying to JBoss AS
6.3. Deploying to GlassFish
6.4. Deploying to Apache Tomcat
6.4.1. Deploying with Ant
6.4.2. Deploying with Maven
6.5. Deploying to Jetty
7. Diving into the Weld examples
7.1. The numberguess example in depth
7.1.1. The numberguess example in Apache Tomcat or Jetty
7.2. The numberguess example for Java SE with Swing
7.2.1. Creating the Eclipse project
7.2.2. Running the example from Eclipse
7.2.3. Running the example from the command line
7.2.4. Understanding the code
7.3. The translator example in depth
III. Loose coupling with strong typing
8. 生产者方法
8.1. 生产者方法的范围
8.2. 注入到生产者方法中
8.3. 在生产者方法中使用 @New
8.4. Disposer methods
9. 拦截器
9.1. 拦截器绑定
9.2. 实现拦截器
9.3. 激活拦截器
9.4. 成员拦截器绑定
9.5. 多个拦截器绑定注释
9.6. 拦截器绑定类型的继承
9.7. @Interceptors 的使用
10. 装饰器
10.1. Delegate object
10.2. 激活装饰器
11. 事件
11.1. Event payload
11.2. 事件观察者
11.3. 事件生产者
11.4. Conditional observer methods
11.5. Event qualifiers with members
11.6. Multiple event qualifiers
11.7. 事务性的观察者
12. 模板
12.1. Default scope for a stereotype
12.2. 模板的拦截器绑定
12.3. 模板的默认命名
12.4. Alternative stereotypes
12.5. Stereotype stacking
12.6. Built-in stereotypes
13. Specialization, inheritance and alternatives
13.1. Using alternative stereotypes
13.2. A minor problem with alternatives
13.3. 使用特化
14. Java EE component environment resources
14.1. Defining a resource
14.2. Typesafe resource injection
IV. CDI and the Java EE ecosystem
15. Java EE整合
15.1. Built-in beans
15.2. Injecting Java EE resources into a bean
15.3. Calling a bean from a servlet
15.4. Calling a bean from a message-driven bean
15.5. JMS端点
15.6. 打包和部署
16. Portable extensions
16.1. Creating an Extension
16.2. Container lifecycle events
16.3. The BeanManager object
16.4. The InjectionTarget interface
16.5. The Bean interface
16.6. Registering a Bean
16.7. Wrapping an AnnotatedType
16.8. Wrapping an InjectionTarget
16.9. Context 接口
17. 下一步
V. Weld Reference Guide
18. Application servers and environments supported by Weld
18.1. Using Weld with JBoss AS
18.2. GlassFish
18.3. Servlet containers (such as Tomcat or Jetty)
18.3.1. Tomcat
18.3.2. Jetty
18.4. Java SE
18.4.1. CDI SE Module
18.4.2. Bootstrapping CDI SE
18.4.3. Thread Context
18.4.4. Setting the Classpath
19. Context Management
19.1. Managing the built in contexts
20. Configuration
20.1. Excluding classes from scanning and deployment
A. Integrating Weld into other environments
A.1. The Weld SPI
A.1.1. Deployment structure
A.1.2. EJB descriptors
A.1.3. EE resource injection and resolution services
A.1.4. EJB services
A.1.5. JPA services
A.1.6. 事务服务
A.1.7. Resource Services
A.1.8. Injection Services
A.1.9. Security Services
A.1.10. Bean Validation Services
A.1.11. Identifying the BDA being addressed
A.1.12. The bean store
A.1.13. 应用上下文
A.1.14. Initialization and shutdown
A.1.15. 资源加载
A.2. 容器的合约