我可以在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> 
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top