org.jboss.forge.resource.converter
Class DirectoryResourceConverter
java.lang.Object
org.jboss.forge.convert.AbstractConverter<File,DirectoryResource>
org.jboss.forge.resource.converter.DirectoryResourceConverter
- All Implemented Interfaces:
- Converter<File,DirectoryResource>
@Singleton
public class DirectoryResourceConverter
- extends AbstractConverter<File,DirectoryResource>
Converts a File
object to a Resource
- Author:
- George Gastaldi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryResourceConverter
@Inject
public DirectoryResourceConverter(ResourceFactory resourceFactory)
convert
public DirectoryResource convert(File source)
- Description copied from interface:
Converter
- Convert the source of type SOURCE_TYPE to target type TARGET_TYPE.
- Parameters:
source
- the source object to convert, which must be an instance of S
- Returns:
- the converted object, which must be an instance of T
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.