org.codehaus.plexus.summit.resolver
Class AbstractResolver

java.lang.Object
  extended byorg.codehaus.plexus.logging.AbstractLogEnabled
      extended byorg.codehaus.plexus.summit.AbstractSummitComponent
          extended byorg.codehaus.plexus.summit.resolver.AbstractResolver
All Implemented Interfaces:
org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.logging.LogEnabled, Resolver, SummitComponent
Direct Known Subclasses:
ClassicResolver, SimpleResolver, TemplateRenderer

public abstract class AbstractResolver
extends AbstractSummitComponent
implements Resolver

The base class from which all Resolvers are derived.

Version:
$Id: AbstractResolver.java 2289 2005-07-11 04:22:34Z jvanzyl $
Author:
Jason van Zyl

Field Summary
private  java.lang.String defaultView
           
private  java.lang.String errorView
           
private  java.lang.String initialView
           
private  java.lang.String resultMessagesView
           
 
Fields inherited from class org.codehaus.plexus.summit.AbstractSummitComponent
 
Fields inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
 
Fields inherited from interface org.codehaus.plexus.summit.resolver.Resolver
ROLE
 
Constructor Summary
AbstractResolver()
           
 
Method Summary
 java.lang.String getDefaultView()
           
 java.lang.String getErrorView()
           
 java.lang.String getInitialView()
           
(package private)  java.util.List getPossibleViews(java.lang.String target, java.lang.String targetPrefix)
           
protected abstract  Renderer getRenderer(java.lang.String target)
           
 java.lang.String getResultMessagesView()
           
protected  View getView(java.lang.String target)
          Gets the view attribute of the AbstractResolver object
protected  View getView(java.lang.String target, java.lang.String targetPrefix)
          Gets the view attribute of the AbstractResolver object
protected  View getView(java.lang.String target, java.lang.String targetPrefix, java.lang.String defaultView)
          Gets the view attribute of the AbstractResolver object
 
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
 
Methods inherited from interface org.codehaus.plexus.summit.resolver.Resolver
resolve
 

Field Detail

errorView

private java.lang.String errorView

resultMessagesView

private java.lang.String resultMessagesView

defaultView

private java.lang.String defaultView

initialView

private java.lang.String initialView
Constructor Detail

AbstractResolver

public AbstractResolver()
Method Detail

getErrorView

public java.lang.String getErrorView()
Specified by:
getErrorView in interface Resolver

getResultMessagesView

public java.lang.String getResultMessagesView()
Specified by:
getResultMessagesView in interface Resolver

getDefaultView

public java.lang.String getDefaultView()
Specified by:
getDefaultView in interface Resolver

getInitialView

public java.lang.String getInitialView()
Specified by:
getInitialView in interface Resolver

getView

protected View getView(java.lang.String target)
                throws java.lang.Exception
Gets the view attribute of the AbstractResolver object

Throws:
java.lang.Exception

getView

protected View getView(java.lang.String target,
                       java.lang.String targetPrefix)
                throws java.lang.Exception
Gets the view attribute of the AbstractResolver object

Throws:
java.lang.Exception

getRenderer

protected abstract Renderer getRenderer(java.lang.String target)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getView

protected View getView(java.lang.String target,
                       java.lang.String targetPrefix,
                       java.lang.String defaultView)
                throws java.lang.Exception
Gets the view attribute of the AbstractResolver object

Throws:
java.lang.Exception

getPossibleViews

java.util.List getPossibleViews(java.lang.String target,
                                java.lang.String targetPrefix)
                          throws java.lang.Exception
Throws:
java.lang.Exception