org.crsh.cli.type
Class ValueTypeFactory

java.lang.Object
  extended by org.crsh.cli.type.ValueTypeFactory

public class ValueTypeFactory
extends Object

A factory for value types.


Field Summary
static ValueTypeFactory DEFAULT
          A value type factory instance that provides a predefined set of value types.
private  ValueType<?>[] types
          The known 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
<T,S extends T>
ValueType<T>
get(Class<S> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

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
Method Detail

get

public <T,S extends T> ValueType<T> get(Class<S> clazz)


Copyright © 2015 eXo Platform SAS. All Rights Reserved.