Package org.jvnet.hk2.internal
Class ValidationInformationImpl
java.lang.Object
org.jvnet.hk2.internal.ValidationInformationImpl
- All Implemented Interfaces:
ValidationInformation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionValidationInformationImpl(Operation operation, ActiveDescriptor<?> candidate) Creates the validation informationValidationInformationImpl(Operation operation, ActiveDescriptor<?> candidate, Injectee injectee, Filter filter) Creates the validation information -
Method Summary
Modifier and TypeMethodDescriptionThe implementation of this method is VERY dependent on the implementation of ServiceLocatorImpl.The candidate descriptor for this operationOn a LOOKUP operation theFilterthat was used in the lookup operation.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-nullInjecteethat is the injection point that would be injected intoThe 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 upprivate StringgetPackage(String name) toString()
-
Field Details
-
SERVICE_LOCATOR_IMPL
- See Also:
-
VALIDATE_METHOD
- See Also:
-
CHECK_METHOD
- See Also:
-
SKIP_ME
-
PACKAGES_TO_SKIP
-
operation
-
candidate
-
injectee
-
filter
-
-
Constructor Details
-
ValidationInformationImpl
public ValidationInformationImpl(Operation operation, ActiveDescriptor<?> candidate, Injectee injectee, Filter filter) Creates the validation information- Parameters:
operation- The operation to performcandidate- The candidate to perform it oninjectee- The injecteee that may be involvedfilter- The filter that may be involved in the lookup
-
ValidationInformationImpl
Creates the validation information- Parameters:
operation- The operation to performcandidate- The candidate to perform it on
-
-
Method Details
-
getOperation
Description copied from interface:ValidationInformationThe 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
- Specified by:
getOperationin interfaceValidationInformation- Returns:
- The operation being performed
-
getCandidate
Description copied from interface:ValidationInformationThe candidate descriptor for this operation- Specified by:
getCandidatein interfaceValidationInformation- Returns:
- The candidate descriptor for the operation being performed
-
getInjectee
Description copied from interface:ValidationInformationOn 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-nullInjecteethat is the injection point that would be injected into- Specified by:
getInjecteein interfaceValidationInformation- Returns:
- The injection point being injected into on a LOOKUP operation
-
getFilter
Description copied from interface:ValidationInformationOn a LOOKUP operation theFilterthat was used in the lookup operation. This may give more information about what exactly was being looked up by the caller- Specified by:
getFilterin interfaceValidationInformation- Returns:
- The filter used in the lookup operation
-
getPackage
-
getCaller
The implementation of this method is VERY dependent on the implementation of ServiceLocatorImpl. Any refactoring of ServiceLocatorImpl having to do with validation will likely cause this code to break. Hopefully the unit tests will catch any such failures!- Specified by:
getCallerin interfaceValidationInformation- Returns:
- The caller of the HK2 API that caused this validation to occur, or null if the caller could not be determined
-
toString
-