electric.service.wrapper
Class ServiceWrapper

java.lang.Object
  extended byelectric.service.wrapper.ServiceWrapper
All Implemented Interfaces:
IServiceFactory

public final class ServiceWrapper
extends java.lang.Object
implements IServiceFactory

ServiceWrapper.

Author:
webMethods

Constructor Summary
ServiceWrapper()
           
 
Method Summary
static java.lang.String getServiceWrapper()
          Return the name of the default service wrapper class.
 IService newService(java.lang.Object object)
          If the object implements IService, return the object, otherwise return the object wrapped in an instance of the default wrapper class.
static void setServiceWrapper(java.lang.String className)
          Set the name for the default service wrapper class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceWrapper

public ServiceWrapper()
Method Detail

newService

public IService newService(java.lang.Object object)
                    throws java.lang.Exception
If the object implements IService, return the object, otherwise return the object wrapped in an instance of the default wrapper class.

Specified by:
newService in interface IServiceFactory
Parameters:
object - The object.
Throws:
java.lang.Exception - If an exception occured during the wrapping process.

getServiceWrapper

public static java.lang.String getServiceWrapper()
Return the name of the default service wrapper class.


setServiceWrapper

public static void setServiceWrapper(java.lang.String className)
                              throws java.lang.ClassNotFoundException,
                                     java.lang.NoSuchMethodException
Set the name for the default service wrapper class.

Parameters:
className - The name of the class.
Throws:
java.lang.ClassNotFoundException - If the class could not be found.
java.lang.NoSuchMethodException - If a constructor that takes an object could not be found.


copyright© 2001-2004 by webMethods All Rights Reserved.