Class DispatchingSchemaCheck
java.lang.Object
ch.tocco.nice2.model.entity.api.schema.AbstractDispatcher
ch.tocco.nice2.model.entity.api.schema.DispatchingSchemaCheck
- All Implemented Interfaces:
SchemaCheck
- Direct Known Subclasses:
ConstraintChecks
,CounterChecks
,FieldTypeChecks
,ManyToManyRelationChecks
,ManyToOneRelationChecks
,PrimaryKeyCheck
Dispatches
CheckEvent
s to public methods annotated with
Subscribe
and collects the
return values. Return values must be declared with either
CheckEvent
, Iterable<CheckEvent>
or
Iterable<? extends CheckEvent>
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Set
<com.google.common.reflect.TypeToken<?>> Iterable
<? extends CheckEvent> Methods inherited from class ch.tocco.nice2.model.entity.api.schema.AbstractDispatcher
consider, dispatch, getDispatchClass
-
Constructor Details
-
DispatchingSchemaCheck
public DispatchingSchemaCheck()
-
-
Method Details
-
allowedReturnTypes
- Overrides:
allowedReturnTypes
in classAbstractDispatcher
-
check
- Specified by:
check
in interfaceSchemaCheck
-