Package org.onehippo.repository.modules
Annotation Type RequiresService
-
@Retention(RUNTIME) @Target(TYPE) public @interface RequiresService
Use this annotation on implementations ofDaemonModule
s to inform the system about which services it uses from theHippoServiceRegistry
and which are provided by otherDaemonModule
s. Together with theProvidesService
annotation, this annotation determines the order in which modules are started (and destroyed because that happens in reversed order).The optional optional attribute informs the system not to fail loading the module in the absence of the service. I.e. if there is no module that provides the service. If you specify the optional attribute it needs to be an array of booleans that is equal in length to the array of types that is specified in the types attribute.
-
-
Element Detail
-
types
Class<?>[] types
-
-