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