Package org.eclipse.sisu.plexus
Class RequirementImpl
- java.lang.Object
-
- org.eclipse.sisu.plexus.RequirementImpl
-
- All Implemented Interfaces:
Annotation
public final class RequirementImpl extends Object implements org.codehaus.plexus.component.annotations.Requirement
Runtime implementation of Plexus @Requirement
annotation.
-
-
Constructor Summary
Constructors Constructor Description RequirementImpl(Class<?> role, boolean optional, String... hints)
Deprecated.RequirementImpl(DeferredClass<?> role, boolean optional, List<String> hints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Annotation>
annotationType()
boolean
equals(Object rhs)
int
hashCode()
String
hint()
String[]
hints()
boolean
optional()
Class<?>
role()
String
toString()
-
-
-
Constructor Detail
-
RequirementImpl
public RequirementImpl(DeferredClass<?> role, boolean optional, List<String> hints)
-
RequirementImpl
@Deprecated public RequirementImpl(Class<?> role, boolean optional, String... hints)
Deprecated.For testing purposes only.
-
-
Method Detail
-
role
public Class<?> role()
-
optional
public boolean optional()
-
hint
public String hint()
-
hints
public String[] hints()
-
equals
public boolean equals(Object rhs)
- Specified by:
equals
in interfaceAnnotation
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceAnnotation
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceAnnotation
- Overrides:
toString
in classObject
-
annotationType
public Class<? extends Annotation> annotationType()
- Specified by:
annotationType
in interfaceAnnotation
-
-