Interface ServiceDefinitionFactory<T>
- All Known Implementing Classes:
ReflectionServiceDefinitionFactory
public interface ServiceDefinitionFactory<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptioncreate(T serviceObject, @Nullable HandlerRunner.Options overrideHandlerOptions) default intpriority()Get the priority of this factory.boolean
-
Field Details
-
HIGHEST_PRIORITY
static final int HIGHEST_PRIORITY- See Also:
-
LOWEST_PRIORITY
static final int LOWEST_PRIORITY- See Also:
-
-
Method Details
-
create
-
supports
-
priority
default int priority()Get the priority of this factory. Lower values are tried first. The default priority is HIGHEST_PRIORITY.Code-generated factories should use the default priority so they are tried first.
- Returns:
- the priority value
-