org.sonatype.guice.plexus.annotations
Class RequirementImpl

java.lang.Object
  extended by 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.


Constructor Summary
RequirementImpl(Class<?> role, boolean optional, String... hints)
          Deprecated. 
RequirementImpl(DeferredClass<?> role, boolean optional, List<String> hints)
           
 
Method Summary
 Class<? extends Annotation> annotationType()
           
 boolean equals(Object rhs)
           
 int hashCode()
           
 String hint()
           
 String[] hints()
           
 boolean optional()
           
 Class<?> role()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 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-2012 Sonatype, Inc.. All Rights Reserved.