Class BindingDeclaration
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.debug.report.guice.model.BindingDeclaration
-
public class BindingDeclaration extends java.lang.ObjectGuice binding declaration.- Since:
- 13.08.2019
-
-
Constructor Summary
Constructors Constructor Description BindingDeclaration(DeclarationType type, java.lang.Object element)Create binding declaration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.ObjectgetElement()com.google.inject.KeygetKey()java.util.List<java.lang.String>getMarkers()java.lang.StringgetModule()java.lang.StringgetProvidedBy()java.lang.Class<? extends java.lang.annotation.Annotation>getScope()java.lang.StringgetSource()intgetSourceLine()java.util.List<?>getSpecial()com.google.inject.KeygetTarget()DeclarationTypegetType()inthashCode()voidsetKey(com.google.inject.Key key)voidsetModule(java.lang.String module)voidsetProvidedBy(java.lang.String providedBy)voidsetScope(java.lang.Class<? extends java.lang.annotation.Annotation> scope)voidsetSource(java.lang.String source)voidsetSourceLine(int sourceLine)voidsetSpecial(java.util.List<?> special)voidsetTarget(com.google.inject.Key target)java.lang.StringtoString()
-
-
-
Constructor Detail
-
BindingDeclaration
public BindingDeclaration(DeclarationType type, java.lang.Object element)
Create binding declaration.- Parameters:
type- binding typeelement- binding element
-
-
Method Detail
-
getType
public DeclarationType getType()
- Returns:
- binding type
-
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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-