ro.isdc.wro.model.factory
Class ModelTransformerFactory

java.lang.Object
  extended by ro.isdc.wro.util.AbstractDecorator<WroModelFactory>
      extended by ro.isdc.wro.model.factory.WroModelFactoryDecorator
          extended by ro.isdc.wro.model.factory.ModelTransformerFactory
All Implemented Interfaces:
WroModelFactory, ObjectDecorator<WroModelFactory>, ObjectFactory<WroModel>

public class ModelTransformerFactory
extends WroModelFactoryDecorator

Applies transformation using supplied transformers to the decorated model.

Since:
1.4.0
Author:
Alex Objelean

Constructor Summary
ModelTransformerFactory(WroModelFactory decorated)
          Decorates a model factory.
 
Method Summary
 WroModel create()
          
 ModelTransformerFactory setTransformers(List<Transformer<WroModel>> modelTransformers)
          Set a list of transformers to apply on decorated model factory.
 
Methods inherited from class ro.isdc.wro.model.factory.WroModelFactoryDecorator
destroy
 
Methods inherited from class ro.isdc.wro.util.AbstractDecorator
getDecoratedObject, getOriginalDecoratedObject, getOriginalDecoratedObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelTransformerFactory

public ModelTransformerFactory(WroModelFactory decorated)
Decorates a model factory.

Method Detail

setTransformers

public ModelTransformerFactory setTransformers(List<Transformer<WroModel>> modelTransformers)
Set a list of transformers to apply on decorated model factory.


create

public WroModel create()

Specified by:
create in interface ObjectFactory<WroModel>
Overrides:
create in class WroModelFactoryDecorator


Copyright © 2008-2013. All Rights Reserved.