You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2001/01/28 20:49:20 UTC
cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core BaseInterceptor.java Context.java
costin 01/01/28 11:49:20
Modified: src/share/org/apache/tomcat/core BaseInterceptor.java
Context.java
Log:
Initialize DependManager ( modules can still replace it with a better
version if they want - but we'll not have to check for null every time )
Added another line of comment to BaseInterceptor ( registerHooks() method
can be used to give full control over hook registration - for example
a module can insert itself anywhere in the chain, reducing the requirements
for strict ordering in the config file. This still needs work - so ordering
still matters. )
Revision Changes Path
1.38 +3 -0 jakarta-tomcat/src/share/org/apache/tomcat/core/BaseInterceptor.java
Index: BaseInterceptor.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/BaseInterceptor.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- BaseInterceptor.java 2001/01/25 05:07:35 1.37
+++ BaseInterceptor.java 2001/01/28 19:49:19 1.38
@@ -577,6 +577,9 @@
/** Special method for self-registered hooks, intended to support
* a mechanism similar with Apache2.0 and further extensibility
* without interface changes.
+ *
+ * Most modules are added to the Hooks automatically. A module
+ * overriding this method has full control over this process.
*/
public int registerHooks(Hooks h) {
return DECLINED;
1.133 +1 -1 jakarta-tomcat/src/share/org/apache/tomcat/core/Context.java
Index: Context.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Context.java,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -r1.132 -r1.133
--- Context.java 2001/01/23 13:02:01 1.132
+++ Context.java 2001/01/28 19:49:19 1.133
@@ -251,7 +251,7 @@
// needs reload
private boolean reload;
// Tool used to control reloading
- private DependManager dependM;
+ private DependManager dependM=new DependManager();
// -------------------- from web.xml --------------------
// Those properties are not directly used in context