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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LazyLoadingObject(Class<?>... interfaces)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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()

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