public class CompiledQueryProfileRegistry extends com.yahoo.component.provider.ComponentRegistry<CompiledQueryProfile>
Modifier and Type | Field and Description |
---|---|
static CompiledQueryProfileRegistry |
empty
The empty, frozen registry
|
Constructor and Description |
---|
CompiledQueryProfileRegistry()
Creates a compiled query profile registry with no types
|
CompiledQueryProfileRegistry(QueryProfileTypeRegistry typeRegistry) |
Modifier and Type | Method and Description |
---|---|
CompiledQueryProfile |
findQueryProfile(String idString)
Returns a query profile for the given request string, or null if a suitable one is not found.
|
QueryProfileTypeRegistry |
getTypeRegistry() |
void |
register(CompiledQueryProfile profile)
Registers a type by its id
|
public static final CompiledQueryProfileRegistry empty
public CompiledQueryProfileRegistry()
public CompiledQueryProfileRegistry(QueryProfileTypeRegistry typeRegistry)
public void register(CompiledQueryProfile profile)
public QueryProfileTypeRegistry getTypeRegistry()
public CompiledQueryProfile findQueryProfile(String idString)
Returns a query profile for the given request string, or null if a suitable one is not found.
The request string must be a validComponentId
or null.The version part (if any) is matched used the usual component version patching rules. If the name part matches a query profile name perfectly, that profile is returned. If not, and the name is a slash-separated path, the profile with the longest matching left sub-path which has a type which allows path matching is used. If there is no such profile, null is returned.
Copyright © 2018. All rights reserved.