org.codehaus.waffle.context
Class AbstractContextContainerFactory

java.lang.Object
  extended by org.codehaus.waffle.context.AbstractContextContainerFactory
All Implemented Interfaces:
ContextContainerFactory
Direct Known Subclasses:
PicoContextContainerFactory

public abstract class AbstractContextContainerFactory
extends java.lang.Object
implements ContextContainerFactory

Author:
Michael Ward, Mauro Talevi

Field Summary
protected  ContextContainer applicationContextContainer
           
protected  MessageResources messageResources
           
protected  RegistrarAssistant registrarAssistant
           
 
Constructor Summary
AbstractContextContainerFactory(MessageResources messageResources, ContextMonitor contextMonitor)
           
 
Method Summary
protected abstract  ContextContainer buildApplicationContextContainer()
           
protected abstract  Registrar createRegistrar(ContextContainer contextContainer)
           
 void destroy()
           
 ContextContainer getApplicationContextContainer()
           
protected  ContextMonitor getContextMonitor()
           
 RegistrarAssistant getRegistrarAssistant()
           
 void initialize(javax.servlet.ServletContext servletContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.waffle.context.ContextContainerFactory
buildRequestLevelContainer, buildSessionLevelContainer
 

Field Detail

messageResources

protected final MessageResources messageResources

registrarAssistant

protected RegistrarAssistant registrarAssistant

applicationContextContainer

protected ContextContainer applicationContextContainer
Constructor Detail

AbstractContextContainerFactory

public AbstractContextContainerFactory(MessageResources messageResources,
                                       ContextMonitor contextMonitor)
Method Detail

getRegistrarAssistant

public RegistrarAssistant getRegistrarAssistant()

initialize

public void initialize(javax.servlet.ServletContext servletContext)
                throws WaffleException
Specified by:
initialize in interface ContextContainerFactory
Throws:
WaffleException

destroy

public void destroy()
Specified by:
destroy in interface ContextContainerFactory

getApplicationContextContainer

public ContextContainer getApplicationContextContainer()

getContextMonitor

protected ContextMonitor getContextMonitor()

buildApplicationContextContainer

protected abstract ContextContainer buildApplicationContextContainer()

createRegistrar

protected abstract Registrar createRegistrar(ContextContainer contextContainer)


Copyright © 2008. All Rights Reserved.