01: /*
02: * Copyright 2006 Luca Garulli (luca.garulli@assetdata.it)
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: package org.romaframework.module.schedulerquartz.domain;
17:
18: import java.util.Date;
19: import java.util.Map;
20:
21: import org.romaframework.aspect.core.annotation.AnnotationConstants;
22: import org.romaframework.aspect.core.annotation.CoreClass;
23: import org.romaframework.aspect.scheduler.SchedulerEvent;
24: import org.romaframework.aspect.view.annotation.ViewField;
25:
26: @CoreClass(orderFields="name rule implementation")
27: public class QuartzSchedulerEvent implements SchedulerEvent {
28:
29: protected String name;
30:
31: protected String rule;
32:
33: protected Date startTime;
34:
35: @ViewField(visible=AnnotationConstants.FALSE)
36: protected String implementation;
37:
38: @ViewField(visible=AnnotationConstants.FALSE)
39: protected Map<String, Object> context;
40:
41: public String getRule() {
42: return rule;
43: }
44:
45: public void setRule(String rule) {
46: this .rule = rule;
47: }
48:
49: public String getImplementation() {
50: return implementation;
51: }
52:
53: public void setImplementation(String implementation) {
54: this .implementation = implementation;
55: }
56:
57: public String getName() {
58: return name;
59: }
60:
61: public void setName(String name) {
62: this .name = name;
63: }
64:
65: public Date getStartTime() {
66: return startTime;
67: }
68:
69: public void setStartTime(Date startTime) {
70: this .startTime = startTime;
71: }
72:
73: public Map<String, Object> getContext() {
74: return context;
75: }
76:
77: public void setContext(Map<String, Object> params) {
78: this.context = params;
79: }
80:
81: }
|