public class CompiledQueryProfileRegistry extends com.yahoo.component.provider.ComponentRegistry<CompiledQueryProfile>
Modifier and Type | Field and Description |
---|---|
static CompiledQueryProfileRegistry |
empty
The empty, frozen registry
|
private QueryProfileTypeRegistry |
typeRegistry |
Constructor and Description |
---|
CompiledQueryProfileRegistry()
Creates a compiled query profile registry with no types
|
CompiledQueryProfileRegistry(QueryProfileTypeRegistry typeRegistry) |
Modifier and Type | Method and Description |
---|---|
private static CompiledQueryProfileRegistry |
createFrozen() |
private CompiledQueryProfile |
findPathParentQueryProfile(com.yahoo.component.ComponentSpecification id) |
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
private final QueryProfileTypeRegistry typeRegistry
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.
private CompiledQueryProfile findPathParentQueryProfile(com.yahoo.component.ComponentSpecification id)
private static CompiledQueryProfileRegistry createFrozen()
Copyright © 2017. All rights reserved.