01: package org.vraptor.core;
02:
03: import org.vraptor.LogicDefinition;
04: import org.vraptor.component.ComponentType;
05: import org.vraptor.component.LogicMethod;
06:
07: /**
08: * The default logic definition implementation.
09: *
10: * @author Guilherme Silveira
11: */
12: public class DefaultLogicDefinition implements LogicDefinition {
13:
14: private final Object component;
15:
16: private final ComponentType componentType;
17:
18: private final LogicMethod method;
19:
20: private Object[] parameters;
21:
22: public DefaultLogicDefinition(Object component,
23: ComponentType componentType, LogicMethod method) {
24: this .component = component;
25: this .componentType = componentType;
26: this .method = method;
27: this .parameters = new Object[0];
28: }
29:
30: public Object getComponent() {
31: return component;
32: }
33:
34: public ComponentType getComponentType() {
35: return componentType;
36: }
37:
38: public LogicMethod getLogicMethod() {
39: return method;
40: }
41:
42: public Object[] getParameters() {
43: return parameters;
44: }
45:
46: public void setParameters(Object[] parameters) {
47: this.parameters = parameters;
48: }
49:
50: }
|