SRJRCFrames
v0.1.296

de.schwarzrot.jar.support
Class JarValidator

java.lang.Object
  extended by de.schwarzrot.jar.support.JarValidator
Direct Known Subclasses:
JarApplicationValidator, JarProcessValidator, JarServiceValidator, JarThemeValidator

public class JarValidator
extends Object

base class for validation of jar-extensions. There are different types of extensions supported, each of them has its own validator. The JarHandler is asked for an appropiate validator and this class serves also as a fallback for unknown extension types.

This class will treat the extension as simple library and will only add the library and its classpath to the classpath.

Author:
Reinhard Mantey

Field Summary
static String CLASS_PATH
           
static String CONTEXT_PATH
           
static String IMPLEMENTATION_NAME
           
static String IMPLEMENTATION_TYPE
           
static String IMPLEMENTATION_VERSION
           
 
Constructor Summary
JarValidator()
           
 
Method Summary
protected  String determineEntry(JarFile jarFile, String entryType)
           
protected  org.apache.commons.logging.Log getLogger()
           
 Object getType()
           
 JarExtension validateExtension(JarFile jarFile, Attributes ma)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT_PATH

public static final String CONTEXT_PATH
See Also:
Constant Field Values

CLASS_PATH

public static final String CLASS_PATH
See Also:
Constant Field Values

IMPLEMENTATION_NAME

public static final String IMPLEMENTATION_NAME
See Also:
Constant Field Values

IMPLEMENTATION_TYPE

public static final String IMPLEMENTATION_TYPE
See Also:
Constant Field Values

IMPLEMENTATION_VERSION

public static final String IMPLEMENTATION_VERSION
See Also:
Constant Field Values
Constructor Detail

JarValidator

public JarValidator()
Method Detail

getType

public Object getType()

validateExtension

public JarExtension validateExtension(JarFile jarFile,
                                      Attributes ma)

determineEntry

protected String determineEntry(JarFile jarFile,
                                String entryType)

getLogger

protected final org.apache.commons.logging.Log getLogger()

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.