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, supports
getFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, install, register, uninstall, unregister
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
delete, delete, getName, getUnderlyingResourceObject
getFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet
protected VirtualResource(ResourceFactory factory, Resource<?> parent)
public Resource<?> getChild(String name)
Resource
null
if no child by the given name can be found.public Resource<T> createFrom(T resource)
Resource
resource
- The target reference to create the resource instance from.Resource
instance.public InputStream getResourceInputStream()
Resource
InputStream
represented by this Resource
.public boolean exists()
Resource
Copyright © 2014 JBoss by Red Hat. All rights reserved.