KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > directwebremoting > spring > ConverterConfig


1 /*
2  * Copyright 2005-2006 Joe Walker
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.directwebremoting.spring;
18
19 /**
20  * The configuration for a Converter.
21  *
22  * It allows the specification of the following optional configuration parameters:
23  * <ul>
24  * <li>includes - the list of method names to include</li>
25  * <li>excludes - the list of method names to exclude</li>
26  * <li>force - if <code>true</code> instructs DWR to use reflection modifiers to access private
27  * members of objects</li>
28  * </ul>
29  *
30  * @author Brendan Grainger
31  * @author Joe Walker [joe at getahead dot ltd dot uk]
32  */

33 public class ConverterConfig extends AbstractConfig
34 {
35     /**
36      * Gets the converter type.
37      * @return Returns the converter type
38      */

39     public String JavaDoc getType()
40     {
41         return type;
42     }
43
44     /**
45      * Sets the converter type.
46      * @param converterType Sets the converter type
47      */

48     public void setType(String JavaDoc converterType)
49     {
50         this.type = converterType;
51     }
52
53     /**
54      * @return the javascriptClassName
55      */

56     public String JavaDoc getJavascriptClassName()
57     {
58         return javascriptClassName;
59     }
60
61     /**
62      * @param javascriptClassName the javascriptClassName to set
63      */

64     public void setJavascriptClassName(String JavaDoc javascriptClassName)
65     {
66         this.javascriptClassName = javascriptClassName;
67     }
68
69     /**
70      * If true DWR will use reflection modifiers to access private members of objects
71      * @return - Returns whether to use reflection for accessing private members
72      */

73     public boolean isForce()
74     {
75         return force;
76     }
77
78     /**
79      * Instruct DWR to use reflection modifiers to access private members of objects
80      *
81      * @param force - if true DWR will use reflection to access private members of objects
82      */

83     public void setForce(boolean force)
84     {
85         this.force = force;
86     }
87
88     /** The converter type. */
89     private String JavaDoc type;
90
91     /**
92      * If <code>true</code> instructs DWR to use reflection modifiers to access private members of objects
93      */

94     private boolean force = false;
95     
96     /**
97      * The javascriptClassName to set
98      */

99     private String JavaDoc javascriptClassName;
100
101 }
Popular Tags