RichFaces Core Implementation 4.2.2.Final-redhat-1

org.richfaces.util
Class LazyLoadingObject<T>

java.lang.Object
  extended by org.richfaces.util.LazyLoadingObject<T>

public abstract class LazyLoadingObject<T>
extends Object

Provides proxy for object which is constructed internally in loadData() method.

Proxy satisfied that loadData() will not be called before first usage of the proxy by any available method, providing deferred (lazy) initialization.

In constructor, interfaces which will implement provided proxy can be passed.

Author:
Lukas Fryc

Constructor Summary
LazyLoadingObject(Class<?>... interfaces)
           
 
Method Summary
 T getLazilyLoaded()
           
protected abstract  T loadData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyLoadingObject

public LazyLoadingObject(Class<?>... interfaces)
Method Detail

loadData

protected abstract T loadData()

getLazilyLoaded

public T getLazilyLoaded()

RichFaces Core Implementation 4.2.2.Final-redhat-1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.