org.sitemesh.config
Interface ObjectFactory
- All Known Implementing Classes:
- ObjectFactory.Default
public interface ObjectFactory
Responsible for instantiating objects - converting from strings in a config file to a real instance.
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.
- Author:
- Joe Walnes
- See Also:
ObjectFactory.Default
|
Nested Class Summary |
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. |
create
Object create(String name)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
Copyright © 2011. All Rights Reserved.