org.apache.avalon.meta.info.builder
Interface TypeFactory
- All Superinterfaces:
- TypeCreator
- All Known Implementing Classes:
- XMLTypeCreator
- public interface TypeFactory
- extends TypeCreator
Simple interface used to create Type
from stream. This abstraction was primarily created so
that the Type could be built from non-XML
sources and no XML classes need be in the classpath.
- Version:
- $Revision: 1.2 $ $Date: 2004/01/24 23:20:46 $
- Author:
- Avalon Development Team
createType
public Type createType(String path,
Configuration xinfo,
Configuration defaults)
throws Exception
- Create a
Type
using a supplied type configuration and default configuration
- Parameters:
path
- the class resource name of component type that we are looking upxinfo
- the configuration fragment for the typedefaults
- the configuration fragment for the default configuration
- Returns:
- the newly created
Type
- Throws:
Exception
- if an error occurs
Copyright © The Apache Software Foundation. All Rights Reserved.