Java library generation in version 8.0
As in the legacy Java API, in the new Java API there is a library generation step. After you make changes to the data model to add additional extension properties, with both APIs you must regenerate the libraries to use extension properties.
PolicyCenter 8.0 Java API
For the 8.0 Java API, run the regen-java-api command from the PolicyCenter/bin directory:
gwpc regen-java-apiPolicyCenter generates the libraries and Javadoc for the 8.0 Java API at the location:
PolicyCenter/java-api/lib
PolicyCenter/java-api/doc
Deprecated Java API
To use the deprecated Java API, you must add an additional parameter to the regen-java-api command:
gwpc regen-java-api -Ddeprecated=truePolicyCenter generates separate deprecated libraries and Javadoc in addition to the regular libraries and Javadoc. The output is in a slightly different location than in previous releases:
PolicyCenter/java-api/deprecated/lib
PolicyCenter/java-api/deprecated/doc
Note that Java code that uses the deprecated Java API must use the plugin directory locations defined in previous versions of PolicyCenter with the deprecated API. For a complete reference, see Where to deploy your Java classes and libraries. For more about plugin directories, see Add an implementation to a Plugins Registry item.
