Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.theme
Class ThemeDecoratorMapper

java.lang.Object
  extended by com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
      extended by com.jivesoftware.base.theme.ThemeDecoratorMapper
All Implemented Interfaces:
com.opensymphony.module.sitemesh.DecoratorMapper

public class ThemeDecoratorMapper
extends com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper

A sitemesh decorator mapper that loads the correct theme for each request and creates a ThemeDecorator. If a theme is not found, the default sitemesh decorator mapper will be used.


Field Summary
 
Fields inherited from class com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
config, parent
 
Constructor Summary
ThemeDecoratorMapper()
           
 
Method Summary
 com.opensymphony.module.sitemesh.Decorator getDecorator(javax.servlet.http.HttpServletRequest request, com.opensymphony.module.sitemesh.Page page)
           
 void init(com.opensymphony.module.sitemesh.Config config, java.util.Properties properties, com.opensymphony.module.sitemesh.DecoratorMapper parent)
           
 
Methods inherited from class com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
getNamedDecorator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeDecoratorMapper

public ThemeDecoratorMapper()
Method Detail

init

public void init(com.opensymphony.module.sitemesh.Config config,
                 java.util.Properties properties,
                 com.opensymphony.module.sitemesh.DecoratorMapper parent)
          throws java.lang.InstantiationException
Specified by:
init in interface com.opensymphony.module.sitemesh.DecoratorMapper
Overrides:
init in class com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
Throws:
java.lang.InstantiationException

getDecorator

public com.opensymphony.module.sitemesh.Decorator getDecorator(javax.servlet.http.HttpServletRequest request,
                                                               com.opensymphony.module.sitemesh.Page page)
Specified by:
getDecorator in interface com.opensymphony.module.sitemesh.DecoratorMapper
Overrides:
getDecorator in class com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.