ro.isdc.wro.model.factory
Class DefaultWroModelFactoryDecorator

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

public final class DefaultWroModelFactoryDecorator
extends AbstractDecorator<WroModelFactory>
implements WroModelFactory

Decorates the model factory with callback registry calls & other useful factories. Another responsibility of this decorator is make model creation thread safe.

This class doesn't extend AbstractDecorator because we have to enhance the decorated object with new decorators.

Since:
1.4.6
Author:
Alex Objelean

Method Summary
 WroModel create()
          
static WroModelFactory decorate(WroModelFactory decorated, List<Transformer<WroModel>> modelTransformers)
          Factory method which takes care of redundant decoration.
 void destroy()
          Called to indicate that the factory is being taken out of service.
 
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
 

Method Detail

decorate

public static WroModelFactory decorate(WroModelFactory decorated,
                                       List<Transformer<WroModel>> modelTransformers)
Factory method which takes care of redundant decoration.


create

public WroModel create()

Specified by:
create in interface ObjectFactory<WroModel>

destroy

public void destroy()
Called to indicate that the factory is being taken out of service.

Specified by:
destroy in interface WroModelFactory


Copyright © 2008-2013. All Rights Reserved.