Class ComponentResolvers
- java.lang.Object
-
- org.apache.wicket.markup.resolver.ComponentResolvers
-
public class ComponentResolvers extends Object
Utility class forIComponentResolver
s- Author:
- igor.vaynberg
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ComponentResolvers.ResolverFilter
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Component
resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag tag, ComponentResolvers.ResolverFilter filter)
Attempts to resolve a component using resolvers.static Component
resolveByApplication(MarkupContainer container, MarkupStream markupStream, ComponentTag tag, ComponentResolvers.ResolverFilter filter)
Attempts to resolve a component via application registered resolvers.static Component
resolveByComponentHierarchy(MarkupContainer container, MarkupStream markupStream, ComponentTag tag)
Attempts to resolve a component via the component hierarchy using resolvers.
-
-
-
Method Detail
-
resolve
public static Component resolve(MarkupContainer container, MarkupStream markupStream, ComponentTag tag, ComponentResolvers.ResolverFilter filter)
Attempts to resolve a component using resolvers. Tries resolvers in the component hierarchy as well as application-wide.This method encapsulates the contract of resolving components and should be used any time a component needs to be resolved under normal circumstances.
- Parameters:
container
- The container parsing its markupmarkupStream
- The current markupStreamtag
- The current component tag while parsing the markupfilter
- A filter for application-wide resolvers- Returns:
- component or
null
if not found
-
resolveByApplication
public static Component resolveByApplication(MarkupContainer container, MarkupStream markupStream, ComponentTag tag, ComponentResolvers.ResolverFilter filter)
Attempts to resolve a component via application registered resolvers.- Parameters:
container
-markupStream
-tag
-filter
-- Returns:
- Null, if no component was found
-
resolveByComponentHierarchy
public static Component resolveByComponentHierarchy(MarkupContainer container, MarkupStream markupStream, ComponentTag tag)
Attempts to resolve a component via the component hierarchy using resolvers.- Parameters:
container
-markupStream
-tag
-- Returns:
- Null, if no component was found
-
-