Deployment Descriptor
-
It is now possible to register a type converter in the deployment descriptor. The type converter class must implement the interface
ilog.cpl.util.IlpTypeConverter
and provide a default constructor or a constructor with a single IlpContext
argument. The type converter is registered in the deployment descriptor using the following syntax:
<deployment xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation = "ilog/cpl/schema/deploy.xsd">
<typeConverter javaClass = "mypackage.MyTypeConverter" />
-
It is now possible to register a class loader service in the deployment descriptor. The class loader service class must implement the interface
ilog.cpl.service.IlpClassLoaderService
and provide a default constructor or a constructor with a single IlpContext
argument. The class loader service is registered in the deployment descriptor using the following syntax:
<deployment xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation = "ilog/cpl/schema/deploy.xsd">
<classLoader javaClass = "mypackage.MyClassLoaderService" />
Class Manager
It is now possible to create static attributes through XML files. The following example illustrates how you can create a static attribute in a business class:
<class>
<name>samples.network.customClasses.Service</name>
<attribute>
<name>ID</name>
<javaClass>java.lang.String</javaClass>
</attribute>
<attribute static="true">
<name>THRESHOLD</name>
<javaClass>java.lang.Number</javaClass>
<defaultValue javaClass="java.lang.Integer">100</defaultValue>
</attribute>
</class>