public abstract class ProvidesBinding<T> extends Binding<T>
Binding<T> which delegates to a module method.Binding.InvalidBindingException| Modifier and Type | Field and Description |
|---|---|
protected String |
methodName |
protected String |
moduleClass |
IS_SINGLETON, membersKey, NOT_SINGLETON, provideKey, requiredBy, UNRESOLVED| Constructor and Description |
|---|
ProvidesBinding(String key,
boolean singleton,
String moduleClass,
String methodName)
Creates a new
ProvidesBinding with the given "provides" key, a flag as to whether
this binding should be scoped, and the requiredBy object for traceability. |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
get()
A provides binding is responsible for implementing storage of the module instance, and
delegation to that module instance's method.
|
String |
toString() |
attach, dependedOn, getDependencies, injectMembers, isCycleFree, isLinked, isVisiting, library, setCycleFree, setDependedOn, setLibrary, setVisitingCopyright © 2024 Square, Inc.. All rights reserved.