diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-01-19 07:38:49 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-01-19 07:38:49 +0100 |
commit | a016e623defbb7f920287793ae0f2a770d0994c3 (patch) | |
tree | 83bb028bc4e9e2b03b31f785355361c9ac32729f /src/core/lombok/javac/HandlerLibrary.java | |
parent | bc1f91af3a764f0aa81ca441918c16a1d7969a07 (diff) | |
download | lombok-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/javac/HandlerLibrary.java')
-rw-r--r-- | src/core/lombok/javac/HandlerLibrary.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/lombok/javac/HandlerLibrary.java b/src/core/lombok/javac/HandlerLibrary.java index e28033c9..0905170b 100644 --- a/src/core/lombok/javac/HandlerLibrary.java +++ b/src/core/lombok/javac/HandlerLibrary.java @@ -35,12 +35,12 @@ import java.util.WeakHashMap; import javax.annotation.processing.Messager; import javax.tools.Diagnostic; -import lombok.ConfigurationKeys; import lombok.core.HandlerPriority; import lombok.core.SpiLoadUtil; import lombok.core.TypeLibrary; import lombok.core.TypeResolver; import lombok.core.AnnotationValues.AnnotationValueDecodeFail; +import lombok.core.configuration.ConfigurationKeysLoader; import lombok.javac.handlers.JavacHandlerUtil; import com.sun.tools.javac.tree.JCTree; @@ -54,10 +54,6 @@ import com.sun.tools.javac.tree.JCTree.JCCompilationUnit; * building an AnnotationValues instance. */ public class HandlerLibrary { - static { - ConfigurationKeys.ensureKeysLoaded(); - } - private final TypeLibrary typeLibrary = new TypeLibrary(); private final Map<String, AnnotationHandlerContainer<?>> annotationHandlers = new HashMap<String, AnnotationHandlerContainer<?>>(); private final Collection<VisitorContainer> visitorHandlers = new ArrayList<VisitorContainer>(); @@ -68,6 +64,7 @@ public class HandlerLibrary { * You probably want to use {@link #load(Messager)} instead. */ public HandlerLibrary(Messager messager) { + ConfigurationKeysLoader.LoaderLoader.loadAllConfigurationKeys(); this.messager = messager; } |