org.richfaces.util
Class LazyLoadingObject<T>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyLoadingObject
public LazyLoadingObject(Class<?>... interfaces)
loadData
protected abstract T loadData()
getLazilyLoaded
public T getLazilyLoaded()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.