@Order(value=4000) @MetaInfServices public class CollectionFactoryLookup extends Object implements FactoryLookup
| Constructor and Description |
|---|
CollectionFactoryLookup() |
| Modifier and Type | Method and Description |
|---|---|
<T> Factory<T> |
getFactory(Type typeToken)
Get the Factory registered for the specified class.
|
int |
getMaxSize() |
boolean |
hasFactory(Type type)
Does this contain a Factory registered against the specified class?
|
void |
setMaxSize(int maxArrayLength) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFactoryIfAvailable, getInstance, getServiceDefinitionpublic int getMaxSize()
public void setMaxSize(int maxArrayLength)
public <T> Factory<T> getFactory(Type typeToken) throws IllegalArgumentException, NoSuchFactoryException
FactoryLookupGet the Factory registered for the specified class.
To check whether a Factory is registered for a specified class, please refer to
hasFactory(Class<?> clazz);.
getFactory in interface FactoryLookuptypeToken - The type the Factory is registered against. This should be the type of object that the Factory
creates.IllegalArgumentException - If the class is deemed illegal.NoSuchFactoryException - If this does not contain a Factory registered against the specified class.public boolean hasFactory(Type type)
FactoryLookuphasFactory in interface FactoryLookuptype - The type a Factory could be registered against. This should be the type of object that the Factory
creates.true if the collection contains a Factory registered for the specified class;
false otherwise.Copyright © 2010–2020 meanbean. All rights reserved.