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.3 $ $Date: 2003/07/15 21:26:35 $
- 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 © Apache Software Foundation. All Rights Reserved.