2012-03-16 11:20:31.0|分类: swing|浏览量: 1591
All objects created by the framework are instantiated by the ObjectFactory. The ObjectFactory provides the means of integrating the framework with IoC containers like Spring, Pico, Plexus, and so forth. 所有的对象都需要ObjectFactory创建。 自定义ObjectFactory必须继承 ObjectFactory或者ObjectFactory的子类。自定义ObjectFactory需要一个默认的不带参数的构造函数 To register a customized ObjectFactory, add or edit an entry in struts.properties struts.objectFactory=foo.bar.MyCustomObjectFactory
where foo.bar.MyCustomObjectFactory is the custom object factory.
public class MyObjectFactory extends ObjectFactory { ..... }
|