public interface CollectionTypeRegistry extends Injectable, ApplicationScopedComponent
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.
TODO: plan is to allow new collection types to be installed dynamically, allowing the domain programmer to declare custom classes to have collection semantics.
| Modifier and Type | Method and Description |
|---|---|
Class<?>[] |
getCollectionType() |
boolean |
isArrayType(Class<?> cls) |
boolean |
isCollectionType(Class<?> cls) |
OneToManyFeature.CollectionSemantics |
semanticsOf(Class<?> cls) |
injectIntoinit, shutdownboolean isCollectionType(Class<?> cls)
boolean isArrayType(Class<?> cls)
Class<?>[] getCollectionType()
OneToManyFeature.CollectionSemantics semanticsOf(Class<?> cls)
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.