org.skyscreamer.yoga.selector.parser
Interface AliasSelectorResolver

All Known Implementing Classes:
DynamicPropertyResolver, MapSelectorResolver

public interface AliasSelectorResolver

An AliasSelectorResolver allows you to define meaningful aliases for a given selector expression. In a production environment, you will probably want to disable the ability to query through arbitrary selector, and only allow access to your system through defined aliases. Inject an implementation of AliasSelectorResolver into your SelectorParser to use it in your application. Yoga provides default implementations for defining aliases through property files or configured maps, but defining your own is as simple as implementing the interface.

See Also:
DynamicPropertyResolver, MapSelectorResolver

Method Summary
 String resolveSelector(String aliasSelectorExpression)
          The method that translates an alias into a fully-formed selector expression
 

Method Detail

resolveSelector

String resolveSelector(String aliasSelectorExpression)
                       throws ParseSelectorException
The method that translates an alias into a fully-formed selector expression

Parameters:
aliasSelectorExpression - the alias expression passed in on the URI
Returns:
the complete selector expression represented by the alias
Throws:
ParseSelectorException - thrown if the input alias expression is not valid


Copyright © 2013. All Rights Reserved.