29.12. Annotations for packaging
This annotation provides a mechanism for declaring information about a set of components that are packaged together. It can be applied to any Java package.
-
@Namespace
@Namespace(value="http://jboss.com/products/seam/example/seampay")
Specifies that components in the current package are associated with the given namespace. The declared namespace can be used as an XML namespace in acomponents.xml
file to simplify application configuration.@Namespace(value="http://jboss.com/products/seam/core", prefix="org.jboss.seam.core")
Specifies a namespace to associate with a given package. Additionally, it specifies a component name prefix to be applied to component names specified in the XML file. For example, an XML element namedinit
that is associated with this namespace would be understood to actually refer to a component namedorg.jboss.seam.core.init
.