|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Revision(value="$Revision: 1.8 $",
date="$Date: 2006/12/06 16:55:30 $",
tag="$Name: $")
public interface ImmutableSingletonInterface<A>
TODO: Javadoc
Contains methods for accessing a reference stored in a singleton object, which
can be virtualized. By using this interface, we can allow classes to act as
immutable singletons, without requiring them to inherit from the
ImmutableSingleton class.
This interface can also be used as a class factory, simply be writing the get()
method to return a new instance on each call. The Collection.factory()
method puts it to this use.
Furthermore this interface is the basis of Future
and can be used to provide late computed results. By computing some result only when
get() is called and perhaps caching the result, this interface can easily
help reduce uneeded computation.
Perhaps the most important use of this interface is in supported the
rcf.core.framework package, in particular for any StaticProperty
the framework reflection generates can produce an instance of DynamicProperty
allowing the caller to read that property using either field access or a StaticGetMethod
method.
See SingletonInterface for more interesting uses of this interace.
| Method Summary | |
|---|---|
A |
get()
TODO: Javadoc Get the content element of this singleton. |
| Method Detail |
|---|
A get()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||