ro.isdc.wro.model.factory
Class LazyWroModelFactoryDecorator

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

public class LazyWroModelFactoryDecorator
extends AbstractDecorator<LazyInitializer<WroModelFactory>>
implements WroModelFactory

Responsible for lazy initialization of WroModelFactory. Useful when a factory initialization has a lot of dependencies, which shouldn't be required as long as factory is not used.

Since:
1.6.3
Author:
Alex Objelean

Constructor Summary
LazyWroModelFactoryDecorator(LazyInitializer<WroModelFactory> initializer)
           
 
Method Summary
 WroModel create()
          
 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
 

Constructor Detail

LazyWroModelFactoryDecorator

public LazyWroModelFactoryDecorator(LazyInitializer<WroModelFactory> initializer)
Method Detail

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.