Package org.jboss.seam.solder.bean.defaultbean

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

See:
          Description

Annotation Types Summary
DefaultBean Annotation that signifies that a bean should only be registered if no other instance with the same type and qualifiers is registered.
 

Package org.jboss.seam.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-2010 Seam Framework. All Rights Reserved.