public interface ServiceBindingOptions
ServiceDef2
Modifier and Type | Method and Description |
---|---|
ServiceBindingOptions |
eagerLoad()
Turns eager loading on for this service.
|
ServiceBindingOptions |
preventDecoration()
Disallows service decoration for this service.
|
ServiceBindingOptions |
preventReloading()
Identifies a service for which live class reloading is not desired.
|
ServiceBindingOptions |
scope(String scope)
Sets the scope of the service, overriding the
Scope annotation on the service implementation class. |
ServiceBindingOptions |
withId(String id)
Allows a specific service id for the service to be provided, rather than the default (from the service
interface).
|
ServiceBindingOptions |
withMarker(Class<? extends Annotation>... marker)
Defines the marker interface(s) for the service, used to connect injections by type at the point of injection
with a particular service implementation, based on the intersection of type and marker interface.
|
ServiceBindingOptions |
withSimpleId()
Uses the the simple (unqualified) class name of the implementation class as the id of the service.
|
ServiceBindingOptions withId(String id)
id
- ServiceBindingOptions withSimpleId()
IllegalStateException
- if the class name was not defined (via ServiceBinder.bind(Class, Class)
or
ServiceBinder.bind(Class)
).ServiceBindingOptions scope(String scope)
Scope
annotation on the service implementation class.scope
- ScopeConstants
ServiceBindingOptions eagerLoad()
EagerLoad
annotation on
the service implementation class.ServiceBindingOptions preventDecoration()
ServiceBindingOptions preventReloading()
ServiceBindingOptions withMarker(Class<? extends Annotation>... marker)
marker
- one or more markers to add5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.