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.Requirement
Runtime implementation of Plexus @Requirement
annotation.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
hint
private java.lang.String[]
hints
private boolean
optional
private DeferredClass<?>
role
-
Constructor Summary
Constructors Constructor Description RequirementImpl(java.lang.Class<?> role, boolean optional, java.lang.String... hints)
Deprecated.RequirementImpl(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()
boolean
equals(java.lang.Object rhs)
int
hashCode()
java.lang.String
hint()
java.lang.String[]
hints()
boolean
optional()
java.lang.Class<?>
role()
java.lang.String
toString()
-
-
-
Field Detail
-
role
private final DeferredClass<?> role
-
optional
private final boolean optional
-
hint
private final java.lang.String hint
-
hints
private final java.lang.String[] hints
-
-
Constructor Detail
-
RequirementImpl
public RequirementImpl(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:
equals
in interfacejava.lang.annotation.Annotation
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.lang.annotation.Annotation
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.lang.annotation.Annotation
- Overrides:
toString
in classjava.lang.Object
-
annotationType
public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
- Specified by:
annotationType
in interfacejava.lang.annotation.Annotation
-
-