public class Provide extends Object implements Service
Provider
with Injector
.
The documentation talks about many of these methods returning "registered
provider instance" but I do not know what that means. It seems that services
are instances of objects created by providers, and the providers appear to
be functions that return service instances, but I cannot figure out what
provider instance is. Could it be provider function?AbstractModule
Constructor and Description |
---|
Provide() |
Modifier and Type | Method and Description |
---|---|
void |
constant(String name,
Object value) |
<S extends Service> |
decorator(String name,
com.asayama.gwt.jsni.client.Function<S> decorator) |
<S extends Service> |
factory(String name,
com.asayama.gwt.jsni.client.Function<S> $getFn) |
<S extends Service> |
provider(String name,
com.asayama.gwt.jsni.client.Function<S> provider) |
void |
service(String name,
com.asayama.gwt.jsni.client.Closure constructor) |
void |
value(String name,
Object value) |
public <S extends Service> void provider(String name, com.asayama.gwt.jsni.client.Function<S> provider)
public <S extends Service> void factory(String name, com.asayama.gwt.jsni.client.Function<S> $getFn)
public void service(String name, com.asayama.gwt.jsni.client.Closure constructor)
Copyright © 2016. All rights reserved.