net.sourceforge.blogentis.utils.tools
Class FragmentTool

java.lang.Object
  extended bynet.sourceforge.blogentis.utils.tools.FragmentTool
All Implemented Interfaces:
org.apache.turbine.services.pull.ApplicationTool

public class FragmentTool
extends java.lang.Object
implements org.apache.turbine.services.pull.ApplicationTool

Author:
abas

Field Summary
protected  java.util.HashMap blogs
           
static java.lang.String DEFAULT_CLASS
           
static java.lang.String DEFAULT_PACKAGE
           
static java.lang.String DEFAUT_PACKAGE_CLASS
           
static java.lang.String SEARCH_PACKAGE
           
 
Constructor Summary
FragmentTool()
           
 
Method Summary
protected  VelocityFragment getCachedFragment(Blog blog, java.lang.String packageName, java.lang.String fragmentName)
           
 VelocityFragment getFragment(java.lang.String name)
           
 VelocityFragment getFragment(java.lang.String pack, java.lang.String name)
           
 void init(java.lang.Object data)
           
protected  VelocityFragment loadFragment(Blog blog, java.lang.String packageName, java.lang.String name)
           
 void refresh()
           
protected  void setCacheFragment(Blog blog, VelocityFragment fragment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CLASS

public static final java.lang.String DEFAULT_CLASS

SEARCH_PACKAGE

public static final java.lang.String SEARCH_PACKAGE
See Also:
Constant Field Values

DEFAULT_PACKAGE

public static final java.lang.String DEFAULT_PACKAGE
See Also:
Constant Field Values

DEFAUT_PACKAGE_CLASS

public static final java.lang.String DEFAUT_PACKAGE_CLASS
See Also:
Constant Field Values

blogs

protected java.util.HashMap blogs
Constructor Detail

FragmentTool

public FragmentTool()
Method Detail

getCachedFragment

protected VelocityFragment getCachedFragment(Blog blog,
                                             java.lang.String packageName,
                                             java.lang.String fragmentName)

setCacheFragment

protected void setCacheFragment(Blog blog,
                                VelocityFragment fragment)

loadFragment

protected VelocityFragment loadFragment(Blog blog,
                                        java.lang.String packageName,
                                        java.lang.String name)

getFragment

public VelocityFragment getFragment(java.lang.String pack,
                                    java.lang.String name)

getFragment

public VelocityFragment getFragment(java.lang.String name)

init

public void init(java.lang.Object data)
Specified by:
init in interface org.apache.turbine.services.pull.ApplicationTool

refresh

public void refresh()
Specified by:
refresh in interface org.apache.turbine.services.pull.ApplicationTool


Copyright © 2003-2004 SourceForge.net. All Rights Reserved.