ro.isdc.wro.model.factory
Class LazyWroModelFactoryDecorator
java.lang.Object
ro.isdc.wro.util.AbstractDecorator<LazyInitializer<WroModelFactory>>
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
Method Summary |
WroModel |
create()
|
void |
destroy()
Called to indicate that the factory is being taken out of service. |
LazyWroModelFactoryDecorator
public LazyWroModelFactoryDecorator(LazyInitializer<WroModelFactory> initializer)
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.