public class SpecialTokenRegistry extends Object
Constructor and Description |
---|
SpecialTokenRegistry()
Creates an empty special token registry which
does not subscribe to any configuration
|
SpecialTokenRegistry(com.yahoo.vespa.configdefinition.SpecialtokensConfig config)
Create a special token registry from a configuration object.
|
SpecialTokenRegistry(String configId)
Create a special token registry which subscribes to the specialtokens
configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
addSpecialTokens(SpecialTokens specialTokens)
Adds a SpecialTokens instance to the registry.
|
SpecialTokens |
getSpecialTokens(String name)
Returns the currently authorative list of special tokens for
a given name.
|
public SpecialTokenRegistry()
public SpecialTokenRegistry(String configId)
public SpecialTokenRegistry(com.yahoo.vespa.configdefinition.SpecialtokensConfig config)
public void addSpecialTokens(SpecialTokens specialTokens)
specialTokens
- the SpecialTokens object to addpublic SpecialTokens getSpecialTokens(String name)
name
- the name of the special tokens to return
null, the empth string or the string "default" returns
the default onesCopyright © 2018. All rights reserved.