public interface Service extends NamedObject, SplashMessageProvider
This interface is intended to be used to implement services that are common enough to make them available on the container so other Mule artifacts can make use of them without having to re-implement them.
Service implementations can implement lifecycle interfaces Startable and Stoppable. Lifecycle will be applied
when the container is started/stopped.
Implementations may overload methods from the Service interface with @Inject and add any parameters
to be resolved from the Mule application context. When such invocation is made, those injected parameters cannot be null.
| Modifier and Type | Method and Description |
|---|---|
default String |
getContractName()
Returns the name of the specific contract that
this instance is fulfilling. |
default String |
getSplashMessage()
Provides a message to show in the splash screen of the Mule Runtime when this is started.
|
getNamedefault String getSplashMessage()
SplashMessageProvidergetSplashMessage in interface SplashMessageProviderdefault String getContractName()
this instance is fulfilling. This is optional for service bundles
which contain only one contract, mandatory for those with many.Copyright © 2025 MuleSoft, Inc.. All rights reserved.