Commits

tm_jee  committed 8df8285

- updated javadoc to indicate that lifecycle of an ObjectFactory could be customized by having ObjectFactory implements
ObjectFactoryInitializable and / or ObjectFactoryDestroyable

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1103e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 4bd051d

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork2/ObjectFactory.java

 
 
 /**
- * ObjectFactory is responsible for building the core framework objects. Users may register their own implementation of
- * the ObjectFactory to control instantiation of these Objects.
+ * ObjectFactory is responsible for building the core framework objects. Users may register their 
+ * own implementation of the ObjectFactory to control instantiation of these Objects.
  * <p/>
- * This default implementation uses the {@link #buildBean(Class,java.util.Map) buildBean} method to create all classes
- * (interceptors, actions, results, etc).
+ * This default implementation uses the {@link #buildBean(Class,java.util.Map) buildBean} 
+ * method to create all classes (interceptors, actions, results, etc).
+ * <p/>
+ * To add lifecycle hook into an <code>ObjectFactory</code>, either or both of the following interfaces
+ * could be implemented by the <code>ObjectFactory</code> itself.
+ * <ul>
+ * 		<li>{@link ObjectFactoryInitializable}</li>
+ *      <li>{@link ObjectFactoryDestroyable}</li>
+ * </ul>
+ * Both will be invoked during the startup and showdown of {@link FilterDispatcher} through {@link Dispatcher}.
  *
  * @author Jason Carreira
  */