Top Description Methods
org.glassfish.hk2.api

public Interface ValidationInformation


This object contains information about the validation point. The values available may vary depending on the type of operation.
Author
jwells

Method Summary

Modifier and TypeMethod and Description
public StackTraceElement

Returns:

The caller of the HK2 API that caused this validation to occur, or null if the caller could not be determined
getCaller
()

This method attempts to return the StackTraceElement of the code calling the HK2 method that caused this validation to occur

This method may not work properly if called outside of the call frame of the Validator#validate(ValidationInformation) method

public ActiveDescriptor<?>

Returns:

The candidate descriptor for the operation being performed
getCandidate
()

The candidate descriptor for this operation

public Filter

Returns:

The filter used in the lookup operation
getFilter
()

On a LOOKUP operation the Filter that was used in the lookup operation.

public Injectee

Returns:

The injection point being injected into on a LOOKUP operation
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

public Operation

Returns:

The operation being performed
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

Method Detail

getCallerback to summary
public StackTraceElement getCaller()

This method attempts to return the StackTraceElement of the code calling the HK2 method that caused this validation to occur

This method may not work properly if called outside of the call frame of the Validator#validate(ValidationInformation) method

Returns:StackTraceElement

The caller of the HK2 API that caused this validation to occur, or null if the caller could not be determined

getCandidateback to summary
public ActiveDescriptor<?> getCandidate()

The candidate descriptor for this operation

Returns:ActiveDescriptor<?>

The candidate descriptor for the operation being performed

getFilterback to summary
public Filter getFilter()

On a LOOKUP operation the Filter that was used in the lookup operation. This may give more information about what exactly was being looked up by the caller

Returns:Filter

The filter used in the lookup operation

getInjecteeback to summary
public 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

Returns:Injectee

The injection point being injected into on a LOOKUP operation

getOperationback to summary
public 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
Returns:Operation

The operation being performed