1

我可以在 components.xml 中使用 Seam 中的 @Startup 注释吗?

4

1 回答 1

3

根据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> 
于 2010-06-29T16:37:54.583 回答