public interface ServiceDef
ServiceDef2
, which adds additional methods. Tapestry 5.3 added ServiceDef3
.Modifier and Type | Method and Description |
---|---|
ObjectCreator |
createServiceCreator(ServiceBuilderResources resources)
Returns an
ObjectCreator that can create the core service implementation. |
Set<Class> |
getMarkers()
Returns an optional set of marker annotations.
|
String |
getServiceId()
Returns the service id, derived from the method name or the unqualified service interface name.
|
Class |
getServiceInterface()
Returns the service interface associated with this service.
|
String |
getServiceScope()
Returns the lifecycle defined for the service.
|
boolean |
isEagerLoad()
Returns true if the service should be eagerly loaded at Registry startup.
|
ObjectCreator createServiceCreator(ServiceBuilderResources resources)
ObjectCreator
that can create the core service implementation.resources
- used to resolve dependencies of the service, or access its configurationString getServiceId()
Set<Class> getMarkers()
Class getServiceInterface()
String getServiceScope()
Scope
annotation to the service builder method for the service.
Services that are not proxied will ignore their scope; such services are always treated as singletons.ServiceLifecycle
,
ServiceLifecycleSource
boolean isEagerLoad()
EagerLoad
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.