org.apache.tapestry5.ioc
Interface ServiceResources

All Superinterfaces:
ObjectLocator
All Known Subinterfaces:
ServiceBuilderResources
All Known Implementing Classes:
ServiceResourcesImpl

public interface ServiceResources
extends ObjectLocator

Contains resources that may be provided to a service when it initializes, which includes other services defined in the registry. ServiceResources provides access to other services (it extends ObjectLocator).


Method Summary
 java.lang.Class getImplementationClass()
          Returns the service implementation class.
 org.slf4j.Logger getLogger()
          Returns a Logger appropriate for logging messages.
 java.lang.String getServiceId()
          Returns the fully qualified id of the service.
 java.lang.Class getServiceInterface()
          Returns the service interface implemented by the service.
 OperationTracker getTracker()
          Returns an object that can be used to track operations related to constructing, configuring, decorating and initializing the service.
 
Methods inherited from interface org.apache.tapestry5.ioc.ObjectLocator
autobuild, autobuild, getObject, getService, getService, proxy
 

Method Detail

getServiceId

java.lang.String getServiceId()
Returns the fully qualified id of the service.


getServiceInterface

java.lang.Class getServiceInterface()
Returns the service interface implemented by the service.


getLogger

org.slf4j.Logger getLogger()
Returns a Logger appropriate for logging messages. This includes debug level messages about the creation and configuration of the underlying service, as well as debug, warning, or error level messages from the service itself. Often service interceptors will make use of the service's logger.


getTracker

OperationTracker getTracker()
Returns an object that can be used to track operations related to constructing, configuring, decorating and initializing the service.


getImplementationClass

java.lang.Class getImplementationClass()
Returns the service implementation class.

Since:
5.2.0


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.