01: /*
02: * Copyright 2006 Davide Deidda
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: /*
18: * PersistenceEvent.java
19: *
20: * Created on 10 aprile 2005, 16.50
21: */
22:
23: package it.biobytes.ammentos.event;
24:
25: /**
26: *
27: * @author davide
28: */
29: public class PersistenceEvent {
30: private Object m_object;
31: private EventType m_type;
32:
33: /** Creates a new instance of PersistenceEvent */
34: public PersistenceEvent(Object obj, EventType type) {
35: m_object = obj;
36: m_type = type;
37: }
38:
39: public Object getObject() {
40: return m_object;
41: }
42:
43: public EventType getType() {
44: return m_type;
45: }
46:
47: }
|