net.trajano.twiff.adapter
Interface ServletContextAdapter

All Known Implementing Classes:
ServletContextAdapterImpl

public interface ServletContextAdapter

This provides access to the servlet context data. Adapters like this are meant to remove the implicit casting performed by those that use it. This is made into an interface to provide test objects more easily.

Author:
Archimedes Trajano

Method Summary
 MutablePicoContainer getContainer()
          Returns the PicoContainer stored in the servlet context.
 ContainerBuilder getContainerBuilder()
          Returns the ContainerBuilder stored in the servlet context.
 org.hibernate.SessionFactory getSessionFactory()
          This returns the Hibernate session factory used in the framework.
 

Method Detail

getContainer

MutablePicoContainer getContainer()
Returns the PicoContainer stored in the servlet context.

Returns:
the application level container.

getContainerBuilder

ContainerBuilder getContainerBuilder()
Returns the ContainerBuilder stored in the servlet context.

Returns:
the container builder.

getSessionFactory

org.hibernate.SessionFactory getSessionFactory()
This returns the Hibernate session factory used in the framework. This session factory should not be used by applications directly.

Returns:
the session factory.


Copyright © 2004-2005 trajano.net. All Rights Reserved.