org.apache.jetspeed.services
Class ServiceHelper

java.lang.Object
  extended byorg.apache.jetspeed.services.ServiceHelper

public class ServiceHelper
extends java.lang.Object

ServiceHelper

Version:
$Id: ServiceHelper.java,v 1.2 2004/02/23 04:00:57 jford Exp $
Author:
David Sean Taylor

Constructor Summary
ServiceHelper()
           
 
Method Summary
static java.lang.Object createObject(java.lang.Class classe)
          Creates objects given the class.
static java.lang.Class loadModelClass(org.apache.turbine.services.Service service, java.lang.String configurationName)
          Load an implementation class from the configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceHelper

public ServiceHelper()
Method Detail

loadModelClass

public static java.lang.Class loadModelClass(org.apache.turbine.services.Service service,
                                             java.lang.String configurationName)
                                      throws org.apache.turbine.services.InitializationException
Load an implementation class from the configuration.

Parameters:
configurationName -
Returns:
Throws:
CPSInitializationException
org.apache.turbine.services.InitializationException

createObject

public static java.lang.Object createObject(java.lang.Class classe)
Creates objects given the class. Throws exceptions if the class is not found in the default class path, or the class is not an instance of CmsObject.

Parameters:
classe - the class of object
Returns:
the newly created object
Throws:
ContentManagementException


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.