aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2014-01-19 07:38:49 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2014-01-19 07:38:49 +0100
commita016e623defbb7f920287793ae0f2a770d0994c3 (patch)
tree83bb028bc4e9e2b03b31f785355361c9ac32729f /src/core/lombok/eclipse
parentbc1f91af3a764f0aa81ca441918c16a1d7969a07 (diff)
downloadlombok-a016e623defbb7f920287793ae0f2a770d0994c3.tar.gz
lombok-a016e623defbb7f920287793ae0f2a770d0994c3.tar.bz2
lombok-a016e623defbb7f920287793ae0f2a770d0994c3.zip
[configuration] added a service-loader based way to load ConfigurationKeys, so that third party additions can add their own.
Diffstat (limited to 'src/core/lombok/eclipse')
-rw-r--r--src/core/lombok/eclipse/HandlerLibrary.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/lombok/eclipse/HandlerLibrary.java b/src/core/lombok/eclipse/HandlerLibrary.java
index 1eb3c13a..ad9c87b9 100644
--- a/src/core/lombok/eclipse/HandlerLibrary.java
+++ b/src/core/lombok/eclipse/HandlerLibrary.java
@@ -35,10 +35,10 @@ import java.util.SortedSet;
import java.util.TreeSet;
import java.util.WeakHashMap;
-import lombok.ConfigurationKeys;
import lombok.Lombok;
import lombok.core.AnnotationValues;
import lombok.core.AnnotationValues.AnnotationValueDecodeFail;
+import lombok.core.configuration.ConfigurationKeysLoader;
import lombok.core.HandlerPriority;
import lombok.core.SpiLoadUtil;
import lombok.core.TypeLibrary;
@@ -55,15 +55,13 @@ import org.eclipse.jdt.internal.compiler.ast.TypeReference;
* building an AnnotationValues instance.
*/
public class HandlerLibrary {
- static {
- ConfigurationKeys.ensureKeysLoaded();
- }
-
/**
* Creates a new HandlerLibrary. Errors will be reported to the Eclipse Error log.
* You probably want to use {@link #load()} instead.
*/
- public HandlerLibrary() {}
+ public HandlerLibrary() {
+ ConfigurationKeysLoader.LoaderLoader.loadAllConfigurationKeys();
+ }
private TypeLibrary typeLibrary = new TypeLibrary();