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.3 $ $Date: 2003/07/15 21:26:35 $
Author:
Avalon Development Team

Method Summary
 Type createType(String path, Configuration xinfo, Configuration defaults)
          Create a Type using a supplied type configuration and default configuration
 
Methods inherited from interface org.apache.avalon.meta.info.builder.TypeCreator
createType
 

Method Detail

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 up
xinfo - the configuration fragment for the type
defaults - the configuration fragment for the default configuration
Returns:
the newly created Type
Throws:
Exception - if an error occurs


Copyright © Apache Software Foundation. All Rights Reserved.