info.magnolia.rendering.template.variation
Class ExtensionVariationResolver

java.lang.Object
  extended by info.magnolia.rendering.template.variation.ExtensionVariationResolver
All Implemented Interfaces:
RenderableVariationResolver

public class ExtensionVariationResolver
extends Object
implements RenderableVariationResolver

Variation resolver that will use a variation with the same name as the extension.

Version:
$Id$

Constructor Summary
ExtensionVariationResolver()
           
 
Method Summary
protected  AggregationState getAggregationStateSafely()
          This gets the aggregation state without throwing an exception if the current context is not a WebContext.
 RenderableDefinition resolveVariation(RenderableDefinition renderableDefinition)
          Returns the variation to use or null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionVariationResolver

public ExtensionVariationResolver()
Method Detail

resolveVariation

public RenderableDefinition resolveVariation(RenderableDefinition renderableDefinition)
Description copied from interface: RenderableVariationResolver
Returns the variation to use or null.

Specified by:
resolveVariation in interface RenderableVariationResolver

getAggregationStateSafely

protected AggregationState getAggregationStateSafely()
This gets the aggregation state without throwing an exception if the current context is not a WebContext.



Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.