@Retention(value=RUNTIME) @Target(value=TYPE) public @interface RequiresService
DaemonModule
s to
inform the system about which services it uses from the
HippoServiceRegistry
and which are provided by other DaemonModule
s.
Together with the ProvidesService
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.
public abstract Class<?>[] types
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.