01: /**
02: * Copyright (C) 2001-2005 France Telecom R&D
03: */package org.objectweb.speedo.mim.ejb.lib;
04:
05: import org.objectweb.perseus.persistence.api.TransactionalPersistenceManager;
06: import org.objectweb.speedo.api.SpeedoRuntimeException;
07: import org.objectweb.speedo.lib.Personality;
08: import org.objectweb.speedo.mim.lib.AbstractHomeImpl;
09: import org.objectweb.speedo.pm.api.POManagerFactoryItf;
10:
11: /**
12: *
13: * @author dechampa
14: */
15: public abstract class EJBAbstractHomeImpl extends AbstractHomeImpl {
16:
17: public EJBAbstractHomeImpl() {
18: super (Personality.EJB);
19: }
20:
21: public EJBAbstractHomeImpl(TransactionalPersistenceManager atpm,
22: POManagerFactoryItf apmf) {
23: super (atpm, apmf);
24: }
25:
26: /**
27: * Adds a listener for the current class
28: * @param listener is the new listener
29: */
30: public void addInstanceLifeCycleListener(Object listener) {
31: throw new SpeedoRuntimeException(
32: "Dynamic listener adding is not supported in EJB personality of Speedo");
33: }
34:
35: /**
36: * Remove a listener for the current class
37: * @param listener is the listener to forget
38: */
39: public void removeInstanceLifeCycleListener(Object listener) {
40: throw new SpeedoRuntimeException(
41: "Dynamic listener removing is not supported in EJB personality of Speedo");
42: }
43:
44: public void sendEvent(int eventType, Object source, Object target) {
45: //do nothing by default
46: }
47:
48: public boolean hasInstanceLifeCycleListeners() {
49: return false;
50: }
51: }
|