From: Decebal Suiu Date: Mon, 10 Mar 2014 11:28:42 +0000 (+0200) Subject: add reference to Annotation Processing X-Git-Tag: release-0.7.0~11^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=87267155edb2425981281d4e4c5fe833ebca3d0f;p=pf4j.git add reference to Annotation Processing --- diff --git a/README.md b/README.md index 240a4f9..ec87e2b 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,10 @@ You can define an extension point in your application using **ExtensionPoint** i } Another important internal component is **ExtensionFinder** that describes how the plugin manager discovers extensions for the extensions points. -**DefaultExtensionFinder** looks up extensions using **Extension** annotation. You can control extension instance creation overriding `createExtensionFactory` method from DefaultExtensionFinder. +**DefaultExtensionFinder** looks up extensions using **Extension** annotation. +DefaultExtensionFinder looks up extensions in all extensions index files `META-INF/extensions.idx`. PF4J uses Java Annotation Processing to process at compile time all classes annotated with @Extension and to produce the extensions index file. + +You can control extension instance creation overriding `createExtensionFactory` method from DefaultExtensionFinder. public class WelcomePlugin extends Plugin {