public enum DeclarationType extends java.lang.Enum<DeclarationType>
| Enum Constant and Description |
|---|
Aop
Aop interceptor registration (
bindInterceptor(..)). |
Binding
Used for all types, instantiated by guice (mostly right sides).
|
ConvertedConstant
Dynamic binding, constructed from bound string constant (using
TypeConverter). |
Exposed
Exposed binding from private module.
|
FilterInstance
Http filter registration by instance.
|
FilterKey
Http filter registration by class.
|
Instance
Instance binding (
bing(Smth.class).toInstance(obj)). |
LinkedKey
Linked binding declaration (
bind(Smth.class).to(Other.class),, where Other may be alreadt declared
beforeas separate binding). |
ProviderInstance
Bound provider instance (
bind(Smth.class).toProvider(obj)). |
ProviderKey
Provider by key (
bind(Smth.class).toProvider(DmthProv.class)). |
ProviderMethod
Provider method in module (annotated with
Provides). |
ProvisionListener
ProvisionListener registration (bindListener(..)). |
Scope
Scope declaration (
bindScope(...)). |
ServletInstance
Http servlet registration by instance.
|
ServletKey
Http servlet registration by class.
|
TypeConverter
TypeConverter registration. |
TypeListener
TypeListener registration (bindListener(..)). |
Untargetted
Untargetted binding (
bind(Smth.class)). |
| Modifier and Type | Method and Description |
|---|---|
static DeclarationType |
detect(java.lang.Class<? extends com.google.inject.spi.Element> type) |
java.lang.Class<?> |
getType() |
boolean |
isRuntimeBinding() |
static DeclarationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DeclarationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeclarationType Scope
bindScope(...)). Appear only on module analysis.public static final DeclarationType Instance
bing(Smth.class).toInstance(obj)).public static final DeclarationType ProviderInstance
bind(Smth.class).toProvider(obj)).public static final DeclarationType LinkedKey
bind(Smth.class).to(Other.class),, where Other may be alreadt declared
beforeas separate binding).public static final DeclarationType ProviderKey
bind(Smth.class).toProvider(DmthProv.class)).public static final DeclarationType Untargetted
bind(Smth.class)). Appear only for module elements analysis.
When queried binding from injector these bindings would be ConstructorBinding
(and detected as Binding below).public static final DeclarationType Aop
bindInterceptor(..)). Appear only for module elements analysis.public static final DeclarationType TypeListener
TypeListener registration (bindListener(..)). Appear only for module elements analysis.public static final DeclarationType ProvisionListener
ProvisionListener registration (bindListener(..)). Appear only for module elements analysis.public static final DeclarationType TypeConverter
TypeConverter registration. Appear only for module elements analysis.public static final DeclarationType ProviderMethod
Provides).public static final DeclarationType Exposed
public static final DeclarationType FilterKey
public static final DeclarationType FilterInstance
public static final DeclarationType ServletKey
public static final DeclarationType ServletInstance
public static final DeclarationType Binding
Untargetted
bindings for bindings requested from injector.public static final DeclarationType ConvertedConstant
TypeConverter).public static DeclarationType[] values()
for (DeclarationType c : DeclarationType.values()) System.out.println(c);
public static DeclarationType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isRuntimeBinding()
public java.lang.Class<?> getType()
public static DeclarationType detect(java.lang.Class<? extends com.google.inject.spi.Element> type)
type - guice element