public interface CustomizationService
MuleContext.
It's possible to add new services or replace default implementation for services specifying a service implementation or a
services class.
For replacing an existent service, the service identifier must be used. Make sure to use the same constants
as the runtime.| Modifier and Type | Method and Description |
|---|---|
<T> void |
overrideDefaultServiceClass(String serviceId,
Class<T> serviceClass)
Allows to override a service provided by default on a mule context.
|
<T> void |
overrideDefaultServiceImpl(String serviceId,
T serviceImpl)
Allows to override a service provided by default on a mule context.
|
<T> void |
registerCustomServiceClass(String serviceId,
Class<T> serviceClass)
Allows to define a custom service on a mule context.
|
<T> void |
registerCustomServiceImpl(String serviceId,
T serviceImpl)
Allows to define a custom service on a mule context.
|
<T> void overrideDefaultServiceImpl(String serviceId, T serviceImpl)
The service implementation can be annotated with @Inject and implement methods from
Lifecycle.
The service identifier can be used to locate the service in the mule registry.
T - the service typeserviceId - identifier of the services implementation to customize.serviceImpl - the service implementation instance<T> void overrideDefaultServiceClass(String serviceId, Class<T> serviceClass)
The service class can be annotated with javax.inject.Inject and implement methods from
Lifecycle.
T - the service typeserviceId - identifier of the services implementation to customize.serviceClass - the service class<T> void registerCustomServiceImpl(String serviceId, T serviceImpl)
The service implementation can be annotated with @Inject and implement methods from
Lifecycle.
The service identifier can be used to locate the service in the mule registry.
T - the service typeserviceId - identifier of the services implementation to register. Non empty.serviceImpl - the service implementation instance. Non null.<T> void registerCustomServiceClass(String serviceId, Class<T> serviceClass)
The service class can be annotated with javax.inject.Inject and implement methods from
Lifecycle.
T - the service typeserviceId - identifier of the services implementation to register. Non empty.serviceClass - the service class. Non null.Copyright © 2017 MuleSoft, Inc.. All rights reserved.