public class JGumFactoryManager extends FactoryManager
DEFAULT_KEY
Constructor and Description |
---|
JGumFactoryManager(JGum jgum) |
Modifier and Type | Method and Description |
---|---|
static JGumFactoryManager |
createDefault(JGum jgum) |
<T> T |
instantiate(Object key,
Type targetType) |
void |
register(Object key,
Class<?> clazz) |
void |
register(Object key,
Factory<?> factory) |
void |
register(Object key,
List<Class<?>> classes,
Factory<?> factory) |
instantiate, register, register, register, registerDefaults
public JGumFactoryManager(JGum jgum)
public static JGumFactoryManager createDefault(JGum jgum)
jgum
- a JGum categorization context.public void register(Object key, Class<?> clazz)
register
in class FactoryManager
public void register(Object key, List<Class<?>> classes, Factory<?> factory)
register
in class FactoryManager
public void register(Object key, Factory<?> factory)
register
in class FactoryManager
public <T> T instantiate(Object key, Type targetType)
instantiate
in class FactoryManager
Copyright © 2014. All rights reserved.