public abstract class AbstractProductDerivation extends Object implements ProductDerivation
TYPE_FEATURE, TYPE_PRODUCT| Constructor and Description |
|---|
AbstractProductDerivation() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
afterSpecificationSet(Configuration conf)
Called after the specification has been set.
|
void |
beforeConfigurationClose(Configuration conf)
Called before the given Configuration is closed.
|
boolean |
beforeConfigurationConstruct(ConfigurationProvider cp)
Provides the instance with a callback to mutate the initial properties
of the
ConfigurationProvider. |
boolean |
beforeConfigurationLoad(Configuration conf)
Provides the instance with the opportunity to mutate
conf before the user configuration is applied. |
List<String> |
getAnchorsInFile(File file)
Return a List
file. |
List<String> |
getAnchorsInResource(String resource)
Return a List
resource. |
String |
getConfigurationPrefix()
Return the configuration prefix for properties of this product.
|
String |
getDefaultResourceLocation()
Return a string identifying the default resource location for this
product derivation, if one exists.
|
Set<String> |
getSupportedQueryHints()
Return set of Query hint keys recognized by this receiver.
|
ConfigurationProvider |
load(File file,
String anchor)
Load given file, or return null if it is not a file this receiver
understands.
|
ConfigurationProvider |
load(String resource,
String anchor,
ClassLoader loader)
Load the given given resource into the returned ConfigurationProvider,
or return null if it is not a resource this receiver understands.
|
ConfigurationProvider |
loadDefaults(ClassLoader loader)
Load defaults into the returned ConfigurationProvider, or return null if
no defaults are found.
|
ConfigurationProvider |
loadGlobals(ClassLoader loader)
Load globals into the returned ConfigurationProvider, or return null if
no globals are found.
|
void |
validate()
Ensure that this derivation is valid.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypepublic String getConfigurationPrefix()
ProductDerivationgetConfigurationPrefix in interface ProductDerivationpublic void validate()
throws Exception
ProductDerivationvalidate in interface ProductDerivationExceptionpublic ConfigurationProvider loadGlobals(ClassLoader loader) throws Exception
ProductDerivationloadGlobals in interface ProductDerivationExceptionpublic ConfigurationProvider loadDefaults(ClassLoader loader) throws Exception
ProductDerivationloadDefaults in interface ProductDerivationExceptionpublic ConfigurationProvider load(String resource, String anchor, ClassLoader loader) throws Exception
ProductDerivationload in interface ProductDerivationanchor - optional named anchor within a multiple-configuration
resourceExceptionpublic ConfigurationProvider load(File file, String anchor) throws Exception
ProductDerivationload in interface ProductDerivationanchor - optional named anchor within a multiple-configuration fileExceptionpublic String getDefaultResourceLocation()
ProductDerivationnull.getDefaultResourceLocation in interface ProductDerivationpublic List<String> getAnchorsInFile(File file) throws Exception
ProductDerivationfile.
The returned names are not fully-qualified, so must be used in
conjunction with file in calls
to ProductDerivation.load(java.io.File, String).
Returns null or an empty list if no anchors could be found.getAnchorsInFile in interface ProductDerivationExceptionpublic List<String> getAnchorsInResource(String resource) throws Exception
ProductDerivationresource. The returned names are not
fully-qualified, so must be used in conjunction with
resource in calls to ProductDerivation.load(java.io.File, String).
Returns null or an empty list if no anchors could be found.getAnchorsInResource in interface ProductDerivationExceptionpublic boolean beforeConfigurationConstruct(ConfigurationProvider cp)
ProductDerivationConfigurationProvider. This is primarily to alter or
add properties that determine what type of configuration is constructed,
and therefore is typically used at runtime only.beforeConfigurationConstruct in interface ProductDerivationpublic boolean beforeConfigurationLoad(Configuration conf)
ProductDerivationconf before the user configuration is applied.beforeConfigurationLoad in interface ProductDerivationpublic boolean afterSpecificationSet(Configuration conf)
ProductDerivationafterSpecificationSet in interface ProductDerivationpublic void beforeConfigurationClose(Configuration conf)
ProductDerivationbeforeConfigurationClose in interface ProductDerivationpublic Set<String> getSupportedQueryHints()
ProductDerivationgetSupportedQueryHints in interface ProductDerivationCopyright © 2006–2022 Apache Software Foundation. All rights reserved.