ro.isdc.wro.model.factory
Class InMemoryCacheableWroModelFactory

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

public class InMemoryCacheableWroModelFactory
extends WroModelFactoryDecorator

Adds the ability to cache the model in memory. This class replace the schedulerAwareDecorator, because the scheduler job is not done in decorator anymore, but rather in WroManager.

Since:
1.4.2
Author:
Alex Objelean

Constructor Summary
InMemoryCacheableWroModelFactory(WroModelFactory decorated)
           
 
Method Summary
 WroModel create()
          
 void destroy()
          Called to indicate that the factory is being taken out of service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryCacheableWroModelFactory

public InMemoryCacheableWroModelFactory(WroModelFactory decorated)
Method Detail

create

public WroModel create()

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

destroy

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

Specified by:
destroy in interface WroModelFactory
Overrides:
destroy in class WroModelFactoryDecorator


Copyright © 2008-2011. All Rights Reserved.