tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject svn commit: r375786 - /incubator/tuscany/java/spec/sdo/src/main/java/commonj/sdo/impl/HelperProvider.java
Date Wed, 08 Feb 2006 00:12:15 GMT
Author: jboynes
Date: Tue Feb  7 16:12:12 2006
New Revision: 375786

URL: http://svn.apache.org/viewcvs?rev=375786&view=rev
Log:
clarify instantiation semantics

Modified:
    incubator/tuscany/java/spec/sdo/src/main/java/commonj/sdo/impl/HelperProvider.java

Modified: incubator/tuscany/java/spec/sdo/src/main/java/commonj/sdo/impl/HelperProvider.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/spec/sdo/src/main/java/commonj/sdo/impl/HelperProvider.java?rev=375786&r1=375785&r2=375786&view=diff
==============================================================================
--- incubator/tuscany/java/spec/sdo/src/main/java/commonj/sdo/impl/HelperProvider.java (original)
+++ incubator/tuscany/java/spec/sdo/src/main/java/commonj/sdo/impl/HelperProvider.java Tue
Feb  7 16:12:12 2006
@@ -75,9 +75,11 @@
      * Attempt to locate a HelperProvider using first the Thread's current context classloader
and then,
      * if that is not set, not readable, or does not provide an implementation, using the
classloader
      * used to load the HelperProvider class itself.
+     * <p/>
+     * A new instance is returned for each sucessful invocation.
      *
      * @return an implementation of HelperProvider
-     * @throws NoHelperProviderException if no provider implmentation was defined or it could
not be instantiated
+     * @throws NoHelperProviderException if no provider implementation was defined or it
could not be instantiated
      */
     public static HelperProvider getInstance() throws NoHelperProviderException {
         String implName = getImplementationName();
@@ -108,10 +110,12 @@
      * will be retrieved from the META-INF/services/commonj.sdo.impl.HelperProvider resource
as returned
      * by the supplied classloader as described in the
      * <a href="http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Service%20Provider">JAR
file specification</a>.
+     * <p/>
+     * A new instance is returned for each sucessful invocation.
      *
      * @param cl the classloader to use to locate and instantiate the implementation
      * @return the specified implementation of HelperProvider
-     * @throws NoHelperProviderException if no provider implmentation was defined or it could
not be instantiated
+     * @throws NoHelperProviderException if no provider implementation was defined or it
could not be instantiated
      */
     public static HelperProvider getInstance(ClassLoader cl) throws NoHelperProviderException
{
         String implName = getImplementationName();



Mime
View raw message