org.crsh.cli.type
Class ValueTypeFactory
java.lang.Object
org.crsh.cli.type.ValueTypeFactory
-
public class ValueTypeFactory
- extends Object
-
A factory for value types.
Constructor Summary |
private |
ValueTypeFactory()
|
|
ValueTypeFactory(ClassLoader loader)
Create a value type factory for the the default value types and the value types that the specified classloader will load. |
Method Summary |
|
get(Class<S> clazz)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static final ValueTypeFactory DEFAULT
-
A value type factory instance that provides a predefined set of value types.
types
private final ValueType<?>[] types
-
The known types.
ValueTypeFactory
private ValueTypeFactory()
ValueTypeFactory
public ValueTypeFactory(ClassLoader loader)
throws NullPointerException
-
Create a value type factory for the the default value types and the value types that the specified classloader will load.
- Parameters:
loader
- the loader
- Throws:
NullPointerException
- if the loader is null
get
public <T,S extends T> ValueType<T> get(Class<S> clazz)
-
Copyright © 2014 eXo Platform SAS. All Rights Reserved.