public class ServiceImpl extends Object implements ServiceSPI
ServiceSPI.HandlerRegistration| Constructor and Description |
|---|
ServiceImpl(String name) |
ServiceImpl(String name,
Service delegator) |
| Modifier and Type | Method and Description |
|---|---|
void |
after(EventPredicate matcher,
Handler handler) |
void |
after(String[] events,
String[] entities,
int order,
Handler handler) |
void |
before(EventPredicate matcher,
Handler handler) |
void |
before(String[] events,
String[] entities,
int order,
Handler handler) |
protected void |
dispatch(EventContext context) |
protected void |
dispatchInChangeSetContext(EventContext context) |
void |
emit(EventContext context) |
CdsRuntime |
getCdsRuntime()
Returns the
CdsRuntime this Service belongs to. |
String |
getName() |
void |
on(EventPredicate matcher,
Handler handler) |
void |
on(String[] events,
String[] entities,
int order,
Handler handler) |
Stream<ServiceSPI.HandlerRegistration> |
registrations(Phase phase)
|
void |
setCdsRuntime(CdsRuntime runtime)
Makes the
CdsRuntime known to the Service |
public ServiceImpl(String name)
public void setCdsRuntime(CdsRuntime runtime)
ServiceSPICdsRuntime known to the ServicesetCdsRuntime in interface ServiceSPIruntime - the CdsRuntimepublic CdsRuntime getCdsRuntime()
ServiceSPICdsRuntime this Service belongs to.getCdsRuntime in interface ServiceSPICdsRuntime instance.public void before(EventPredicate matcher, Handler handler)
public void on(EventPredicate matcher, Handler handler)
public void after(EventPredicate matcher, Handler handler)
public void emit(EventContext context)
protected void dispatchInChangeSetContext(EventContext context)
protected void dispatch(EventContext context)
public Stream<ServiceSPI.HandlerRegistration> registrations(Phase phase)
ServiceSPIregistrations in interface ServiceSPIphase - The phase the registrations refer toCopyright © 2023. All rights reserved.