This page explains how to use the Nuxeo Java API.
The Nuxeo Platform contains a built-in notion of service. Services are Java interfaces exposed and implemented by a Component.
From within a Nuxeo Runtime aware context, you can access a service locally (in the same JVM) by simply looking up its interface with
RelationManager rm = Framework.getService(RelationManager.class)
You must not store the service itself as a field of a long-running component in Nuxeo, as this would prevent proper hot-reloading.
You may want to use this API from:
- A Seam component when customizing the default webapp,
- An Event Listener that would do some specific things,
- A custom operation that would use the built-in services,