Package org.alfresco.repo.virtual.ref
Interface ResourceProcessor<R>
- Type Parameters:
R-
- All Known Implementing Classes:
TemplateResourceProcessor
public interface ResourceProcessor<R>
Generic
Resource visitor. It ensures the processing of different types of resources. - Author:
- Bogdan Horje
-
Method Summary
Modifier and TypeMethodDescriptionprocess(ClasspathResource classpath) Processes a resource of typeClasspathResource.process(RepositoryResource repository) Processes a resource of typeRepositoryResource.Processes a resource of typeResource.
-
Method Details
-
process
Processes a resource of typeResource.- Parameters:
resource- aResourceto be processed.- Returns:
- generic parameter R that implementors are parameterised with.
- Throws:
ResourceProcessingError
-
process
Processes a resource of typeClasspathResource.- Parameters:
classpath- theClasspathResourceto be processed.- Returns:
- generic parameter R that implementors are parameterised with.
- Throws:
ResourceProcessingError
-
process
Processes a resource of typeRepositoryResource.- Parameters:
repository- aRepositoryResourceto be processed.- Returns:
- generic parameter R that implementors are parameterised with.
- Throws:
ResourceProcessingError
-