|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NuitonValidatorProvider
Provider of NuitonValidator.
NuitonValidatorFactory and
should be registered via the ServiceLoader api.
NuitonValidatorModel,
NuitonValidator,
ServiceLoader| Method Summary | ||
|---|---|---|
SortedSet<NuitonValidator<?>> |
detectValidators(File sourceRoot,
Pattern contextFilter,
NuitonValidatorScope[] scopes,
Class<?>... types)
Detects in the given directory validators. |
|
|
getModel(Class<O> type,
String context,
NuitonValidatorScope... scopes)
Obtain a validator model, the model should be cached and not be reinstanciated at each time a validator model is asked. |
|
String |
getName()
Obtains the name of the provider. |
|
|
newModel(Class<O> type,
String context,
NuitonValidatorScope... scopes)
Instanciate a new validator model for the given parameters. |
|
|
newValidator(NuitonValidatorModel<O> model)
Obtains a new validator for the given model. |
|
| Method Detail |
|---|
String getName()
<O> NuitonValidatorModel<O> getModel(Class<O> type,
String context,
NuitonValidatorScope... scopes)
O - type of the class to validatetype - type of the class to validatecontext - context of validation (null if no context)scopes - filtered scope (if nothing given, then use all scopes)
<O> NuitonValidatorModel<O> newModel(Class<O> type,
String context,
NuitonValidatorScope... scopes)
O - type of the class to validatetype - type of the class to validatecontext - context of validation (null if no context)scopes - filtered scope (if nothing given, then use all scopes)
<O> NuitonValidator<O> newValidator(NuitonValidatorModel<O> model)
model.
O - type of class to validatemodel - the model of validator to use
SortedSet<NuitonValidator<?>> detectValidators(File sourceRoot,
Pattern contextFilter,
NuitonValidatorScope[] scopes,
Class<?>... types)
sourceRoot - root directory where to seek for validatorscontextFilter - the pattern of context to seekscopes - scopes to seek (if none given, will seek for all scopes)types - types of class to seek
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||