public abstract class VirtualResource<T> extends AbstractResource<T>
parent, resourceFactory| Modifier | Constructor and Description |
|---|---|
protected |
VirtualResource(ResourceFactory factory,
Resource<?> parent) |
| Modifier and Type | Method and Description |
|---|---|
Resource<T> |
createFrom(T resource)
Create a new resource instance for the target resource reference of the type that this current resource is.
|
boolean |
exists()
Return true if this
Resource exists, return false if not. |
Resource<?> |
getChild(String name)
Get a child of this resource.
|
InputStream |
getResourceInputStream()
Get the
InputStream represented by this Resource. |
doListResources, equals, getFullyQualifiedName, getParent, getResourceFactory, hashCode, listResources, listResources, reify, supportsgetFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, install, uninstallclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdelete, delete, getName, getUnderlyingResourceObjectprotected VirtualResource(ResourceFactory factory, Resource<?> parent)
public Resource<?> getChild(String name)
Resourcepublic Resource<T> createFrom(T resource)
Resourceresource - The target reference to create the resource instance from.public InputStream getResourceInputStream()
ResourceInputStream represented by this Resource.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.