Update of /cvsroot/commonjava/commonjava-projects/commonjava-config-jndi/src/java/org/commonjava/config/jndi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17559/src/java/org/commonjava/config/jndi
Modified Files:
JndiConfig.java
Log Message:
added baseContext attribute to the JndiConfig.
Index: JndiConfig.java
===================================================================
RCS file: /cvsroot/commonjava/commonjava-projects/commonjava-config-jndi/src/java/org/commonjava/config/jndi/JndiConfig.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- JndiConfig.java 15 Dec 2003 01:49:54 -0000 1.2
+++ JndiConfig.java 22 Mar 2004 15:51:14 -0000 1.3
@@ -19,6 +19,7 @@
private Properties properties;
private String id;
private boolean useContextEnvironment = true;
+ private String baseContext;
/** Create new JndiConfig.
*/
@@ -82,4 +83,20 @@
this.useContextEnvironment = useContextEnvironment;
}
+ /** Get the base context from which all access to JNDI via this configuration should be based.
+ * For example, the EJB spec dictates that EJB's should be bound under the context:
+ * "java:comp/env". Therfore, the baseContext attribute should be set to "java:comp/env".
+ */
+ public String getBaseContext() {
+ return baseContext;
+ }
+
+ /** Set the base context from which all access to JNDI via this configuration should be based.
+ * For example, the EJB spec dictates that EJB's should be bound under the context:
+ * "java:comp/env". Therfore, the baseContext attribute should be set to "java:comp/env".
+ */
+ public void setBaseContext(String string) {
+ baseContext = string;
+ }
+
}
|