|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceDef
Service definition derived, by default, from a service builder method. This has been extended in Tapestry 5.1 with
ServiceDef2, which adds additional methods.
| Method Summary | |
|---|---|
ObjectCreator |
createServiceCreator(ServiceBuilderResources resources)
Returns an ObjectCreator that can create the core service implementation. |
java.util.Set<java.lang.Class> |
getMarkers()
Returns an optional set of marker annotations. |
java.lang.String |
getServiceId()
Returns the service id, derived from the method name or the unqualified service interface name. |
java.lang.Class |
getServiceInterface()
Returns the service interface associated with this service. |
java.lang.String |
getServiceScope()
Returns the lifecycle defined for the service. |
boolean |
isEagerLoad()
Returns true if the service should be eagerly loaded at Registry startup. |
| Method Detail |
|---|
ObjectCreator createServiceCreator(ServiceBuilderResources resources)
ObjectCreator that can create the core service implementation.
resources - used to resolve dependencies of the service, or access its configuration
java.lang.String getServiceId()
java.util.Set<java.lang.Class> getMarkers()
java.lang.Class getServiceInterface()
java.lang.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,
ServiceLifecycleSourceboolean isEagerLoad()
EagerLoad
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||