Package org.nuxeo.ecm.core.event.stream
Class DomainEventProducerDescriptor
- java.lang.Object
-
- org.nuxeo.ecm.core.event.stream.DomainEventProducerDescriptor
-
- All Implemented Interfaces:
Descriptor
public class DomainEventProducerDescriptor extends Object implements Descriptor
Defines a Domain Event Producer- Since:
- 11.4
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<? extends DomainEventProducer>
domainEventProducerClass
protected boolean
isEnabled
protected String
name
protected Map<String,String>
options
protected StreamProcessorDescriptor.StreamDescriptor
stream
-
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
-
Constructor Summary
Constructors Constructor Description DomainEventProducerDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
The descriptor id, descriptors with same id are merged.String
getName()
StreamProcessorDescriptor.StreamDescriptor
getStream()
boolean
isEnabled()
DomainEventProducer
newInstance()
void
setEnabled(boolean isEnabled)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove, merge
-
-
-
-
Field Detail
-
name
protected String name
-
isEnabled
protected boolean isEnabled
-
domainEventProducerClass
protected Class<? extends DomainEventProducer> domainEventProducerClass
-
stream
protected StreamProcessorDescriptor.StreamDescriptor stream
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean isEnabled)
-
newInstance
public DomainEventProducer newInstance()
-
getStream
public StreamProcessorDescriptor.StreamDescriptor getStream()
-
getName
public String getName()
-
-