org.apache.tapestry.internal.services
Class ContextAssetFactory

java.lang.Object
  extended by org.apache.tapestry.internal.services.ContextAssetFactory
All Implemented Interfaces:
AssetFactory

public class ContextAssetFactory
extends Object
implements AssetFactory

Implementation of AssetFactory for assets that are part of the web application context.

See Also:
ContextResource

Constructor Summary
ContextAssetFactory(Request request, Context context, RequestPathOptimizer optimizer)
           
 
Method Summary
 Asset createAsset(Resource resource)
           
 Resource getRootResource()
          Returns the root ContextResource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextAssetFactory

public ContextAssetFactory(Request request,
                           Context context,
                           RequestPathOptimizer optimizer)
Method Detail

createAsset

public Asset createAsset(Resource resource)
Specified by:
createAsset in interface AssetFactory

getRootResource

public Resource getRootResource()
Returns the root ContextResource.

Specified by:
getRootResource in interface AssetFactory


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