| org.apache.tapestry.ioc.def.ServiceDef
All known Subclasses: org.apache.tapestry.ioc.internal.ServiceDefImpl,
ServiceDef | public interface ServiceDef (Code) | | Service definition derived, by default, from a service builder method.
|
createServiceCreator | ObjectCreator createServiceCreator(ServiceBuilderResources resources)(Code) | | Returns an
ObjectCreator that can create the core service implementation.
Parameters: resources - used to resolve dependencies of the service, or access its configuration an object that can (later) be used to instantiate the service itself |
getServiceId | String getServiceId()(Code) | | Returns the service id, derived from the method name.
|
getServiceInterface | Class getServiceInterface()(Code) | | Returns the service interface associated with this service. This is the interface exposed to
the outside world, as well as the one used to build proxies. In cases where the service is
not defined in terms of an interface, this will return the actual implementation
class of the service. Services without a true service interfaced are not proxied.
|
getServiceScope | String getServiceScope()(Code) | | Returns the lifecycle defined for the service. This is indicated by adding a
org.apache.tapestry.ioc.annotations.Scope annotation to the service builder method
for the service.
Services that are not proxied will ignore thier scope; such services are always treated as
singletons.
|
|
|