|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdiseq.filter.FilterPersistenceImpl
FilterPersistenceImpl holds all the filter configuration data used by jDiSeq. It will allow clients to ask for filter configuration data whenever needed.
Field Summary | |
static Namespace |
NAMESPACE
XML namespace definition. |
Constructor Summary | |
FilterPersistenceImpl()
Initializes the configuration with the default filter configuration file name. |
|
FilterPersistenceImpl(java.io.InputStream inputStream)
Reads configuration from an InputStream given by the client. |
|
FilterPersistenceImpl(java.lang.String configFilename)
Initilized the configuration based on the filename given as a parameter. |
Method Summary | |
protected java.io.InputStream |
getConfigurationInputStream(java.lang.String configFile)
|
Element |
getMethodFilterParent()
Gets the JDOM representation of the method filter parent node in the JDOM three structure. |
Element |
getPackageFilterParent()
Gets the JDOM representation of the package filter parent node in the JDOM three structure. |
Document |
getXMLDocmuent()
|
Filter[] |
load()
|
MethodFilter[] |
loadMethodFilter()
|
PackageFilter[] |
loadPackageFilter()
|
protected Element |
parseConfiguration(java.io.InputStream inputStream)
Reads the configuration file's content and sets the configuration settings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Namespace NAMESPACE
Constructor Detail |
public FilterPersistenceImpl(java.io.InputStream inputStream) throws InvalidConfigurationException
InputStream
given by the client.
inputStream
- InputStream
to the configuration file
InvalidConfigurationException
- Failed to read configuration filepublic FilterPersistenceImpl(java.lang.String configFilename) throws InvalidConfigurationException
configFilename
- Name of the filter configuration file
InvalidConfigurationException
- Failed to read configuration fileFilterPersistenceImpl(InputStream)
public FilterPersistenceImpl() throws InvalidConfigurationException
FilterPersistenceImpl(String)
Method Detail |
public Filter[] load() throws InvalidConfigurationException
load
in interface org.jdiseq.filter.FilterPersistence
InvalidConfigurationException
public MethodFilter[] loadMethodFilter() throws InvalidConfigurationException
loadMethodFilter
in interface org.jdiseq.filter.FilterPersistence
InvalidConfigurationException
public PackageFilter[] loadPackageFilter() throws InvalidConfigurationException
loadPackageFilter
in interface org.jdiseq.filter.FilterPersistence
InvalidConfigurationException
public Element getMethodFilterParent()
getMethodFilterParent
in interface org.jdiseq.filter.Persister
public Element getPackageFilterParent()
getPackageFilterParent
in interface org.jdiseq.filter.Persister
public Document getXMLDocmuent()
getXMLDocmuent
in interface org.jdiseq.filter.Persister
protected Element parseConfiguration(java.io.InputStream inputStream) throws InvalidConfigurationException
inputStream
- InputStream
used to read the configuration file
XML
document
InvalidConfigurationException
- Failed to access the configuration fileprotected java.io.InputStream getConfigurationInputStream(java.lang.String configFile) throws InvalidConfigurationException
configFile
- name of the configuration file
InvalidConfigurationException
- Failed to read the InputStream
content
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |