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)
MetaDataLocatorfindMeta in interface MetaDataLocatorkey - 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)
MetaDataLocatorfindMeta in interface MetaDataLocatorkey - the key used to locate the meta data (case insensitive)pageName - the name of the page to search5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.