com.atlassian.confluence.util
Class LazyComponentReference
java.lang.Object
com.atlassian.confluence.util.LazyComponentReference
Deprecated. since 5.3 Use LazyComponentReference.
@Deprecated
public class LazyComponentReference
- extends Object
Lazily loads the component from the ContainerManager and memoize the result.
|
Method Summary |
static
<T> com.atlassian.util.concurrent.Supplier<T> |
|
containerComponent(String name)
Deprecated. Static factory that takes the component name and the type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyComponentReference
public LazyComponentReference()
- Deprecated.
containerComponent
public static <T> com.atlassian.util.concurrent.Supplier<T> containerComponent(String name)
- Deprecated.
- Static factory that takes the component name and the type.
Note this is unsafe as it doesn't actually cast until the usage site due to erasure.
- Type Parameters:
T - the component type- Parameters:
name - the name of the component
- Returns:
- the accessed component or any exception encountered when trying to retrieve it
Copyright © 2003–2015 Atlassian. All rights reserved.