org.jboss.osgi.husky
Interface PackageListener

All Known Implementing Classes:
org.jboss.osgi.husky.internal.AbstractPackageListener, JUnitPackageListener, OSGiJUnitPackageListener

public interface PackageListener

A PackageListener that is associated with a Connector. The PackageListener matches test Requests with the package names that it can handle. On a successful match the Connector will invoke the runTests(Request) method.

Since:
16-May-2009
Author:
Thomas.Diesler@jboss.com

Method Summary
 List<String> getPackageNames()
          Return the list of packages that this listener can handle.
 boolean match(Request request)
          Return true if the given Request is from a package that this listener can handle.
 Response runTests(Request request)
          Called by Connector when this listener indicated that it can handle the test request.
 

Method Detail

getPackageNames

List<String> getPackageNames()
Return the list of packages that this listener can handle.


match

boolean match(Request request)
Return true if the given Request is from a package that this listener can handle.


runTests

Response runTests(Request request)
                  throws Throwable
Called by Connector when this listener indicated that it can handle the test request.

Throws:
Throwable


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.