Package org.eclipse.sisu.inject
Class HiddenSource
java.lang.Object
org.eclipse.sisu.inject.HiddenSource
- All Implemented Interfaces:
Annotation
,AnnotatedSource
Implementation of @
Hidden
that can also act as an @AnnotatedSource
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation>
boolean
<T extends Annotation>
TgetAnnotation
(com.google.inject.Binding<?> binding, Class<T> annotationType) Returns the annotation of the given type that is associated with the binding.int
hashCode()
toString()
-
Field Details
-
source
-
-
Constructor Details
-
HiddenSource
HiddenSource(Object source) - Parameters:
source
- The owning source
-
-
Method Details
-
annotationType
- Specified by:
annotationType
in interfaceAnnotation
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceAnnotation
- Overrides:
hashCode
in classObject
-
equals
- Specified by:
equals
in interfaceAnnotation
- Overrides:
equals
in classObject
-
toString
- Specified by:
toString
in interfaceAnnotation
- Overrides:
toString
in classObject
-
getAnnotation
public <T extends Annotation> T getAnnotation(com.google.inject.Binding<?> binding, Class<T> annotationType) Description copied from interface:AnnotatedSource
Returns the annotation of the given type that is associated with the binding.- Specified by:
getAnnotation
in interfaceAnnotatedSource
- Parameters:
binding
- The bindingannotationType
- The annotation type- Returns:
- The associated annotation;
null
if no such annotation exists
-