Class BindingDeclaration


  • public class BindingDeclaration
    extends java.lang.Object
    Guice binding declaration.
    Since:
    13.08.2019
    • Constructor Detail

      • BindingDeclaration

        public BindingDeclaration​(DeclarationType type,
                                  java.lang.Object element)
        Create binding declaration.
        Parameters:
        type - binding type
        element - binding element
    • Method Detail

      • getElement

        public java.lang.Object getElement()
        Returns:
        binding element
      • getKey

        public com.google.inject.Key getKey()
        Returns:
        binding key
      • setKey

        public void setKey​(com.google.inject.Key key)
        Parameters:
        key - binding key
      • getTarget

        public com.google.inject.Key getTarget()
        Returns:
        target key for linked bindings or null
      • setTarget

        public void setTarget​(com.google.inject.Key target)
        Parameters:
        target - target key
      • getProvidedBy

        public java.lang.String getProvidedBy()
        Returns:
        provider key (render) or another provider identity, otherwise null
      • setProvidedBy

        public void setProvidedBy​(java.lang.String providedBy)
        Parameters:
        providedBy - rendered provider key or another provider identity
      • getScope

        public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
        Returns:
        binding scope
      • setScope

        public void setScope​(java.lang.Class<? extends java.lang.annotation.Annotation> scope)
        Parameters:
        scope - binding scope
      • getSource

        public java.lang.String getSource()
        Returns:
        binding declaration source
      • setSource

        public void setSource​(java.lang.String source)
        Parameters:
        source - binding declaration source
      • getSourceLine

        public int getSourceLine()
        Returns:
        binding declaration source line
      • setSourceLine

        public void setSourceLine​(int sourceLine)
        Parameters:
        sourceLine - binding declaration source line
      • getSpecial

        public java.util.List<?> getSpecial()
        Returns:
        additional binding data (type listener, provision listener or aop interceptors declaration bindings. etc.)
      • setSpecial

        public void setSpecial​(java.util.List<?> special)
        Parameters:
        special - special binding data
      • getMarkers

        public java.util.List<java.lang.String> getMarkers()
        Returns:
        binding markers (OVERRIDE, OVERRIDDEN, EXTENSION, REMOVED)
      • getModule

        public java.lang.String getModule()
        Returns:
        module name
      • setModule

        public void setModule​(java.lang.String module)
        Parameters:
        module - module name
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object