e.g. Calendar Search Help
You must enter a value before pressing Search
tomcat

Class: org.apache.catalina.deploy.ContextTransaction   ©

 OK to copy?
001 /*
002  * Copyright 1999,2004 The Apache Software Foundation.
003  * 
004  * Licensed under the Apache License, Version 2.0 (the "License");
005  * you may not use this file except in compliance with the License.
006  * You may obtain a copy of the License at
007  * 
008  *      http://www.apache.org/licenses/LICENSE-2.0
009  * 
010  * Unless required by applicable law or agreed to in writing, software
011  * distributed under the License is distributed on an "AS IS" BASIS,
012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013  * See the License for the specific language governing permissions and
014  * limitations under the License.
015  */
016 
017 
018 package org.apache.catalina.deploy;
019 
020 import java.io.Serializable;
021 import java.util.HashMap;
022 import java.util.Iterator;
023 
024 
025 /**
026  * Representation of an application resource reference, as represented in
027  * an <code>&lt;res-env-refy&gt;</code> element in the deployment descriptor.
028  *
029  * @author Craig R. McClanahan
030  * @version $Revision: 1.1 $ $Date: 2004/07/26 16:04:02 $
031  */
032 
033 public class ContextTransaction implements Serializable {
034 
035 
036     // ------------------------------------------------------------- Properties
037 
038 
039     /**
040      * Holder for our configured properties.
041      */
042     private HashMap properties = new HashMap();
043 
044     /**
045      * Return a configured property.
046      */
047     public Object getProperty(String name) {
048         return properties.get(name);
049     }
050 
051     /**
052      * Set a configured property.
053      */
054     public void setProperty(String name, Object value) {
055         properties.put(name, value);
056     }
057 
058     /** 
059      * remove a configured property.
060      */
061     public void removeProperty(String name) {
062         properties.remove(name);
063     }
064 
065     /**
066      * List properties.
067      */
068     public Iterator listProperties() {
Rate069         return properties.keySet().iterator();
070     }
071     
072     
073     // --------------------------------------------------------- Public Methods
074 
075 
076     /**
077      * Return a String representation of this object.
078      */
079     public String toString() {
080 
081         StringBuffer sb = new StringBuffer("Transaction[");
082         sb.append("]");
083         return (sb.toString());
084 
085     }
086 
087 
088     // -------------------------------------------------------- Package Methods
089 
090 
091     /**
092      * The NamingResources with which we are associated (if any).
093      */
094     protected NamingResources resources = null;
095 
096     public NamingResources getNamingResources() {
097         return (this.resources);
098     }
099 
100     void setNamingResources(NamingResources resources) {
101         this.resources = resources;
102     }
103 
104 
105 }

            
All Examples in File:
Example
Line
Rating (found
useful by...)
69 0% of 0