|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.trajano.twiff.internal.ServletContextAdapterImpl
public class ServletContextAdapterImpl
This provides access to the servlet context data. Adapters like this are meant to remove the implicit casting performed by those that use it.
| Constructor Summary | |
|---|---|
ServletContextAdapterImpl(ServletContext servletContext)
Creates the adapter. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletContextAdapterImpl(ServletContext servletContext)
servletContext - the context to adapt| Method Detail |
|---|
public final MutablePicoContainer getContainer()
PicoContainer stored in the servlet context. The
container is stored in the attribute
TwiffInternal.APP_CONTAINER_KEY.
getContainer in interface ServletContextAdapterpublic final ContainerBuilder getContainerBuilder()
ContainerBuilder stored in the servlet context. The
builder is stored in the attribute
Twiff.CONTAINER_BUILDER_KEY.
getContainerBuilder in interface ServletContextAdapterpublic final org.hibernate.SessionFactory getSessionFactory()
TwiffInternal.SESSION_FACTORY_KEY.
getSessionFactory in interface ServletContextAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||