Class 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • 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 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