Вопрос

Есть ли эквивалент аннотации @startup в шове, который я мог бы использовать в компонентах .xml?

Это было полезно?

Решение

Нами http://www.jboss.com/products/seam/componentents-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