Top Fields Constructors Methods
org.jvnet.hk2.internal

public Class ValidationInformationImpl

extends Object
implements ValidationInformation
Class Inheritance
All Implemented Interfaces
org.glassfish.hk2.api.ValidationInformation
Imports
java.util.HashSet, org.glassfish.hk2.api.ActiveDescriptor, .Filter, .Injectee, .Operation, .ValidationInformation

Author
jwells

Field Summary

Modifier and TypeField and Description
private final ActiveDescriptor<?>
private static final String
private final Filter
private final Injectee
private final Operation
private static final HashSet<String>
private static final String
private static final String[]
private static final String

Constructor Summary

AccessConstructor and Description
public
ValidationInformationImpl(Operation
The operation to perform
operation
,
ActiveDescriptor<?>
The candidate to perform it on
candidate
,
Injectee
The injecteee that may be involved
injectee
,
Filter
The filter that may be involved in the lookup
filter
)

Creates the validation information

public
ValidationInformationImpl(Operation
The operation to perform
operation
,
ActiveDescriptor<?>
The candidate to perform it on
candidate
)

Creates the validation information

Method Summary

Modifier and TypeMethod and Description
public StackTraceElement
getCaller()

Implements org.glassfish.hk2.api.ValidationInformation.getCaller.

The implementation of this method is VERY dependent on the implementation of ServiceLocatorImpl.

public ActiveDescriptor<?>
getCandidate()

Implements org.glassfish.hk2.api.ValidationInformation.getCandidate.

The candidate descriptor for this operation

public Filter
getFilter()

Implements org.glassfish.hk2.api.ValidationInformation.getFilter.

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

public Injectee
getInjectee()

Implements org.glassfish.hk2.api.ValidationInformation.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
getOperation()

Implements org.glassfish.hk2.api.ValidationInformation.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
private String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

candidateback to summary
private final ActiveDescriptor<?> candidate
CHECK_METHODback to summary
private static final String CHECK_METHOD
filterback to summary
private final Filter filter
injecteeback to summary
private final Injectee injectee
operationback to summary
private final Operation operation
PACKAGES_TO_SKIPback to summary
private static final HashSet<String> PACKAGES_TO_SKIP
SERVICE_LOCATOR_IMPLback to summary
private static final String SERVICE_LOCATOR_IMPL
SKIP_MEback to summary
private static final String[] SKIP_ME
VALIDATE_METHODback to summary
private static final String VALIDATE_METHOD

Constructor Detail

ValidationInformationImplback to summary
public ValidationInformationImpl(Operation operation, ActiveDescriptor<?> candidate, Injectee injectee, Filter filter)

Creates the validation information

Parameters
operation:Operation

The operation to perform

candidate:ActiveDescriptor<?>

The candidate to perform it on

injectee:Injectee

The injecteee that may be involved

filter:Filter

The filter that may be involved in the lookup

ValidationInformationImplback to summary
public ValidationInformationImpl(Operation operation, ActiveDescriptor<?> candidate)

Creates the validation information

Parameters
operation:Operation

The operation to perform

candidate:ActiveDescriptor<?>

The candidate to perform it on

Method Detail

getCallerback to summary
public StackTraceElement getCaller()

Implements org.glassfish.hk2.api.ValidationInformation.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!

Annotations
@Override
getCandidateback to summary
public ActiveDescriptor<?> getCandidate()

Implements org.glassfish.hk2.api.ValidationInformation.getCandidate.

Doc from org.glassfish.hk2.api.ValidationInformation.getCandidate.

The candidate descriptor for this operation

Annotations
@Override
getFilterback to summary
public Filter getFilter()

Implements org.glassfish.hk2.api.ValidationInformation.getFilter.

Doc from org.glassfish.hk2.api.ValidationInformation.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

Annotations
@Override
getInjecteeback to summary
public Injectee getInjectee()

Implements org.glassfish.hk2.api.ValidationInformation.getInjectee.

Doc from org.glassfish.hk2.api.ValidationInformation.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

Annotations
@Override
getOperationback to summary
public Operation getOperation()

Implements org.glassfish.hk2.api.ValidationInformation.getOperation.

Doc from org.glassfish.hk2.api.ValidationInformation.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
Annotations
@Override
getPackageback to summary
private String getPackage(String name)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override