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 Object
implements RemoteCommitProvider, Configurable
Abstract implementation of
RemoteCommitProvider
. Obtains handles
to the event manager and log.- Since:
- 0.2.5.0
- Author:
- Patrick Linskey
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Set the "owning" remote event manager to notify when remote events are received from remote sources.void
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 Details
-
eventManager
-
log
-
-
Constructor Details
-
AbstractRemoteCommitProvider
public AbstractRemoteCommitProvider()
-
-
Method Details
-
setConfiguration
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
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
Fire a remote commit event via the cached event manager.
-