org.apache.avalon.meta.info.builder
Interface TypeCreator
- All Known Subinterfaces:
- TypeFactory
- All Known Implementing Classes:
- SerializedTypeCreator, XMLLegacyCreator, XMLTypeCreator
- public interface 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 key,
InputStream input)
throws Exception
- Create a
Type
from stream
- Parameters:
key
- the name of component type that we are looking upinput
- the input stream that the resource is loaded from
- Returns:
- the newly created
Type
- Throws:
Exception
- if an error occurs
Copyright © The Apache Software Foundation. All Rights Reserved.