|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.inject.rebind.binding.BindConstantBinding
public class BindConstantBinding
Binding for a constant value.
Constructor Summary | |
---|---|
BindConstantBinding(SourceWriteUtil sourceWriteUtil)
|
Method Summary | ||
---|---|---|
RequiredKeys |
getRequiredKeys()
|
|
static boolean |
isConstantKey(Key<?> key)
Returns true if the provided key is a valid constant key, i.e. |
|
|
setKeyAndInstance(Key<T> key,
T instance)
Sets this binding's key and instance. |
|
void |
writeCreatorMethods(com.google.gwt.user.rebind.SourceWriter writer,
java.lang.String creatorMethodSignature)
Writes the method necessary to create the binding's type to the writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public BindConstantBinding(SourceWriteUtil sourceWriteUtil)
Method Detail |
---|
public static boolean isConstantKey(Key<?> key)
key
- key to check
public <T> void setKeyAndInstance(Key<T> key, T instance)
key
- key to bind toinstance
- value to bind topublic void writeCreatorMethods(com.google.gwt.user.rebind.SourceWriter writer, java.lang.String creatorMethodSignature)
Binding
creatorMethodSignature
must be written,
other methods are optional.
writeCreatorMethods
in interface Binding
writer
- writer that methods are written tocreatorMethodSignature
- signature of method that needs to be createdpublic RequiredKeys getRequiredKeys()
getRequiredKeys
in interface Binding
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |