CIM uses the sessionContext.cimClassLoader to load classes from the class directories when a product is selected. The SessionContext.resourceClassLoader checks the ATG module directories for a CIM directory. If it locates a CIM directory that contains a /classes or /lib directory, it loads those entries.

Note: It is important to be aware of potential name conflicts when working with CIM directories. If you create a resource that is specific to an application or module, ensure that you use unique key names that include the model prefix to prevent conflicts.

For CIM scripts, new class paths can be added at runtime using one of the following static methods:

atg.cim.SessionContext.addClassPath(String);
atg.cim.SessionContext.addClassPath(File);

This is used These methods can be called repeatedly as duplicates are filtered out.


Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices