public abstract class ComponentFactory extends Object
DefaultCacheFactory
is a special subclass of this, which bootstraps the construction of
other components. When this class is loaded, it maintains a static list of known default factories for known
components, which it then delegates to, when actually performing the construction.
Inject
,
ComponentRegistry
Modifier and Type | Field and Description |
---|---|
protected ComponentRegistry |
componentRegistry |
protected Configuration |
configuration |
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
ComponentFactory()
Constructs a new ComponentFactory.
|
ComponentFactory(ComponentRegistry componentRegistry,
Configuration configuration)
Constructs a new ComponentFactory.
|
Modifier and Type | Method and Description |
---|---|
protected void |
assertTypeConstructable(Class requestedType,
Class... ableToConstruct) |
protected abstract <T> T |
construct(Class<T> componentType)
Constructs a component.
|
protected final org.apache.commons.logging.Log log
protected ComponentRegistry componentRegistry
protected Configuration configuration
public ComponentFactory(ComponentRegistry componentRegistry, Configuration configuration)
public ComponentFactory()
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.