org.apache.avalon.composition.data.builder
Class SerializedProfilePackageCreator
java.lang.Object
org.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.2 $ $Date: 2004/01/24 23:25:27 $
- Author:
- Avalon Development Team
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializedProfilePackageCreator
public SerializedProfilePackageCreator()
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 © The Apache Software Foundation. All Rights Reserved.