| Package | Description |
|---|---|
| org.jboss.forge.resource | |
| org.jboss.forge.resource.events | |
| org.jboss.forge.resource.transaction |
| Modifier and Type | Interface and Description |
|---|---|
interface |
DirectoryResource
A standard, build-in, resource for representing directories on the file-system.
|
interface |
FileResource<T extends FileResource<T>>
A standard, built-in resource for representing files on the filesystem.
|
interface |
URLResource
Represents a
URL resource |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractFileResource<T extends FileResource<T>>
A standard, built-in resource for representing files on the filesystem.
|
class |
AbstractResource<T> |
class |
VirtualResource<T>
An abstract implementation of a virtual resource handle.
|
| Modifier and Type | Field and Description |
|---|---|
protected Resource<?> |
AbstractResource.parent |
| Modifier and Type | Method and Description |
|---|---|
<E,T extends Resource<E>> |
ResourceFactory.create(Class<T> type,
E underlyingResource)
Create a
Resource of the given type, using the provided underlying resource instance. |
<E,T extends Resource<E>> |
DirectoryResource.getChildOfType(Class<T> type,
String name)
Using the given type, obtain a reference to the child resource of the given type.
|
<T extends Resource<UNDERLYINGTYPE>> |
ResourceGenerator.getResource(ResourceFactory factory,
Class<RESOURCETYPE> type,
UNDERLYINGTYPE resource)
|
<T extends Resource<UNDERLYINGTYPE>> |
ResourceGenerator.getResourceType(Class<RESOURCETYPE> type,
UNDERLYINGTYPE resource)
|
<R extends Resource<?>> |
Resource.reify(Class<R> type)
Ask this
Resource if it is actually a resource of the given type; if it is, return a new reference to the
resource as the given type, otherwise return null. |
<R extends Resource<?>> |
AbstractResource.reify(Class<R> type) |
<R extends Resource<?>> |
AbstractFileResource.reify(Class<R> type) |
| Modifier and Type | Method and Description |
|---|---|
<E> Resource<E> |
ResourceFactory.create(E underlyingResource)
Create a
Resource to represent the provided underlying resource. |
abstract Resource<File> |
AbstractFileResource.createFrom(File file)
Create a new
Resource instance for the target file. |
Resource<T> |
Resource.createFrom(T file)
Create a new resource instance for the target resource reference of the type that this current resource is.
|
Resource<T> |
VirtualResource.createFrom(T resource) |
Resource<?> |
Resource.getChild(String name)
Get a child of this resource.
|
Resource<?> |
VirtualResource.getChild(String name) |
Resource<?> |
AbstractFileResource.getChild(String name) |
Resource<?> |
Resource.getParent()
Get the parent of the current resource.
|
Resource<?> |
AbstractResource.getParent() |
Resource<?> |
AbstractFileResource.getParent()
Get the parent of the current resource.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<Resource<?>> |
AbstractResource.doListResources()
Strategy method for returning child resources.
|
List<Resource<?>> |
Resource.listResources()
Return a list of child resources of the current resource.
|
List<Resource<?>> |
AbstractResource.listResources() |
List<Resource<?>> |
Resource.listResources(ResourceFilter filter)
Return a list of child resources of the current resource matching the given
ResourceFilter. |
List<Resource<?>> |
AbstractResource.listResources(ResourceFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ResourceFilter.accept(Resource<?> resource) |
| Constructor and Description |
|---|
AbstractResource(ResourceFactory factory,
Resource<?> parent) |
VirtualResource(ResourceFactory factory,
Resource<?> parent) |
| Modifier and Type | Method and Description |
|---|---|
Resource<?> |
ResourceEvent.getResource() |
| Constructor and Description |
|---|
ResourceCreated(Resource<?> resource) |
ResourceDeleted(Resource<?> resource) |
ResourceEvent(Resource<?> resource) |
ResourceModified(Resource<?> resource) |
ResourceRenamed(Resource<?> resource,
String originalLocation,
String newLocation) |
TempResourceCreated(Resource<?> resource) |
| Modifier and Type | Method and Description |
|---|---|
Set<Resource<?>> |
ChangeSet.getModifiedResources() |
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.