public class CommitLogModuleExtender extends Object
CommitLogModule that customizes its services and installs
application-specific commit log listeners.| Modifier and Type | Method and Description |
|---|---|
CommitLogModuleExtender |
addListener(Class<? extends CommitLogListener> type) |
CommitLogModuleExtender |
addListener(CommitLogListener instance) |
CommitLogModuleExtender |
commitLogAnnotationEntitiesOnly()
Installs entity filter that would only include entities annotated with
CommitLog on the callbacks. |
CommitLogModuleExtender |
entityFactory(Class<? extends CommitLogEntityFactory> entityFactoryType)
Installs a custom factory for
CommitLogEntity objects that
allows implementors to use their own annotations, etc. |
CommitLogModuleExtender |
excludeFromTransaction()
If called, events will be dispatched outside of the main commit
transaction.
|
org.apache.cayenne.di.Module |
module()
Creates a DI module that would install
CommitLogFilter and its
listeners in Cayenne. |
public CommitLogModuleExtender addListener(Class<? extends CommitLogListener> type)
public CommitLogModuleExtender addListener(CommitLogListener instance)
public CommitLogModuleExtender excludeFromTransaction()
public CommitLogModuleExtender commitLogAnnotationEntitiesOnly()
CommitLog on the callbacks. Also CommitLog.confidential()
properties will be obfuscated and CommitLog.ignoredProperties() -
excluded from the change collection.public CommitLogModuleExtender entityFactory(Class<? extends CommitLogEntityFactory> entityFactoryType)
CommitLogEntity objects that
allows implementors to use their own annotations, etc.public org.apache.cayenne.di.Module module()
CommitLogFilter and its
listeners in Cayenne.Copyright © 2001–2018 Apache Cayenne. All rights reserved.