org.abstracthorizon.danube.tapestry.spring
Class SpringDanubeContext

java.lang.Object
  extended by org.abstracthorizon.danube.tapestry.DanubeContext
      extended by 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

Field Summary
protected  ApplicationContext applicationContext
          Application context to be used for obtaining resources
 
Fields inherited from class org.abstracthorizon.danube.tapestry.DanubeContext
attributes, handler
 
Constructor Summary
SpringDanubeContext(TapestryConnectionHandler handler, ApplicationContext applicationContext)
          Constructor
 
Method Summary
 URL getResource(String path)
          Returns resource as URL.
 
Methods inherited from class org.abstracthorizon.danube.tapestry.DanubeContext
describeTo, getAttribute, getAttributeNames, getInitParameterNames, getInitParameterValue, getMimeType, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applicationContext

protected ApplicationContext applicationContext
Application context to be used for obtaining resources

Constructor Detail

SpringDanubeContext

public SpringDanubeContext(TapestryConnectionHandler handler,
                           ApplicationContext applicationContext)
Constructor

Parameters:
handler - handler
Method Detail

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.