Enum Class DeclarationType
- All Implemented Interfaces:
Serializable,Comparable<DeclarationType>,Constable
Guice binding declaration type. Note that type could be different, depending if it's element taken with SPI
from guice module or binding from injector.
- Since:
- 13.08.2019
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAop interceptor registration (bindInterceptor(..)).Used for all types, instantiated by guice (mostly right sides).Dynamic binding, constructed from bound string constant (usingTypeConverter).Exposed binding from private module.Http filter registration by instance.Http filter registration by class.Instance binding (bing(Smth.class).toInstance(obj)).Linked binding declaration (bind(Smth.class).to(Other.class),, where Other may be already declared before as separate binding).Bound provider instance (bind(Smth.class).toProvider(obj)).Provider by key (bind(Smth.class).toProvider(DmthProv.class)).Provider method in module (annotated withProvides).ProvisionListenerregistration (bindListener(..)).Scope declaration (bindScope(...)).Http servlet registration by instance.Http servlet registration by class.TypeConverterregistration (convertToTypes(,,)).TypeListenerregistration (bindListener(..)).Untargetted binding (bind(Smth.class)). -
Method Summary
Modifier and TypeMethodDescriptionstatic DeclarationTypeClass<?>getType()booleanstatic DeclarationTypeReturns the enum constant of this class with the specified name.static DeclarationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Scope
Scope declaration (bindScope(...)). Appear only on module analysis. -
Instance
Instance binding (bing(Smth.class).toInstance(obj)). -
ProviderInstance
Bound provider instance (bind(Smth.class).toProvider(obj)). -
LinkedKey
Linked binding declaration (bind(Smth.class).to(Other.class),, where Other may be already declared before as separate binding). -
ProviderKey
Provider by key (bind(Smth.class).toProvider(DmthProv.class)). -
Untargetted
Untargetted binding (bind(Smth.class)). Appear only for module elements analysis. When queried binding from injector these bindings would beConstructorBinding(and detected asBindingbelow). -
Aop
Aop interceptor registration (bindInterceptor(..)). Appear only for module elements analysis. -
TypeListener
TypeListenerregistration (bindListener(..)). Appear only for module elements analysis. -
ProvisionListener
ProvisionListenerregistration (bindListener(..)). Appear only for module elements analysis. -
TypeConverter
TypeConverterregistration (convertToTypes(,,)). Appear only for module elements analysis. -
ProviderMethod
Provider method in module (annotated withProvides). -
Exposed
Exposed binding from private module. NOTE: only first level of exposed bindings are shown and so if private module use private module inside of it - second level exposures will not be visible in report! (logic: can't use - no need to see). Anyway, even on lower levels bindings will be marked as exposed (with a marker at the end). -
FilterKey
Http filter registration by class. This is not real binding, it could only be revealed with extensions target visitor. Real binding in injector is ignored (it's marked as internal). -
FilterInstance
Http filter registration by instance. This is not real binding, it could only be revealed with extensions target visitor. Real binding in injector is ignored (it's marked as internal). -
ServletKey
Http servlet registration by class. This is not real binding, it could only be revealed with extensions target visitor. Real binding in injector is ignored (it's marked as internal). -
ServletInstance
Http servlet registration by instance. This is not real binding, it could only be revealed with extensions target visitor. Real binding in injector is ignored (it's marked as internal). -
Binding
Used for all types, instantiated by guice (mostly right sides). Appear instead ofUntargettedbindings for bindings requested from injector. -
ConvertedConstant
Dynamic binding, constructed from bound string constant (usingTypeConverter).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isRuntimeBinding
public boolean isRuntimeBinding()- Returns:
- true for actual bindings in injector, false for configuration time elements (scopes, listeners).
-
getType
- Returns:
- binding type
-
detect
- Parameters:
type- guice element- Returns:
- detected type or null
-