@Exported
public interface ResourceFactory
| Modifier and Type | Method and Description |
|---|---|
<E,T extends Resource<E>> |
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 |
<E,T extends Resource<E>> T create(Class<T> type, E underlyingResource)
Resource of the given type, using the provided underlying resource instance.null if no resource could be created for the given object.<E> Resource<E> create(E underlyingResource)
Resource to represent the provided underlying resource. The resource type will be detected
automatically.null if no resource could be created for the given object.ResourceFactory fireEvent(ResourceEvent event)
ResourceEventCopyright © 2013 JBoss by Red Hat. All Rights Reserved.