org.jboss.osgi.husky.runtime
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
 java.util.List<java.lang.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

java.util.List<java.lang.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 java.lang.ClassNotFoundException
Called by Connector when this listener indicated that it can handle the test request.

Throws:
java.lang.ClassNotFoundException


Copyright © 2009. All Rights Reserved.