org.abstracthorizon.danube.tapestry.spring
Class TapestryConnectionHandler

java.lang.Object
  extended by org.abstracthorizon.danube.tapestry.TapestryConnectionHandler
      extended by org.abstracthorizon.danube.tapestry.spring.TapestryConnectionHandler
All Implemented Interfaces:
ConnectionHandler, BeanNameAware, ApplicationContextAware

public class TapestryConnectionHandler
extends TapestryConnectionHandler
implements BeanNameAware, ApplicationContextAware

Tapestry connection handler.

Author:
Daniel Sendula

Field Summary
protected  ApplicationContext applicationContext
          Application context this view adapter belongs to
 
Fields inherited from class org.abstracthorizon.danube.tapestry.TapestryConnectionHandler
applicationSpecificationResourceName, classResolver, initialParameters, logger, registry, sessionManager, TAPESTRY_DEFAULT_APPLICATION_NAME, TAPESTRY_SUFFIX, webActivator, webContext, webRequestServicer
 
Constructor Summary
TapestryConnectionHandler()
           
 
Method Summary
 WebContext getWebContext()
          Returns web context assigned to this handler.
protected  org.apache.hivemind.Resource obtainApplicationResource()
          Obtains application resource.
 void setApplicationContext(ApplicationContext context)
          Stores current application context
 void setBeanName(String beanName)
          Stores bean name
 
Methods inherited from class org.abstracthorizon.danube.tapestry.TapestryConnectionHandler
constructErrorHandler, createClassResolver, createSessionManager, getApplicationSpecificationResourceName, getClassResolver, getInitialParameters, getSessionManager, getWebActivator, handleConnection, init, obtainWebContext, setApplicationSpecificationResourceName, setClassResolver, setInitialParameters, setSessionManager, setWebActivator, setWebContext
 
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 this view adapter belongs to

Constructor Detail

TapestryConnectionHandler

public TapestryConnectionHandler()
Method Detail

obtainApplicationResource

protected org.apache.hivemind.Resource obtainApplicationResource()
Obtains application resource. It first tries with the name from TapestryConnectionHandler.getApplicationSpecificationResourceName(), then with TapestryConnectionHandler.TAPESTRY_DEFAULT_APPLICATION_NAME and at the end with value of TapestryConnectionHandler.getApplicationSpecificationResourceName(), prefixed with "WEB-INF/".

Overrides:
obtainApplicationResource in class TapestryConnectionHandler
Returns:
application resource

getWebContext

public WebContext getWebContext()
Returns web context assigned to this handler. If not already set then SpringDanubeContext will be instantiated.

Overrides:
getWebContext in class TapestryConnectionHandler
Returns:
web context

setBeanName

public void setBeanName(String beanName)
Stores bean name

Specified by:
setBeanName in interface BeanNameAware
Parameters:
beanName - bean name

setApplicationContext

public void setApplicationContext(ApplicationContext context)
                           throws BeansException
Stores current application context

Specified by:
setApplicationContext in interface ApplicationContextAware
Parameters:
context - application context
Throws:
BeansException - never


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.