|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.util.LazyComponentReference
LazyComponentReference.
@Deprecated public class LazyComponentReference
Lazily loads the component from the ContainerManager and memoize the result.
| Constructor Summary | |
|---|---|
LazyComponentReference()
Deprecated. |
|
| Method Summary | ||
|---|---|---|
static
|
containerComponent(java.lang.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 |
| Constructor Detail |
|---|
public LazyComponentReference()
| Method Detail |
|---|
public static <T> com.atlassian.util.concurrent.Supplier<T> containerComponent(java.lang.String name)
Note this is unsafe as it doesn't actually cast until the usage site due to erasure.
T - the component typename - the name of the component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||