|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acme.security.ValidationServiceImpl
@Service @Singleton public class ValidationServiceImpl
An implementation of the security service that uses permission checks for everything
Constructor Summary | |
---|---|
ValidationServiceImpl()
|
Method Summary | |
---|---|
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 ServiceLocator API or due to
an @Inject resolution. |
Validator |
getValidator()
Returns the Validator that will be run whenever
a Descriptor that passed the filter is to be looked up with the API
or injected into an injection point, or on any bind or unbind operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidationServiceImpl()
Method Detail |
---|
public Filter getLookupFilter()
ValidationService
ServiceLocator
API or due to
an @Inject resolution. The decision made by this filter will be cached and
used every time that Descriptor is subsequently looked up. No validation checks
should be done in the returned filter, it is purely meant to limit the
Descriptor
s that are passed into the validator.
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.
getLookupFilter
in interface ValidationService
Descriptor
is looked uppublic Validator getValidator()
ValidationService
Validator
that will be run whenever
a Descriptor
that passed the filter is to be looked up with the API
or injected into an injection point, or on any bind or unbind operation.
If this method returns false then the operation will not proceed.
getValidator
in interface ValidationService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |