org.apache.avalon.meta.info.builder
Class ServiceBuilder
java.lang.Object
org.apache.avalon.meta.info.builder.ServiceBuilder
- public final class ServiceBuilder
- extends Object
A ServiceBuilder is responsible for building Service
objects from Configuration objects.
UML
- Version:
- $Revision: 1.1.1.11 $ $Date: 2004/05/16 16:11:57 $
- Author:
- Avalon Development Team
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceBuilder
public ServiceBuilder()
build
public Service build(Class clazz)
throws Exception
- Create a
Service
object for specified Class.
- Parameters:
clazz
- The class of Component
- Returns:
- the created Service
- Throws:
Exception
- if an error occurs
build
public Service build(String classname,
ClassLoader classLoader)
throws Exception
- Create a
Service
object for specified
classname, in specified ClassLoader.
- Parameters:
classname
- The classname of ComponentclassLoader
- the ClassLoader to load info from
- Returns:
- the created Service
- Throws:
Exception
- if an error occurs
Copyright © The Apache Software Foundation. All Rights Reserved.