(no commit message)
authorErik Brakkee <erik@brakkee.org>
Mon, 5 Jul 2010 19:56:05 +0000 (19:56 +0000)
committerErik Brakkee <erik@brakkee.org>
Mon, 5 Jul 2010 19:56:05 +0000 (19:56 +0000)
test/enterprise/src/main/java/org/wamblee/support/jndi/JndiProxyFactory.java
test/enterprise/src/main/java/org/wamblee/support/jndi/package-info.java [new file with mode: 0644]

index 99088576f95232365642a832d72fee701b257a11..1b6f67fa09a69e135ffc25a10621c834a69945be 100644 (file)
@@ -27,6 +27,9 @@ import javax.naming.NamingException;
  * Proxy factory that can provide contextual references to objects retrieved
  * from JNDI.
  * 
+ * NOTE: This class is probably better suited as a production class, not a test support class. 
+ * It needs to find a new home in a Java EE production utilities library. 
+ * 
  * @param T
  *            Interface to proxy.
  * @author Erik Brakkee
diff --git a/test/enterprise/src/main/java/org/wamblee/support/jndi/package-info.java b/test/enterprise/src/main/java/org/wamblee/support/jndi/package-info.java
new file mode 100644 (file)
index 0000000..505730e
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2005-2010 the original author or authors.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */ 
+/**
+ * This package provides utilities for JNDI testing.  
+ * 
+ * Using {@link StubInitialContextFactory}, JNDI can be mocked in junit tests. 
+ * {@link JndiProxyFactory} provides a proxy that transparently delegates to an object in the 
+ * JNDI tree. 
+ */
+package org.wamblee.support.jndi;
\ No newline at end of file