Class AbstractVaultFsConfig
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.config.AbstractVaultFsConfig
-
- All Implemented Interfaces:
VaultFsConfig
public abstract class AbstractVaultFsConfig extends Object implements VaultFsConfig
JcrFsConfig...
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_VERSION-
Fields inherited from interface org.apache.jackrabbit.vault.fs.api.VaultFsConfig
NAME_USE_BINARY_REFERENCES
-
-
Constructor Summary
Constructors Constructor Description AbstractVaultFsConfig()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidfail(String msg, Node elem)List<Aggregator>getAggregators()Returns a list of configured aggregators.protected static Collection<Element>getChildElements(Node elem)List<ArtifactHandler>getHandlers()Returns a list of configured artifact handlers.protected Map<String,String>getProperties()StringgetProperty(String name)Returns the configuration property with the given name ornullif it is not defined.InputStreamgetSource()Returns an input stream that contains the source xml that constructs this configStringgetSourceAsString()Returns the source xml that constructs this configstatic VaultFsConfigload(File file)static VaultFsConfigload(InputStream in, String name)The specified stream remains open after this method returns.protected abstract voidprocess(Element doc)
-
-
-
Field Detail
-
ATTR_VERSION
public static final String ATTR_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
load
public static VaultFsConfig load(File file) throws ConfigurationException, IOException
- Throws:
ConfigurationExceptionIOException
-
load
public static VaultFsConfig load(InputStream in, String name) throws ConfigurationException, IOException
The specified stream remains open after this method returns.
- Parameters:
in-name-- Returns:
- Throws:
ConfigurationExceptionIOException
-
getProperty
public String getProperty(String name)
Description copied from interface:VaultFsConfigReturns the configuration property with the given name ornullif it is not defined.- Specified by:
getPropertyin interfaceVaultFsConfig- Parameters:
name- the name of the property- Returns:
- the value or null
-
process
protected abstract void process(Element doc) throws ConfigurationException
- Throws:
ConfigurationException
-
getSource
public InputStream getSource()
Description copied from interface:VaultFsConfigReturns an input stream that contains the source xml that constructs this config- Specified by:
getSourcein interfaceVaultFsConfig- Returns:
- the source config
-
getSourceAsString
public String getSourceAsString()
Description copied from interface:VaultFsConfigReturns the source xml that constructs this config- Specified by:
getSourceAsStringin interfaceVaultFsConfig- Returns:
- the source xml
-
getAggregators
public List<Aggregator> getAggregators()
Description copied from interface:VaultFsConfigReturns a list of configured aggregators.- Specified by:
getAggregatorsin interfaceVaultFsConfig- Returns:
- the configured aggregators.
-
getHandlers
public List<ArtifactHandler> getHandlers()
Description copied from interface:VaultFsConfigReturns a list of configured artifact handlers.- Specified by:
getHandlersin interfaceVaultFsConfig- Returns:
- the configured artifact handlers.
-
getChildElements
protected static Collection<Element> getChildElements(Node elem)
-
fail
protected void fail(String msg, Node elem) throws ConfigurationException
- Throws:
ConfigurationException
-
-