|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceBindingOptions
Allows additional options for a service to be specified, overriding hard coded defaults or defaults from annotations on the service.
ServiceDef2
Method Summary | ||
---|---|---|
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). |
|
|
withMarker(Class<T>... 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. |
Method Detail |
---|
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()
<T extends Annotation> ServiceBindingOptions withMarker(Class<T>... marker)
T
- marker
- one or more markers to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |