Package org.jboss.solder.bean.defaultbean

Allows a library to provide a default implmentation of a bean, which is used unless overridden by an application.

See:
          Description

Class Summary
DefaultBeanExtension Registers beans annotated @DefaultBean

During the ProcessAnnotatedTypePhase beans and producers annotated with @Default have a synthetic qualifier added to them and existing qualifiers removed.

 

Package org.jboss.solder.bean.defaultbean Description

Allows a library to provide a default implmentation of a bean, which is used unless overridden by an application. Although this may sound identical to an alternative, alternatives have some restrictions that may make them undesirable. Primarily, alternatives require an entry in every beans.xml file in an application.

Developers consuming the extension will have to open up the any jar file which references the default bean, and edit the beans.xml file within, in order to override the service. This is where default beans come in.

Default beans allow you to create a default bean with a specified type and set of qualifiers. If no other bean is installed that has the same type and qualifiers, then the default bean will be installed.

See Also:
DefaultBean


Copyright © 2008-2011 Seam Framework. All Rights Reserved.