find and bind extension points automatically

This commit is contained in:
Sebastian Sdorra
2013-01-18 09:39:32 +01:00
parent 8232a24344
commit e581751624
11 changed files with 762 additions and 781 deletions

View File

@@ -30,6 +30,7 @@
*/
package sonia.scm.plugin.ext;
//~--- non-JDK imports --------------------------------------------------------
@@ -146,7 +147,7 @@ public class DefaultAnnotationScanner implements AnnotationScanner
@Override
public void scanDirectory(File directory)
{
Preconditions.checkArgument(!directory.isDirectory(),
Preconditions.checkArgument(directory.isDirectory(),
"file must be a directory");
String basePath = directory.getAbsolutePath();
@@ -202,8 +203,8 @@ public class DefaultAnnotationScanner implements AnnotationScanner
{
if (logger.isDebugEnabled())
{
logger.debug("call processor {} with {} and {}",
ap.getClass(), annotation, managedClass);
logger.debug("call processor {} with {} and {}", ap.getClass(),
annotation, managedClass);
}
ap.processAnnotation(annotation, managedClass);