org.ztemplates.web
Class ZDefaultClassPathFilter

java.lang.Object
  extended by org.ztemplates.web.ZDefaultClassPathFilter
All Implemented Interfaces:
org.zclasspath.ZIClassPathFilter

public abstract class ZDefaultClassPathFilter
extends Object
implements org.zclasspath.ZIClassPathFilter

Default classpath filter behavior accepts only ztemplates classes and skips all other. Also scans only web-inf/lib and web-inf/classes. See http://www.ztemplates.org/Edit.jsp?page=Install for how to override this behavior.

Author:
gerdziegler.de

Constructor Summary
ZDefaultClassPathFilter()
           
 
Method Summary
 boolean acceptClass(String name)
           
 boolean acceptClasspathPart(String name)
           
 boolean acceptResource(String resource)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZDefaultClassPathFilter

public ZDefaultClassPathFilter()
Method Detail

acceptClass

public boolean acceptClass(String name)
                    throws Exception
Specified by:
acceptClass in interface org.zclasspath.ZIClassPathFilter
Throws:
Exception

acceptClasspathPart

public boolean acceptClasspathPart(String name)
                            throws Exception
Specified by:
acceptClasspathPart in interface org.zclasspath.ZIClassPathFilter
Throws:
Exception

acceptResource

public boolean acceptResource(String resource)
                       throws Exception
Specified by:
acceptResource in interface org.zclasspath.ZIClassPathFilter
Throws:
Exception


Copyright © 2011. All Rights Reserved.