org.apache.wicket.markup.resolver
Class ComponentResolvers

java.lang.Object
  extended by org.apache.wicket.markup.resolver.ComponentResolvers

public class ComponentResolvers
extends Object

Utility class for IComponentResolvers

Author:
igor.vaynberg

Nested Class Summary
static interface ComponentResolvers.ResolverFilter
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 markup
markupStream - The current markupStream
tag - The current component tag while parsing the markup
filter - 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


Copyright © 2006–2016 Apache Software Foundation. All rights reserved.