org.apache.avalon.composition.data.builder
Class SerializedProfilePackageCreator

java.lang.Object
  extended byorg.apache.avalon.composition.data.builder.SerializedProfilePackageCreator
All Implemented Interfaces:
ProfilePackageCreator

public class SerializedProfilePackageCreator
extends Object
implements ProfilePackageCreator

Create ProfilePackage from stream made up of serialized object.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/08/31 14:29:48 $
Author:
Avalon Development Team

Constructor Summary
SerializedProfilePackageCreator()
           
 
Method Summary
 ProfilePackage createProfilePackage(InputStream inputStream)
          Create a ProfilePackage from a stream.
 ProfilePackage createProfilePackage(String name, Class clazz)
          Create a ProfilePackage from a class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializedProfilePackageCreator

public SerializedProfilePackageCreator()
Method Detail

createProfilePackage

public ProfilePackage createProfilePackage(String name,
                                           Class clazz)
                                    throws Exception
Create a ProfilePackage from a class.

Specified by:
createProfilePackage in interface ProfilePackageCreator
Parameters:
name - the component profile name (ignored)
clazz - the component profile class
Returns:
the profile package
Throws:
Exception - if a error occurs during package creation

createProfilePackage

public ProfilePackage createProfilePackage(InputStream inputStream)
                                    throws Exception
Create a ProfilePackage from a stream.

Parameters:
inputStream - the stream that the resource is loaded from
Returns:
the composition profile
Throws:
Exception - if a error occurs during package creation


Copyright © Apache Software Foundation. All Rights Reserved.