Package org.eclipse.sisu.plexus
Class RequirementImpl
- java.lang.Object
-
- org.eclipse.sisu.plexus.RequirementImpl
-
- All Implemented Interfaces:
java.lang.annotation.Annotation
public final class RequirementImpl extends java.lang.Object implements org.codehaus.plexus.component.annotations.RequirementRuntime implementation of Plexus @Requirementannotation.
-
-
Constructor Summary
Constructors Constructor Description RequirementImpl(java.lang.Class<?> role, boolean optional, java.lang.String... hints)Deprecated.RequirementImpl(org.eclipse.sisu.inject.DeferredClass<?> role, boolean optional, java.util.List<java.lang.String> hints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends java.lang.annotation.Annotation>annotationType()booleanequals(java.lang.Object rhs)inthashCode()java.lang.Stringhint()java.lang.String[]hints()booleanoptional()java.lang.Class<?>role()java.lang.StringtoString()
-
-
-
Constructor Detail
-
RequirementImpl
public RequirementImpl(org.eclipse.sisu.inject.DeferredClass<?> role, boolean optional, java.util.List<java.lang.String> hints)
-
RequirementImpl
@Deprecated public RequirementImpl(java.lang.Class<?> role, boolean optional, java.lang.String... hints)Deprecated.For testing purposes only.
-
-
Method Detail
-
role
public java.lang.Class<?> role()
-
optional
public boolean optional()
-
hint
public java.lang.String hint()
-
hints
public java.lang.String[] hints()
-
equals
public boolean equals(java.lang.Object rhs)
- Specified by:
equalsin interfacejava.lang.annotation.Annotation- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.lang.annotation.Annotation- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacejava.lang.annotation.Annotation- Overrides:
toStringin classjava.lang.Object
-
annotationType
public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
- Specified by:
annotationTypein interfacejava.lang.annotation.Annotation
-
-