org.nnsoft.guice.rocoto.converters
Class URLConverter

java.lang.Object
  extended by com.google.inject.TypeLiteral<T>
      extended by org.nnsoft.guice.rocoto.converters.AbstractConverter<URL>
          extended by org.nnsoft.guice.rocoto.converters.URLConverter
All Implemented Interfaces:
com.google.inject.Module, com.google.inject.spi.TypeConverter

public final class URLConverter
extends AbstractConverter<URL>

Converter implementation for java.net.URL.


Field Summary
static String CLASSPATH_URL_PREFIX
          Pseudo URL prefix for loading from the class path: "classpath://"
 
Constructor Summary
URLConverter()
           
 
Method Summary
 Object convert(String value, com.google.inject.TypeLiteral<?> toType)
          
 
Methods inherited from class org.nnsoft.guice.rocoto.converters.AbstractConverter
configure
 
Methods inherited from class com.google.inject.TypeLiteral
equals, get, get, getExceptionTypes, getFieldType, getParameterTypes, getRawType, getReturnType, getSupertype, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASSPATH_URL_PREFIX

public static final String CLASSPATH_URL_PREFIX
Pseudo URL prefix for loading from the class path: "classpath://"

See Also:
Constant Field Values
Constructor Detail

URLConverter

public URLConverter()
Method Detail

convert

public Object convert(String value,
                      com.google.inject.TypeLiteral<?> toType)



Copyright © 2010-2012 99 Software Foundation. All Rights Reserved.