Package | Description |
---|---|
bayou.od |
A simple library for Service Locator pattern.
|
Modifier and Type | Method and Description |
---|---|
OD.Binding |
OD.BindingBuilder.to(Class<? extends T> implClass)
Create a Binding to an implementation class of T.
|
OD.Binding |
OD.BindingBuilder.to(OD.Supplier<? extends T> supplier)
Create a Binding to a supplier of T.
|
OD.Binding |
OD.BindingBuilder.to(T instance)
Create a Binding to a single instance.
|
Modifier and Type | Method and Description |
---|---|
static List<OD.Binding> |
OD.Local.getBindings()
Get the local binding list of the current thread.
|
Modifier and Type | Method and Description |
---|---|
static void |
OD.bind(OD.Binding binding)
Add the binding to the global binding list.
|
static void |
OD.Local.bind(OD.Binding binding)
Add the binding to the local binding list of the current thread.
|
Modifier and Type | Method and Description |
---|---|
static void |
OD.Local.setBindings(List<OD.Binding> bindings)
Set the local binding list for the current thread.
|