public interface ObjectFactory
Typically you would use the ObjectFactory.Default
implementation,
but this can be replaced. e.g. To connect to a dependency injection framework, lookup from
a registry, do custom classloading, etc.
ObjectFactory.Default
Modifier and Type | Interface and Description |
---|---|
static class |
ObjectFactory.Default
Default implementation of
ObjectFactory that treats the object
name as a class name, loading it from the current ClassLoader and instantiating
with the default constructor. |
Object create(String name) throws IllegalArgumentException
IllegalArgumentException
Copyright © 2015. All Rights Reserved.