org.nakedobjects.metamodel.specloader.collectiontyperegistry
Interface CollectionTypeRegistry
- All Superinterfaces:
- ApplicationScopedComponent, Component, Injectable
- All Known Implementing Classes:
- CollectionTypeRegistryAbstract, CollectionTypeRegistryDefault
public interface CollectionTypeRegistry
- extends Injectable, ApplicationScopedComponent
TODO: plan is to allow new collection types to be installed dynamically, allowing the domain programmer to
declare custom classes to have collection semantics.
In this way there are similarities with the way in which value types are specified using @Value.
However, we need to maintain a repository of these collection types once nominated so that when we
introspect classes we look for collections first, and then properties second.
isCollectionType
boolean isCollectionType(java.lang.Class<?> cls)
isArrayType
boolean isArrayType(java.lang.Class<?> cls)
getCollectionType
java.lang.Class<?>[] getCollectionType()
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.