javax.enterprise.inject.spi
Interface Extension


public interface Extension

Service interface implemented by extensions. An extension is a service provider declared in META-INF/services.

Service providers may have observer methods, which may observe any event, including any container lifecycle event, and obtain an injected BeanManager.

The container instantiates a single instance of each extension at the beginning of the application initialization process and maintains a reference to it until the application shuts down. The container delivers event notifications to this instance by calling its observer methods.

Service providers are made available for injection as beans with the qualifier @Default.

Author:
Gavin King, Pete Muir



Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41