Forge - Resource Addon API 2.0.0.Alpha3

org.jboss.forge.resource
Interface ResourceFactory


@Exported
public interface ResourceFactory

Author:
Lincoln Baxter, III

Method Summary
<E,T extends Resource<E>>
T
create(Class<T> type, E underlyingResource)
          Create a Resource of the given type, using the provided underlying resource instance.
<E> Resource<E>
create(E underlyingResource)
          Create a Resource to represent the provided underlying resource.
 ResourceFactory fireEvent(ResourceEvent event)
          Broadcast a ResourceEvent
 

Method Detail

create

<E,T extends Resource<E>> T create(Class<T> type,
                                   E underlyingResource)
Create a Resource of the given type, using the provided underlying resource instance.


create

<E> Resource<E> create(E underlyingResource)
Create a Resource to represent the provided underlying resource. The resource type will be detected automatically.


fireEvent

ResourceFactory fireEvent(ResourceEvent event)
Broadcast a ResourceEvent


Forge - Resource Addon API 2.0.0.Alpha3

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