Forge - Parent 2.0.0.Alpha1

org.jboss.forge.resource.converter
Class DirectoryResourceConverter

java.lang.Object
  extended by org.jboss.forge.convert.AbstractConverter<File,DirectoryResource>
      extended by 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

Constructor Summary
DirectoryResourceConverter(ResourceFactory resourceFactory)
           
 
Method Summary
 DirectoryResource convert(File source)
          Convert the source of type SOURCE_TYPE to target type TARGET_TYPE.
 
Methods inherited from class org.jboss.forge.convert.AbstractConverter
getSourceType, getTargetType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryResourceConverter

@Inject
public DirectoryResourceConverter(ResourceFactory resourceFactory)
Method Detail

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

Forge - Parent 2.0.0.Alpha1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.