User: pathoss
Date: 02/04/05 02:26:17
Modified: core/src/xdoclet/ejb UtilObjectSubTask.java
Log:
Added support for caching homes (and thus not making a JNDI call to lookup the home).
Revision Changes Path
1.21 +26 -1 xdoclet/core/src/xdoclet/ejb/UtilObjectSubTask.java
Index: UtilObjectSubTask.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/ejb/UtilObjectSubTask.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -w -r1.20 -r1.21
--- UtilObjectSubTask.java 5 Apr 2002 09:59:51 -0000 1.20
+++ UtilObjectSubTask.java 5 Apr 2002 10:26:17 -0000 1.21
@@ -20,7 +20,7 @@
/**
* @author Konstantin Pribluda
* @created October 3, 2001
- * @version $Revision: 1.20 $
+ * @version $Revision: 1.21 $
*/
public class UtilObjectSubTask extends AbstractEjbCodeGeneratorSubTask
{
@@ -55,6 +55,11 @@
private boolean includeGUID = false;
/**
+ * Cache the homes?
+ */
+ private boolean cacheHomes = false;
+
+ /**
* The preferred kind of lookup code, which is either logical or physical.
*/
private String kind = LookupKind.LOGICAL;
@@ -102,6 +107,16 @@
}
/**
+ * Cache the homes?
+ *
+ * @return
+ */
+ public boolean getCacheHomes()
+ {
+ return cacheHomes;
+ }
+
+ /**
* Returns the configuration parameter for specifying the utility class name
* pattern. By default the value is used for deciding the utility name. {0} in
* the value mean current class's symbolic name which for an EJBean is the EJB
@@ -150,6 +165,16 @@
public void setIncludeGUID( boolean includeGUID )
{
this.includeGUID = includeGUID;
+ }
+
+ /**
+ * Cache the homes?
+ *
+ * @param cacheHomes
+ */
+ public void setCacheHomes( boolean cacheHomes )
+ {
+ this.cacheHomes = cacheHomes;
}
/**
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel