org.abstracthorizon.danube.tapestry.spring
Class SpringDanubeContext
java.lang.Object
org.abstracthorizon.danube.tapestry.DanubeContext
org.abstracthorizon.danube.tapestry.spring.SpringDanubeContext
- All Implemented Interfaces:
- Describable, AttributeHolder, InitializationParameterHolder, WebContext
public class SpringDanubeContext
- extends DanubeContext
WebContext
interface implementation.
This implmenetation uses application context everything is created in for
obtaning resources.
- Author:
- Daniel Sendula
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
applicationContext
protected ApplicationContext applicationContext
- Application context to be used for obtaining resources
SpringDanubeContext
public SpringDanubeContext(TapestryConnectionHandler handler,
ApplicationContext applicationContext)
- Constructor
- Parameters:
handler
- handler
getResource
public URL getResource(String path)
throws RuntimeIOException
- Returns resource as URL. It uses this classes class loader.
- Specified by:
getResource
in interface WebContext
- Overrides:
getResource
in class DanubeContext
- Parameters:
path
- resource path. If starts with "/" then it is removed.
- Returns:
- resource as URL.
- Throws:
RuntimeIOException
Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.