public class MetaDataLocatorImpl extends Object implements MetaDataLocator
Constructor and Description |
---|
MetaDataLocatorImpl(SymbolSource symbolSource,
TypeCoercer typeCoercer,
ComponentModelSource modelSource,
Map<String,String> configuration) |
Modifier and Type | Method and Description |
---|---|
<T> T |
findMeta(String key,
ComponentResources resources,
Class<T> expectedType)
Searches for the value for the corresponding key.
|
<T> T |
findMeta(String key,
String pageName,
Class<T> expectedType)
Searches for the value for the corresponding key for a particular page name (the page will not be
loaded).
|
void |
setupInvalidation(InvalidationEventHub invalidationEventHub) |
public MetaDataLocatorImpl(SymbolSource symbolSource, TypeCoercer typeCoercer, ComponentModelSource modelSource, Map<String,String> configuration)
@PostInjection public void setupInvalidation(@ComponentClasses InvalidationEventHub invalidationEventHub)
public <T> T findMeta(String key, ComponentResources resources, Class<T> expectedType)
MetaDataLocator
findMeta
in interface MetaDataLocator
key
- the key used to locate the meta data (case insensitive)resources
- the resources of the initial component used in the searchpublic <T> T findMeta(String key, String pageName, Class<T> expectedType)
MetaDataLocator
findMeta
in interface MetaDataLocator
key
- the key used to locate the meta data (case insensitive)pageName
- the name of the page to search${project.version} - Copyright © 2003-2015 The Apache Software Foundation.