net.refractions.udig.project
Interface IResourceInterceptor<T>

Type Parameters:
T - the type of resources that this interceptor can work on.
All Known Implementing Classes:
ShowViewInterceptor

public interface IResourceInterceptor<T>

Modifies an IGeoResource based before returned to caller of ILayer#getResource(Class, org.eclipse.core.runtime.IProgressMonitor).

Since:
1.1.0
Author:
Jesse

Method Summary
 T run(ILayer layer, T resource, java.lang.Class<? super T> requestedType)
          Modifies the resource that is returned.
 

Method Detail

run

T run(ILayer layer,
      T resource,
      java.lang.Class<? super T> requestedType)
Modifies the resource that is returned. The returned value is not necessarily the value passed in as a parameter

Parameters:
layer - the layer that the resources is being obtained from.
resource - The resource obtained from the IGeoResource.
requestedType - the type that the caller requested.
Returns:
the resource to return to the caller. May be a new instance or the same instance.