01: package org.vraptor.component;
02:
03: /**
04: * Encapsulates the componentInstantiatedObject type, logic and the instatiated object itself.
05: *
06: * @author Paulo Silveira
07: *
08: */
09: public class Component {
10:
11: private final ComponentType componentType;
12:
13: private final LogicMethod logicMethod;
14:
15: public Component(ComponentType componentType,
16: LogicMethod logicMethod) {
17: this .componentType = componentType;
18: this .logicMethod = logicMethod;
19: }
20:
21: /**
22: * The componentInstantiatedObject type used to instantiate this componentInstantiatedObject
23: *
24: * @return
25: */
26: public ComponentType getComponentType() {
27: return componentType;
28: }
29:
30: /**
31: * The method that should be invoked in this componentInstantiatedObject
32: *
33: * @return
34: */
35: public LogicMethod getLogicMethod() {
36: return logicMethod;
37: }
38:
39: }
|