svn commit: r833608 - /tomcat/trunk/java/org/apache/catalina/deploy/ContextEnvironment.java

View: New views
1 Messages — Rating Filter:   Alert me  

svn commit: r833608 - /tomcat/trunk/java/org/apache/catalina/deploy/ContextEnvironment.java

by Mark Thomas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Author: markt
Date: Fri Nov  6 23:51:30 2009
New Revision: 833608

URL: http://svn.apache.org/viewvc?rev=833608&view=rev
Log:
More inheritance

Modified:
    tomcat/trunk/java/org/apache/catalina/deploy/ContextEnvironment.java

Modified: tomcat/trunk/java/org/apache/catalina/deploy/ContextEnvironment.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/deploy/ContextEnvironment.java?rev=833608&r1=833607&r2=833608&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/deploy/ContextEnvironment.java (original)
+++ tomcat/trunk/java/org/apache/catalina/deploy/ContextEnvironment.java Fri Nov  6 23:51:30 2009
@@ -18,10 +18,6 @@
 
 package org.apache.catalina.deploy;
 
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.List;
-
 
 /**
  * Representation of an application environment entry, as represented in
@@ -31,7 +27,7 @@
  * @version $Revision$ $Date$
  */
 
-public class ContextEnvironment implements Serializable, Injectable {
+public class ContextEnvironment extends ResourceBase {
 
     private static final long serialVersionUID = 1L;
 
@@ -39,34 +35,6 @@
 
 
     /**
-     * The description of this environment entry.
-     */
-    private String description = null;
-
-    public String getDescription() {
-        return (this.description);
-    }
-
-    public void setDescription(String description) {
-        this.description = description;
-    }
-
-
-    /**
-     * The name of this environment entry.
-     */
-    private String name = null;
-
-    public String getName() {
-        return (this.name);
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-
-
-    /**
      * Does this environment entry allow overrides by the application
      * deployment descriptor?
      */
@@ -82,20 +50,6 @@
 
 
     /**
-     * The type of this environment entry.
-     */
-    private String type = null;
-
-    public String getType() {
-        return (this.type);
-    }
-
-    public void setType(String type) {
-        this.type = type;
-    }
-
-
-    /**
      * The value of this environment entry.
      */
     private String value = null;
@@ -109,17 +63,6 @@
     }
 
 
-    private List<InjectionTarget> injectionTargets = new ArrayList<InjectionTarget>();
-
-    public void addInjectionTarget(String injectionTargetName, String jndiName) {
-        InjectionTarget target = new InjectionTarget(injectionTargetName, jndiName);
-        injectionTargets.add(target);
-    }
-
-    public List<InjectionTarget> getInjectionTargets() {
-        return injectionTargets;
-    }
-
     // --------------------------------------------------------- Public Methods
 
 
@@ -131,14 +74,14 @@
 
         StringBuilder sb = new StringBuilder("ContextEnvironment[");
         sb.append("name=");
-        sb.append(name);
-        if (description != null) {
+        sb.append(getName());
+        if (getDescription() != null) {
             sb.append(", description=");
-            sb.append(description);
+            sb.append(getDescription());
         }
-        if (type != null) {
+        if (getType() != null) {
             sb.append(", type=");
-            sb.append(type);
+            sb.append(getType());
         }
         if (value != null) {
             sb.append(", value=");
@@ -151,22 +94,4 @@
 
     }
 
-
-    // -------------------------------------------------------- Package Methods
-
-
-    /**
-     * The NamingResources with which we are associated (if any).
-     */
-    protected NamingResources resources = null;
-
-    public NamingResources getNamingResources() {
-        return (this.resources);
-    }
-
-    void setNamingResources(NamingResources resources) {
-        this.resources = resources;
-    }
-
-
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...