Class AbstractVaultFsConfig
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.config.AbstractVaultFsConfig
-
- All Implemented Interfaces:
VaultFsConfig
public abstract class AbstractVaultFsConfig extends java.lang.Object implements VaultFsConfig
JcrFsConfig
...
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.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 Concrete Methods Modifier and Type Method Description java.util.List<Aggregator>
getAggregators()
Returns a list of configured aggregators.java.util.List<ArtifactHandler>
getHandlers()
Returns a list of configured artifact handlers.java.lang.String
getProperty(java.lang.String name)
Returns the configuration property with the given name ornull
if it is not defined.java.io.InputStream
getSource()
Returns an input stream that contains the source xml that constructs this configjava.lang.String
getSourceAsString()
Returns the source xml that constructs this configstatic VaultFsConfig
load(java.io.File file)
static VaultFsConfig
load(java.io.InputStream in, java.lang.String name)
The specified stream remains open after this method returns.
-
-
-
Field Detail
-
ATTR_VERSION
public static final java.lang.String ATTR_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
load
public static VaultFsConfig load(java.io.File file) throws ConfigurationException, java.io.IOException
- Throws:
ConfigurationException
java.io.IOException
-
load
public static VaultFsConfig load(java.io.InputStream in, java.lang.String name) throws ConfigurationException, java.io.IOException
The specified stream remains open after this method returns.
- Parameters:
in
-name
-- Returns:
- Throws:
ConfigurationException
java.io.IOException
-
getProperty
public java.lang.String getProperty(java.lang.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
-
getSource
public java.io.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 java.lang.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 java.util.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 java.util.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.
-
-