You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jb...@apache.org on 2007/02/09 05:23:51 UTC

svn commit: r505173 - /incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/component/InstanceFactory.java

Author: jboynes
Date: Thu Feb  8 20:23:50 2007
New Revision: 505173

URL: http://svn.apache.org/viewvc?view=rev&rev=505173
Log:
clean up javadoc

Modified:
    incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/component/InstanceFactory.java

Modified: incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/component/InstanceFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/component/InstanceFactory.java?view=diff&rev=505173&r1=505172&r2=505173
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/component/InstanceFactory.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/component/InstanceFactory.java Thu Feb  8 20:23:50 2007
@@ -21,22 +21,21 @@
 import org.apache.tuscany.core.component.scope.InstanceWrapper;
 
 /**
- * Interface for the instance factory used for creating Java component
- * instances. The implementation for this class may be generated dynamically by
- * the naster runtime during deployment. The instnace factory is expected to be
- * used by the physical component builder framework for creating component
- * instances.
- * 
+ * Interface for a factory that returns an injected component instance.
+ * This is used by a Component implementation to create new instances of
+ * application implementation objects as determined by the component scope's
+ * lifecycle.
+ * <p/>
+ * The implementation of this interface may be supplied by the user,
+ * may be generated during deployment, or may be dynamic.
+ *
  * @version $Rev$ $Date$
  * @param <T> Type of the instance generated by the factory.
  */
 public interface InstanceFactory<T> {
-
     /**
-     * Creates a new instance of the component. The implementations are expected
-     * to wire the component using the necessary object factories. Teh expected
-     * convention is for the implementations to accept the factories in the
-     * constructor as a typed array.
+     * Creates a new instance of the component.
+     * All injected values must be set but any @Init methods must not have been invoked.
      * 
      * @return A wrapper for the created component instance.
      */



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org