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.


Method Summary
 java.lang.Class<?>[] getCollectionType()
           
 boolean isArrayType(java.lang.Class<?> cls)
           
 boolean isCollectionType(java.lang.Class<?> cls)
           
 
Methods inherited from interface org.nakedobjects.metamodel.commons.component.Injectable
injectInto
 
Methods inherited from interface org.nakedobjects.metamodel.commons.component.ApplicationScopedComponent
init, shutdown
 

Method Detail

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.