org.glassfish.jersey.server.internal.scanning
Interface ResourceProcessor

All Known Implementing Classes:
AnnotationAcceptingListener

public interface ResourceProcessor

Processes resources found by ResourceFinder.

Author:
Pavel Bucek (pavel.bucek at oracle.com)

Method Summary
 boolean accept(java.lang.String name)
          Accept a scanned resource.
 void process(java.lang.String name, java.io.InputStream in)
          Process a scanned resource.
 

Method Detail

accept

boolean accept(java.lang.String name)
Accept a scanned resource.

Parameters:
name - the resource name.
Returns:
true if the resource is accepted for processing, otherwise false.

process

void process(java.lang.String name,
             java.io.InputStream in)
             throws java.io.IOException
Process a scanned resource.

This method will be invoked after the listener has accepted the resource.

Parameters:
name - the resource name.
in - the input stream of the resource
Throws:
java.io.IOException - if an error occurs when processing the resource.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.