FileDocCategorySizeDatePackage
ConfigurableJarFileFilter.javaAPI DocGlassfish v2 API2966Fri May 04 22:30:26 BST 2007com.sun.enterprise.addons.util

ConfigurableJarFileFilter

public class ConfigurableJarFileFilter extends Object implements FilenameFilter
A Filenamefilter that return all configurator plugins that require an invocation of configurator api.
since
9.1
authod
binod@dev.java.net

Fields Summary
private Pattern
p
private com.sun.enterprise.addons.AddonRegistry
ar
protected static final String
regex
Constructors Summary
public ConfigurableJarFileFilter(com.sun.enterprise.addons.AddonRegistry ar)

       
        p = Pattern.compile(".*" + regex);
        this.ar = ar;
    
Methods Summary
public booleanaccept(java.io.File file, java.lang.String name)

        return p.matcher(name).matches();
        /*
        the check is done any way before invoking API
        if ( p.matcher(name).matches() ) {
            String addon = name.split(regex)[0];
            return ar.isConfigurationRequired(addon);
        } 
        return false;
        */