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 String
ATTR_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 void
fail(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()
String
getProperty(String name)
Returns the configuration property with the given name ornull
if it is not defined.InputStream
getSource()
Returns an input stream that contains the source xml that constructs this configString
getSourceAsString()
Returns the source xml that constructs this configstatic VaultFsConfig
load(File file)
static VaultFsConfig
load(InputStream in, String name)
The specified stream remains open after this method returns.protected abstract void
process(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:
ConfigurationException
IOException
-
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:
ConfigurationException
IOException
-
getProperty
public String getProperty(String name)
Description copied from interface:VaultFsConfig
Returns the configuration property with the given name ornull
if it is not defined.- Specified by:
getProperty
in 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:VaultFsConfig
Returns an input stream that contains the source xml that constructs this config- Specified by:
getSource
in interfaceVaultFsConfig
- Returns:
- the source config
-
getSourceAsString
public String getSourceAsString()
Description copied from interface:VaultFsConfig
Returns the source xml that constructs this config- Specified by:
getSourceAsString
in interfaceVaultFsConfig
- Returns:
- the source xml
-
getAggregators
public List<Aggregator> getAggregators()
Description copied from interface:VaultFsConfig
Returns a list of configured aggregators.- Specified by:
getAggregators
in interfaceVaultFsConfig
- Returns:
- the configured aggregators.
-
getHandlers
public List<ArtifactHandler> getHandlers()
Description copied from interface:VaultFsConfig
Returns a list of configured artifact handlers.- Specified by:
getHandlers
in 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
-
-