Skip to content

Commit

Permalink
updated string2valueConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
g3force committed Oct 28, 2015
1 parent f6cc663 commit c155145
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.g3force</groupId>
<artifactId>instanceables</artifactId>
<version>v1.1</version>
<version>v1.2</version>
<name>instanceables</name>

<properties>
Expand All @@ -28,7 +28,7 @@
<dependency>
<groupId>com.github.g3force</groupId>
<artifactId>String2ValueConverter</artifactId>
<version>v1.4</version>
<version>v1.5</version>
</dependency>

</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
*/
public class InstanceableParameter
{
private static String2ValueConverter s2vConv = new String2ValueConverter();

private static String2ValueConverter s2vConv = String2ValueConverter.getDefault();
private final Class<?> impl;
private final String description;
private final String defaultValue;
private final List<Class<?>> genericsImpls;


/**
* @param impl
* @param description
Expand All @@ -45,17 +45,6 @@ public InstanceableParameter(final Class<?> impl, final String description, fina
}


/**
* Replace {@link String2ValueConverter} by your own implementation
*
* @param conv
*/
public static void registerString2ValueConverter(String2ValueConverter conv)
{
s2vConv = conv;
}


/**
* Parse given String to value
*
Expand Down

0 comments on commit c155145

Please sign in to comment.