Forge - Resource Addon Impl 2.0.0.Alpha3

org.jboss.forge.resource
Class URLResourceGenerator

java.lang.Object
  extended by org.jboss.forge.resource.URLResourceGenerator
All Implemented Interfaces:
ResourceGenerator<URLResource,URL>

@Exported
public class URLResourceGenerator
extends Object
implements ResourceGenerator<URLResource,URL>

Generates URLResource objects

Author:
George Gastaldi

Constructor Summary
URLResourceGenerator()
           
 
Method Summary
<T extends Resource<URL>>
T
getResource(ResourceFactory factory, Class<URLResource> type, URL resource)
           
<T extends Resource<URL>>
Class<?>
getResourceType(Class<URLResource> type, URL resource)
           
 boolean handles(Class<?> type, Object resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLResourceGenerator

public URLResourceGenerator()
Method Detail

handles

public boolean handles(Class<?> type,
                       Object resource)
Specified by:
handles in interface ResourceGenerator<URLResource,URL>

getResource

public <T extends Resource<URL>> T getResource(ResourceFactory factory,
                                               Class<URLResource> type,
                                               URL resource)
Specified by:
getResource in interface ResourceGenerator<URLResource,URL>

getResourceType

public <T extends Resource<URL>> Class<?> getResourceType(Class<URLResource> type,
                                                          URL resource)
Specified by:
getResourceType in interface ResourceGenerator<URLResource,URL>

Forge - Resource Addon Impl 2.0.0.Alpha3

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