org.codehaus.wadi.core.contextualiser
Class AbstractDelegatingContextualiser

java.lang.Object
  extended by org.codehaus.wadi.core.contextualiser.AbstractChainedContextualiser
      extended by org.codehaus.wadi.core.contextualiser.AbstractDelegatingContextualiser
All Implemented Interfaces:
Contextualiser, Lifecycle
Direct Known Subclasses:
SerialContextualiser, StatelessContextualiser

public abstract class AbstractDelegatingContextualiser
extends AbstractChainedContextualiser

Version:
$Revision: 2317 $
Author:
Jules Gosnell

Field Summary
 
Fields inherited from class org.codehaus.wadi.core.contextualiser.AbstractChainedContextualiser
next
 
Constructor Summary
AbstractDelegatingContextualiser(Contextualiser next)
           
 
Method Summary
 Immoter getDemoter(java.lang.String name, Motable motable)
          Return an immoter to the first Contextualiser below us, which would be happy to accept this Motable - in other words - would not evict() it.
 java.util.Set getSessionNames()
           
 Immoter getSharedDemoter()
          Return an Immoter to the first SharedContextualiser below us.
 void promoteToExclusive(Immoter immoter)
          Pass this Immoter up to the first ExclusiveContextualiser above us, where...
 
Methods inherited from class org.codehaus.wadi.core.contextualiser.AbstractChainedContextualiser
doFindRelevantSessionNames, doStart, doStop, findRelevantSessionNames, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.wadi.core.contextualiser.Contextualiser
contextualise
 

Constructor Detail

AbstractDelegatingContextualiser

public AbstractDelegatingContextualiser(Contextualiser next)
Method Detail

getDemoter

public Immoter getDemoter(java.lang.String name,
                          Motable motable)
Description copied from interface: Contextualiser
Return an immoter to the first Contextualiser below us, which would be happy to accept this Motable - in other words - would not evict() it.

Parameters:
name - - uid of the Motable
motable - - the Motable in question
Returns:
- a Demoter - a delegate capable of arranging immotion into the correct Contextualiser

getSharedDemoter

public Immoter getSharedDemoter()
Description copied from interface: Contextualiser
Return an Immoter to the first SharedContextualiser below us.

Returns:
the Immoter

promoteToExclusive

public void promoteToExclusive(Immoter immoter)
Description copied from interface: Contextualiser
Pass this Immoter up to the first ExclusiveContextualiser above us, where...

Parameters:
immoter - the Immoter

getSessionNames

public java.util.Set getSessionNames()


Copyright © 2010. All Rights Reserved.