public abstract class AbstractModule extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractModule(Key key)
Creates a module using the argument as id of the adapter.
|
protected |
AbstractModule(String id)
Creates a module using the argument as id of the adapter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getId()
Returns the id of the adapter.
|
int |
hashCode() |
void |
injectionComplete(DateAdapterInjectionComplete injectionComplete)
Is invoked when the date adapter has been injected.
It can be invoked only by the resources type of the module. |
boolean |
isInjected()
Returns if the date adapter has been injected.
|
abstract void |
overrideDefaultFormats(DefaultsFormatsOverrider overrider)
Invokes after the initialization of date adapter in order to override default formats if needed.
|
protected AbstractModule(Key key)
key - the id of the adapter as keyprotected AbstractModule(String id)
id - the id of the adapter as stringpublic final String getId()
public final boolean isInjected()
false, the date adapter has not been injectedpublic abstract void overrideDefaultFormats(DefaultsFormatsOverrider overrider)
overrider - native object wrapper of default formats of adapaterpublic final void injectionComplete(DateAdapterInjectionComplete injectionComplete)
injectionComplete - empty object which can be created only by resources type