org.apache.avalon.meta.info.builder
Class ServiceBuilder

java.lang.Object
  extended byorg.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

Constructor Summary
ServiceBuilder()
           
 
Method Summary
 Service build(Class clazz)
          Create a Service object for specified Class.
 Service build(String classname, ClassLoader classLoader)
          Create a Service object for specified classname, in specified ClassLoader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceBuilder

public ServiceBuilder()
Method Detail

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 Component
classLoader - the ClassLoader to load info from
Returns:
the created Service
Throws:
Exception - if an error occurs


Copyright © The Apache Software Foundation. All Rights Reserved.