Should a resource class need to reference other Nucleus components, the framework provides the @NucleusComponent annotation. This annotation resolves the component and allows you to inject it as a value for the field. This annotation should only be used when a REST resource class is not itself a Nucleus component. It is recommended that any resource that needs a reference to another Nucleus component should itself be a Nucleus component with the reference a standard Nucleus property of the resource component.

The following steps describe how to resolve a non-Nucleus component:


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