Class MetaDataLocatorImpl
java.lang.Object
org.apache.tapestry5.internal.services.MetaDataLocatorImpl
- All Implemented Interfaces:
MetaDataLocator
-
Constructor Summary
ConstructorsConstructorDescriptionMetaDataLocatorImpl
(SymbolSource symbolSource, TypeCoercer typeCoercer, ComponentModelSource modelSource, Map<String, String> configuration) -
Method Summary
Modifier and TypeMethodDescription<T> T
Searches for the value for the corresponding key for a particular page name (the page will not be loaded).<T> T
findMeta
(String key, ComponentResources resources, Class<T> expectedType) Searches for the value for the corresponding key.void
setupInvalidation
(InvalidationEventHub invalidationEventHub)
-
Constructor Details
-
MetaDataLocatorImpl
public MetaDataLocatorImpl(SymbolSource symbolSource, TypeCoercer typeCoercer, ComponentModelSource modelSource, Map<String, String> configuration)
-
-
Method Details
-
setupInvalidation
@PostInjection public void setupInvalidation(@ComponentClasses InvalidationEventHub invalidationEventHub) -
findMeta
Description copied from interface:MetaDataLocator
Searches for the value for the corresponding key. The value, if located, will have symbols expanded, and will be type coerced to the desired type.- Specified by:
findMeta
in interfaceMetaDataLocator
- Parameters:
key
- the key used to locate the meta data (case insensitive)resources
- the resources of the initial component used in the search- Returns:
- the value if found (in the component, the component's container, etc. or via a folder default)
-
findMeta
Description copied from interface:MetaDataLocator
Searches for the value for the corresponding key for a particular page name (the page will not be loaded). The value, if located, will have symbols expanded, and will be type coerced to the desired type.- Specified by:
findMeta
in interfaceMetaDataLocator
- Parameters:
key
- the key used to locate the meta data (case insensitive)pageName
- the name of the page to search- Returns:
- the value if found
-