public class ServiceImplInstance
extends java.lang.Object
ServiceImpl annotated class.| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceImplInstance.Builder
Builder for a service impl instance.
|
| Modifier and Type | Method and Description |
|---|---|
static ServiceImplInstance |
fromInstance(java.lang.Object instance)
Create a service instance from the given object instance.
|
static ServiceImplInstance |
fromInstance(java.lang.Object instance,
java.util.List<MethodExtension> extensions)
Create a service instance from the given object instance, with additional
MethodExtensions consulted for each scanned method. |
ServiceDefinition |
getDefinition() |
java.util.Map<java.lang.String,OperationHandler<java.lang.Object,java.lang.Object>> |
getOperationHandlers() |
static ServiceImplInstance.Builder |
newBuilder()
Create a builder for a service impl instance.
|
static ServiceImplInstance.Builder |
newBuilder(ServiceImplInstance instance)
Create a builder for a service impl instance from an existing service impl instance.
|
public static ServiceImplInstance fromInstance(java.lang.Object instance)
ServiceImpl and must pass all validation for the required
operations.public static ServiceImplInstance fromInstance(java.lang.Object instance, java.util.List<MethodExtension> extensions)
MethodExtensions consulted for each scanned method. Extensions let frameworks recognize their
own operation-handler annotations alongside OperationImpl.
Extensions are only consulted for methods without OperationImpl that map by method
name to an operation on the service. They are consulted in list order, and the first extension
to return a handler claims the method.
public static ServiceImplInstance.Builder newBuilder()
public static ServiceImplInstance.Builder newBuilder(ServiceImplInstance instance)
public ServiceDefinition getDefinition()
public java.util.Map<java.lang.String,OperationHandler<java.lang.Object,java.lang.Object>> getOperationHandlers()