public class CustomService extends Object
A service can be specified by an implementation or a class that can be used to instantiate the implementation.
| Constructor and Description |
|---|
CustomService(Class serviceClass)
Creates a custom service from a class.
|
CustomService(Object serviceImpl)
Creates a custom service from an implementation.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Class> |
getServiceClass() |
Optional<Object> |
getServiceImpl() |
public CustomService(Class serviceClass)
serviceClass - the service class.public CustomService(Object serviceImpl)
serviceImpl - the service implementation.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.