public class SimpleDescribedResource<T extends Described> extends Object implements DescribedResource<T>
DescribedResource
.Constructor and Description |
---|
SimpleDescribedResource(T resource,
ResourceInfo resourceInfo,
String name,
String url) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Resource name.
|
T |
getResource()
Actual resource.
|
ResourceInfo |
getResourceInfo()
Resource info annotation.
|
String |
getUrl()
URL of the resource.
|
public SimpleDescribedResource(T resource, ResourceInfo resourceInfo, String name, String url)
public T getResource()
DescribedResource
getResource
in interface DescribedResource<T extends Described>
public ResourceInfo getResourceInfo()
DescribedResource
getResourceInfo
in interface DescribedResource<T extends Described>
public String getName()
DescribedResource
getName
in interface DescribedResource<T extends Described>
public String getUrl()
DescribedResource
getUrl
in interface DescribedResource<T extends Described>