2010-06-29 25 views

回答

3

http://www.jboss.com/products/seam/components-2.2.xsd您可以使用啓動=真|虛假

<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> 
+0

咄。當我寫這個問題時,我的tire spoke不安。該問題旨在詢問有關@Create註釋。那個怎麼樣? – 2010-06-29 16:44:44

+1

我認爲最接近的是定義一個工廠並從工廠方法調用初始化,例如 shipmaster 2010-06-29 17:02:14

+0

乾杯,這對我很有用。 (1) – 2010-06-30 07:42:21