public interface ValidationInformation
Modifier and Type | Method and Description |
---|---|
StackTraceElement |
getCaller()
This method attempts to return the StackTraceElement
of the code calling the HK2 method that caused
this validation to occur
|
ActiveDescriptor<?> |
getCandidate()
The candidate descriptor for this operation
|
Filter |
getFilter()
On a LOOKUP operation the
Filter that was used in the
lookup operation. |
Injectee |
getInjectee()
On a LOOKUP operation if the lookup is being performed due to an
injection point (as opposed to a lookup via the API) then this
method will return a non-null
Injectee that is the injection
point that would be injected into |
Operation |
getOperation()
The operation that is to be performed, one of
BIND - The candidate descriptor is being added to the system
UNBIND - The candidate descriptor is being removed from the system
LOOKUP - The candidate descriptor is being looked up
|
Operation getOperation()
ActiveDescriptor<?> getCandidate()
Injectee getInjectee()
Injectee
that is the injection
point that would be injected intoFilter getFilter()
Filter
that was used in the
lookup operation. This may give more information about what
exactly was being looked up by the callerStackTraceElement getCaller()
This method may not work properly if called outside
of the call frame of the Validator.validate(ValidationInformation)
method
Copyright © 2009–2019 Oracle Corporation. All rights reserved.