接缝:相当于@startup在components.xml中?
题
我可以在components.xml中使用的接缝中的@startup注释等效吗?
解决方案
每 http://www.jboss.com/products/seam/components-2.2.xsd 您可以使用startup = true | false
<xs:attribute name="startup" default="false" type="components:boolean">
<xs:annotation>
<xs:documentation>
Indicates that an instance of the component should be created when the
the component's controlling scope starts. This is only used for application and
session scope.
</xs:documentation>
</xs:annotation>
</xs:attribute>
不隶属于 StackOverflow