org.nakedobjects.applib.annotation
Annotation Type Aggregated


@Inherited
@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Aggregated

Indicates that the class is part of (aggregated within) a larger class, which may reference objects outside the aggregate but may not be referenced by objects other than within the aggregate.

This is/should be interpreted by viewers as meaning that references to the object may not be shared between instances. So for example in the DnD viewer an aggregated object may not be drag/dropped into an empty "slot". Instead, the user would need to use copy/paste.

Note that aggregated objects are arbitrarily large and are usually mutable. Values are similar (the only thing that one can definitively say about a value is that it is an aggregate, however values are typically small and are usually immutable.

See Also:
Value



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.