An implementation of ValidationService must be in the Singleton scope.
Implementations of ValidationService will be instantiated as soon as
they are added to HK2 in order to avoid deadlocks and circular references.
Therefore it is recommended that implementations of ValidationService
make liberal use of jakarta. or IterableProvider
when injecting dependent services so that these services are not instantiated
when the ValidationService is created
| Modifier and Type | Method and Description |
|---|---|
| public Filter | Returns: The filter to be used to determine if the validators associated with this service should be called when the passed inDescriptor is looked upThis filter will be run at least once per descriptor at the point that the descriptor
is being looked up, either with the |
| public Validator | Returns: A non-null validatorReturns the |
| getLookupFilter | back to summary |
|---|---|
| public Filter getLookupFilter() This filter will be run at least once per descriptor at the point that the descriptor
is being looked up, either with the Descriptors passed to this filter may or may not be reified. The filter should try as much as possible to do its work without reifying the descriptor. The filter may be run more than once on a descriptor if some condition caused the cache of results per descriptor to become invalidated.
| |
| getValidator | back to summary |
|---|---|
| public Validator getValidator() Returns the
| |