How to check if the classes were enhanced correctly with valid OEM license?

#1

Hello,

is there a way/tool how to check whether build classes were enhanced with valid OEM license?

Scenario:

1) Build and enhance Java application with some Object DB license key.
2) Pick particular JAR containing enhanced classes from the build above.
3) Run some tool against picked JAR to determine the result of enhancing (whether it is enhanced correctly, with what license, validity, etc.)

Thank you.

#2

To check if class MyEntity is enhanced using the OEM Enhancer use the following boolean expression:

    com.objectdb.spi.SignedType.class.isAssignableFrom(MyEntity.class);

or

    (new MyEntity()) instanceof com.objectdb.spi.SignedType

 

ObjectDB Support

Reply