org.apache.tapestry5.internal.services
Class AliasImpl

java.lang.Object
  extended by org.apache.tapestry5.internal.services.AliasImpl
All Implemented Interfaces:
ObjectProvider, Alias

public class AliasImpl
extends Object
implements Alias, ObjectProvider


Constructor Summary
AliasImpl(AliasManager masterManager, String mode, AliasManager overridesManager)
           
 
Method Summary
 ObjectProvider getObjectProvider()
          Returns an object provideer that checks the desired type against the service's contributions.
<T> T
provide(Class<T> objectType, AnnotationProvider annotationProvider, ObjectLocator locator)
          Provides an object based on an expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AliasImpl

public AliasImpl(AliasManager masterManager,
                 String mode,
                 AliasManager overridesManager)
Method Detail

getObjectProvider

public ObjectProvider getObjectProvider()
Description copied from interface: Alias
Returns an object provideer that checks the desired type against the service's contributions.

Specified by:
getObjectProvider in interface Alias

provide

public <T> T provide(Class<T> objectType,
                     AnnotationProvider annotationProvider,
                     ObjectLocator locator)
Description copied from interface: ObjectProvider
Provides an object based on an expression. The process of providing objects occurs within a particular context, which will typically be a service builder method, service contributor method, or service decorator method. The locator parameter provides access to the services visible to that context.

Specified by:
provide in interface ObjectProvider
Parameters:
objectType - the expected object type
annotationProvider - provides access to annotations (typically, the field or parameter to which an injection-related annotation is attached); annotations on the field or parameter may also be used when resolving the desired object
locator - locator for the context in which the provider is being used
Returns:
the requested object, or null if this object provider can not supply an object


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