org.codehaus.plexus.summit.pipeline.valve
Class CreateViewContextValve

java.lang.Object
  extended byorg.codehaus.plexus.logging.AbstractLogEnabled
      extended byorg.codehaus.plexus.summit.AbstractSummitComponent
          extended byorg.codehaus.plexus.summit.pipeline.valve.AbstractValve
              extended byorg.codehaus.plexus.summit.pipeline.valve.CreateViewContextValve
All Implemented Interfaces:
org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.logging.LogEnabled, SummitComponent, Valve

public class CreateViewContextValve
extends AbstractValve


Field Summary
 
Fields inherited from interface org.codehaus.plexus.summit.pipeline.valve.Valve
ROLE
 
Constructor Summary
CreateViewContextValve()
           
 
Method Summary
 void invoke(RunData data)
           
protected  void populateViewContext(RunData data, ViewContext viewContext)
          Populate the velocityContext.
 
Methods inherited from class org.codehaus.plexus.summit.AbstractSummitComponent
contextualize, getContainer, lookup, lookup
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateViewContextValve

public CreateViewContextValve()
Method Detail

invoke

public void invoke(RunData data)
            throws java.io.IOException,
                   ValveInvocationException
Throws:
java.io.IOException
ValveInvocationException

populateViewContext

protected void populateViewContext(RunData data,
                                   ViewContext viewContext)
                            throws ValveInvocationException
Populate the velocityContext.

You might want to override this method in a subclass to provide customized logic for populating the ViewContext. You may want to look at the target view and populate the context according to a set of rules based on that particular target view.

Parameters:
data - RunData for request.
viewContext - ViewContext that will be populated.
Throws:
ValveInvocationException


Copyright © 2001-2007 Codehaus. All Rights Reserved.