org.jvnet.hk2.internal
Class ValidationInformationImpl

java.lang.Object
  extended by org.jvnet.hk2.internal.ValidationInformationImpl
All Implemented Interfaces:
ValidationInformation

public class ValidationInformationImpl
extends Object
implements ValidationInformation

Author:
jwells

Constructor Summary
ValidationInformationImpl(Operation operation, ActiveDescriptor<?> candidate)
          Creates the validation information
ValidationInformationImpl(Operation operation, ActiveDescriptor<?> candidate, Injectee injectee, Filter filter)
          Creates the validation information
 
Method Summary
 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
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationInformationImpl

public ValidationInformationImpl(Operation operation,
                                 ActiveDescriptor<?> candidate,
                                 Injectee injectee,
                                 Filter filter)
Creates the validation information

Parameters:
operation - The operation to perform
candidate - The candidate to perform it on
injectee - The injecteee that may be involved
filter - The filter that may be involved in the lookup

ValidationInformationImpl

public ValidationInformationImpl(Operation operation,
                                 ActiveDescriptor<?> candidate)
Creates the validation information

Parameters:
operation - The operation to perform
candidate - The candidate to perform it on
Method Detail

getOperation

public Operation getOperation()
Description copied from interface: ValidationInformation
The operation that is to be performed, one of

Specified by:
getOperation in interface ValidationInformation
Returns:
The operation being performed

getCandidate

public ActiveDescriptor<?> getCandidate()
Description copied from interface: ValidationInformation
The candidate descriptor for this operation

Specified by:
getCandidate in interface ValidationInformation
Returns:
The candidate descriptor for the operation being performed

getInjectee

public Injectee getInjectee()
Description copied from interface: ValidationInformation
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

Specified by:
getInjectee in interface ValidationInformation
Returns:
The injection point being injected into on a LOOKUP operation

getFilter

public Filter getFilter()
Description copied from interface: ValidationInformation
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

Specified by:
getFilter in interface ValidationInformation
Returns:
The filter used in the lookup operation

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Oracle Corporation. All Rights Reserved.