directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r123424 - /incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/SendMailFactory.java
Date Mon, 27 Dec 2004 16:17:45 GMT
Author: psteitz
Date: Mon Dec 27 08:17:44 2004
New Revision: 123424

URL: http://svn.apache.org/viewcvs?view=rev&rev=123424
Log:
Javadoc. Also changed formal parameter names to start with lowercase.
Modified:
   incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/SendMailFactory.java

Modified: incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/SendMailFactory.java
Url: http://svn.apache.org/viewcvs/incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/SendMailFactory.java?view=diff&rev=123424&p1=incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/SendMailFactory.java&r1=123423&p2=incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/SendMailFactory.java&r2=123424
==============================================================================
--- incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/SendMailFactory.java
(original)
+++ incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/SendMailFactory.java
Mon Dec 27 08:17:44 2004
@@ -84,10 +84,22 @@
     protected final String DataSourceClassName = 
 	"javax.mail.internet.MimePartDataSource";
 
-    public Object getObjectInstance(Object RefObj, Name Nm, Context Ctx,
-				    Hashtable Env) throws Exception 
+    
+    /**
+     * Create a new MimePartDataSource.
+     * 
+     * @param refObj The reference object describing the ResourceLink
+     * @param nm The name of this object relative to nameCtx, or null if no name is specified.
+     * @param ctx The context relative to which the name  parameter is specified, 
+     * or null if name is relative to the default initial context.
+     * @param env  The possibly null environment that is used in 
+     * creating the object.
+     * @return The object created; null if an instance cannot be created.
+     */
+    public Object getObjectInstance(Object refObj, Name nm, Context ctx,
+				    Hashtable env) throws Exception 
     {
-	final Reference Ref = (Reference)RefObj;
+	final Reference Ref = (Reference)refObj;
 
 	// Creation of the DataSource is wrapped inside a doPrivileged
 	// so that javamail can read its default properties without

Mime
View raw message