net.sf.javaprinciples.resource
Interface ResourceGetService<T>

Type Parameters:
T - Type of Resource, typically Resource%lt;S%gt;.

public interface ResourceGetService<T>

Service interface for GET operations for Resources.

Author:
rvllewln

Method Summary
 T getResource(ResourceIdentifier identifier)
          Get a Resource by its identifier.
 

Method Detail

getResource

T getResource(ResourceIdentifier identifier)
              throws ResourceException
Get a Resource by its identifier.

Parameters:
identifier - The Resource's identifier.
Returns:
The Resource if it exists, null otherwise.
Throws:
ResourceException - If any problem is encountered while getting the Resource.


Copyright © 2013. All Rights Reserved.