Package org.apache.openjpa.event
Class AbstractRemoteCommitProvider
- java.lang.Object
-
- org.apache.openjpa.event.AbstractRemoteCommitProvider
-
- All Implemented Interfaces:
RemoteCommitProvider
,Configurable
,Closeable
- Direct Known Subclasses:
JMSRemoteCommitProvider
,SingleJVMRemoteCommitProvider
,TCPRemoteCommitProvider
public abstract class AbstractRemoteCommitProvider extends java.lang.Object implements RemoteCommitProvider, Configurable
Abstract implementation ofRemoteCommitProvider
. Obtains handles to the event manager and log.- Since:
- 0.2.5.0
- Author:
- Patrick Linskey
-
-
Field Summary
Fields Modifier and Type Field Description protected RemoteCommitEventManager
eventManager
protected Log
log
-
Constructor Summary
Constructors Constructor Description AbstractRemoteCommitProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endConfiguration()
Invoked upon completion of bean property configuration for this object.protected void
fireEvent(RemoteCommitEvent event)
Fire a remote commit event via the cached event manager.void
setConfiguration(Configuration config)
Invoked prior to setting bean properties.void
setRemoteCommitEventManager(RemoteCommitEventManager mgr)
Set the "owning" remote event manager to notify when remote events are received from remote sources.void
startConfiguration()
Invoked before bean property configuration is begun on this object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.openjpa.event.RemoteCommitProvider
broadcast, close
-
-
-
-
Field Detail
-
eventManager
protected RemoteCommitEventManager eventManager
-
log
protected Log log
-
-
Method Detail
-
setConfiguration
public void setConfiguration(Configuration config)
Description copied from interface:Configurable
Invoked prior to setting bean properties.- Specified by:
setConfiguration
in interfaceConfigurable
-
startConfiguration
public void startConfiguration()
Description copied from interface:Configurable
Invoked before bean property configuration is begun on this object.- Specified by:
startConfiguration
in interfaceConfigurable
-
endConfiguration
public void endConfiguration()
Description copied from interface:Configurable
Invoked upon completion of bean property configuration for this object.- Specified by:
endConfiguration
in interfaceConfigurable
-
setRemoteCommitEventManager
public void setRemoteCommitEventManager(RemoteCommitEventManager mgr)
Description copied from interface:RemoteCommitProvider
Set the "owning" remote event manager to notify when remote events are received from remote sources.- Specified by:
setRemoteCommitEventManager
in interfaceRemoteCommitProvider
-
fireEvent
protected void fireEvent(RemoteCommitEvent event)
Fire a remote commit event via the cached event manager.
-
-