public class DefaultMetadataEnvironmentFactory extends MetadataEnvironmentFactory
MetadataEnvironmentFactory.| Constructor and Description |
|---|
DefaultMetadataEnvironmentFactory()
Constructs a default factory.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCustomMetadataEnvironment(MetadataEnvironment e)
Returns
true if the given instance is a custom instance. |
MetadataEnvironment |
newInstance(java.util.Map<java.lang.String,java.lang.Object> config)
Creates a new instance of
MetadataEnvironment based on the
current user context and the configuration. |
protected boolean |
supportsUnifiedEnvironments()
Returns
true if the metadata environments created by this
factory are unified environments. |
isUnifiedpublic DefaultMetadataEnvironmentFactory()
public MetadataEnvironment newInstance(java.util.Map<java.lang.String,java.lang.Object> config)
MetadataEnvironmentFactoryMetadataEnvironment based on the
current user context and the configuration.newInstance in class MetadataEnvironmentFactoryconfig - the configuration of the new instance; null if
the default configuration should be usedMetadataEnvironment based on the
current user context and the configuration if suppliedpublic boolean isCustomMetadataEnvironment(MetadataEnvironment e)
MetadataEnvironmentFactorytrue if the given instance is a custom instance. A
custom instance is an instance that is not created by this factory.isCustomMetadataEnvironment in class MetadataEnvironmentFactorye - the instance to be checkedtrue if the given instance is a custom instanceMetadataEnvironmentFactory.newInstance(java.util.Map<java.lang.String, java.lang.Object>)protected boolean supportsUnifiedEnvironments()
MetadataEnvironmentFactorytrue if the metadata environments created by this
factory are unified environments.
A unified environment supports multiple repositories. A non-unified
environment supports only one single MDS repository. By default this
method returns true. The implementation may allow this
method to return false in a system that is not ready to
be transitioned into a unified environment but the new code is already
in place.
supportsUnifiedEnvironments in class MetadataEnvironmentFactorytrue if the metadata environment is unified;
false otherwise