01: /*
02: * Copyright 2005-2006 Joe Walker
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: * Gets the converter type.
36: * @return Returns the converter type
37: */
38: public String getType() {
39: return type;
40: }
41:
42: /**
43: * Sets the converter type.
44: * @param converterType Sets the converter type
45: */
46: public void setType(String converterType) {
47: this .type = converterType;
48: }
49:
50: /**
51: * @return the javascriptClassName
52: */
53: public String getJavascriptClassName() {
54: return javascriptClassName;
55: }
56:
57: /**
58: * @param javascriptClassName the javascriptClassName to set
59: */
60: public void setJavascriptClassName(String javascriptClassName) {
61: this .javascriptClassName = javascriptClassName;
62: }
63:
64: /**
65: * If true DWR will use reflection modifiers to access private members of objects
66: * @return - Returns whether to use reflection for accessing private members
67: */
68: public boolean isForce() {
69: return force;
70: }
71:
72: /**
73: * Instruct DWR to use reflection modifiers to access private members of objects
74: *
75: * @param force - if true DWR will use reflection to access private members of objects
76: */
77: public void setForce(boolean force) {
78: this .force = force;
79: }
80:
81: /** The converter type. */
82: private String type;
83:
84: /**
85: * If <code>true</code> instructs DWR to use reflection modifiers to access private members of objects
86: */
87: private boolean force = false;
88:
89: /**
90: * The javascriptClassName to set
91: */
92: private String javascriptClassName;
93:
94: }
|