ilog.cpl.service
Interface IlpClassLoaderService

All Superinterfaces:
IlpService
All Known Implementing Classes:
IlpDefaultClassLoaderService

public interface IlpClassLoaderService
extends IlpService

Defines a service to load external classes that will be used within an ILOG JTGO application.

This service is used by the different components to load user-defined classes that are part of the business model or the style sheet configuration.

If you have your own class loader mechanism, implement this interface and register it in your application context as illustrated below:

 IlpDefaultContext context = ...;
 IlpClassLoaderService service = new MyClassLoaderService();
 context.addService(IlpClassLoaderService.class, service);
 

Since:
JTGO 4.0
See Also:
IlpDefaultContext.addService(java.lang.Class, java.lang.Object)

Method Summary
 Class loadClass(String name)
          Loads the class with the specified name.
 

Method Detail

loadClass

Class loadClass(String name)
                throws ClassNotFoundException
Loads the class with the specified name.

Parameters:
name - The name of the class.
Returns:
The resulting java.lang.Class object.
Throws:
java.lang.ClassNotFoundException
ClassNotFoundException


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.