public abstract class VirtualResource<T> extends AbstractResource<T>
| 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()
|
Resource<?> |
getChild(String name)
Get a child of this resource.
|
InputStream |
getResourceInputStream()
Get the
InputStream represented by this Resource. |
doListResources, equals, getContents, getContents, getFullyQualifiedName, getParent, getResourceFactory, hashCode, listResources, listResources, reify, resolveChildren, setParent, supportsgetFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, install, register, uninstall, unregisterclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdelete, delete, getName, getUnderlyingResourceObjectgetFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacetprotected VirtualResource(ResourceFactory factory, Resource<?> parent)
public Resource<?> getChild(String name)
Resourcenull if no child by the given name can be found.public Resource<T> createFrom(T resource)
Resourceresource - The target reference to create the resource instance from.Resource instance.public InputStream getResourceInputStream()
ResourceInputStream represented by this Resource.public boolean exists()
ResourceCopyright © 2014 JBoss by Red Hat. All rights reserved.