org.apache.avalon.meta.info.builder
Interface ServiceCreator

All Known Implementing Classes:
SerializedServiceCreator, XMLServiceCreator

public interface ServiceCreator

Interface used to create a Service from a stream.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/09/24 08:16:05 $
Author:
Avalon Development Team

Method Summary
 Service createService(String key, InputStream input)
          Create a Service from stream
 

Method Detail

createService

public Service createService(String key,
                             InputStream input)
                      throws Exception
Create a Service from stream

Parameters:
key - the name of the service type
input - the input stream that the resource is loaded from
Returns:
the created Service
Throws:
Exception - if an error occurs


Copyright © Apache Software Foundation. All Rights Reserved.