public static class LazyServiceAssembly.Builder extends Object
LazyServiceAssembly instances| Modifier and Type | Method and Description |
|---|---|
ServiceAssembly |
build() |
LazyServiceAssembly.Builder |
forContract(String contractClassName)
Sets the classname of the
Service contract that will be satisfied by the assembly |
LazyServiceAssembly.Builder |
withClassLoader(Supplier<ClassLoader> artifactClassLoader)
Provides a
Supplier to lazily create the service's ClassLoader. |
LazyServiceAssembly.Builder |
withName(String name)
Allows to set the new of the assembled
Service |
LazyServiceAssembly.Builder |
withServiceProvider(CheckedSupplier<org.mule.runtime.api.service.ServiceProvider> serviceProviderSupplier)
Provides a
Supplier to lazily create the service's ServiceProvider. |
public LazyServiceAssembly.Builder withName(String name)
Servicename - the Service namethis builderpublic LazyServiceAssembly.Builder withClassLoader(Supplier<ClassLoader> artifactClassLoader)
Supplier to lazily create the service's ClassLoader.artifactClassLoader - A Supplier to lazily create the service's ClassLoaderthis builderpublic LazyServiceAssembly.Builder withServiceProvider(CheckedSupplier<org.mule.runtime.api.service.ServiceProvider> serviceProviderSupplier)
Supplier to lazily create the service's ServiceProvider.serviceProviderSupplier - A Supplier to lazily create the service's ServiceProviderthis builderpublic LazyServiceAssembly.Builder forContract(String contractClassName)
Service contract that will be satisfied by the assemblycontractClassName - the Service classnamethis builderpublic ServiceAssembly build() throws ServiceResolutionError
LazyServiceAssembly instanceServiceResolutionError - if the assembly couldn't be createdCopyright © 2003–2021 MuleSoft, Inc.. All rights reserved.