org.sonatype.guice.plexus.annotations
Class RequirementImpl
java.lang.Object
org.sonatype.guice.plexus.annotations.RequirementImpl
- All Implemented Interfaces:
- Annotation, org.codehaus.plexus.component.annotations.Requirement
public final class RequirementImpl
- extends Object
- implements org.codehaus.plexus.component.annotations.Requirement
Runtime implementation of Plexus @Requirement
annotation.
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.
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 interface Annotation
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Annotation
- Overrides:
hashCode
in class Object
toString
public String toString()
- Specified by:
toString
in interface Annotation
- Overrides:
toString
in class Object
annotationType
public Class<? extends Annotation> annotationType()
- Specified by:
annotationType
in interface Annotation
Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.