Package org.nuxeo.audit.mongodb
Class MongoDBAuditBackendFactory
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.audit.mongodb.MongoDBAuditBackendFactory
- All Implemented Interfaces:
AuditBackendFactory<MongoDBAuditBackend>,Adaptable,Component,Extensible,TimestampedService
public class MongoDBAuditBackendFactory
extends DefaultComponent
implements AuditBackendFactory<MongoDBAuditBackend>
- Since:
- 2025.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<String, MongoDBAuditBackend> protected static final StringFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAuditBackend(String name) instantiateBackend(MongoDBAuditBackendDescriptor descriptor) voidstart(ComponentContext context) Start the component.voidstop(ComponentContext context) Stop the component.Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterContribution, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.audit.service.AuditBackendFactory
getApplicationStartedOrderMethods inherited from interface org.nuxeo.runtime.model.Component
activate, deactivate, setNameMethods inherited from interface org.nuxeo.runtime.model.Extensible
registerExtension, unregisterExtensionMethods inherited from interface org.nuxeo.runtime.service.TimestampedService
getLastModified, setLastModified
-
Field Details
-
XP_BACKEND
- See Also:
-
backends
-
-
Constructor Details
-
MongoDBAuditBackendFactory
public MongoDBAuditBackendFactory()
-
-
Method Details
-
start
Description copied from interface:ComponentStart the component. This method is called after all the components were resolved and activated- Specified by:
startin interfaceComponent- Overrides:
startin classDefaultComponent
-
instantiateBackend
protected MongoDBAuditBackendFactory.MongoDBAuditBackendWithName instantiateBackend(MongoDBAuditBackendDescriptor descriptor) -
stop
Description copied from interface:ComponentStop the component.- Specified by:
stopin interfaceComponent- Overrides:
stopin classDefaultComponent
-
getAuditBackend
- Specified by:
getAuditBackendin interfaceAuditBackendFactory<MongoDBAuditBackend>- Returns:
- the
AuditBackendwith the givenname
-