| Modifier and Type | Method and Description |
|---|---|
Factory.LocalMachines |
addMachine(FactoryMachine machine) |
void |
clear() |
static Factory.LocalMachines |
contextLocal(String ctxName)
Returns a LocalMachines associated with given context name.
|
String |
getId() |
static Factory.LocalMachines |
overrideComponents()
An alias for threadLocal() which makes the intention of using it to override components clearer.
|
Factory.LocalMachines |
removeMachine(FactoryMachine machine) |
<T> Factory.LocalMachines |
set(Class<T> clazz,
String name,
T component) |
<T> Factory.LocalMachines |
set(int priority,
Class<T> clazz,
String name,
T component) |
<T> Factory.LocalMachines |
set(int priority,
NamedComponent<T> namedComponent) |
Factory.LocalMachines |
set(int priority,
String name,
Object component) |
<T> Factory.LocalMachines |
set(NamedComponent<T> namedComponent) |
Factory.LocalMachines |
set(String name,
Object component) |
static Factory.LocalMachines |
threadLocal()
Returns a LocalMachines associated with current thread.
|
static Factory.LocalMachines |
threadLocalFrom(String id)
Return LocalMachines associated with another thread, by id.
|
public static Factory.LocalMachines overrideComponents()
overrideComponents().set("componentName", "componentValue");
Note that it doesn't do anything special to actually override components: they will be used only in Factory
relying on threadLocal() LocalMachines is built after the call.public static Factory.LocalMachines threadLocal()
public static Factory.LocalMachines threadLocalFrom(String id)
id - the other thread threadLocal() LocalMachines idpublic static Factory.LocalMachines contextLocal(String ctxName)
ctxName - the context namepublic Factory.LocalMachines addMachine(FactoryMachine machine)
public Factory.LocalMachines removeMachine(FactoryMachine machine)
public void clear()
public String getId()
public Factory.LocalMachines set(String name, Object component)
public Factory.LocalMachines set(int priority, String name, Object component)
public <T> Factory.LocalMachines set(Class<T> clazz, String name, T component)
public <T> Factory.LocalMachines set(int priority, Class<T> clazz, String name, T component)
public <T> Factory.LocalMachines set(NamedComponent<T> namedComponent)
public <T> Factory.LocalMachines set(int priority, NamedComponent<T> namedComponent)
Copyright © 2017. All Rights Reserved.