org.apache.tapestry.resolver
Interface IComponentResourceResolver

All Known Implementing Classes:
ComponentResourceResolverImpl

public interface IComponentResourceResolver

Service responsible for finding resources relative or specific to a IComponent.


Method Summary
 org.apache.hivemind.Resource findComponentResource(IComponent component, IRequestCycle cycle, String name, String extension, Locale locale)
          Searches for a resource relative to the specified IComponent, optionally also attemping to find a localized version of the resource using the specified Locale.
 

Method Detail

findComponentResource

org.apache.hivemind.Resource findComponentResource(IComponent component,
                                                   IRequestCycle cycle,
                                                   String name,
                                                   String extension,
                                                   Locale locale)
Searches for a resource relative to the specified IComponent, optionally also attemping to find a localized version of the resource using the specified Locale.

Parameters:
component - The component to find the resource relative to.
cycle - The current request.
name - Optional resource name to search for, the default is to use the component name.
extension - Extension name of the resource, such as <ComponentName>.properties for properties / <ComponentName>.html for templates and so on.
locale - Optional localization specifier.
Returns:
The resolved resource, or null if none could be found. The returned Resource may also be not null but still not valid. To ensure validity check Resource.getResourceURL() for a not null value.


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