X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Finject%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Finject%2FInjectorFactory.java;h=104c4e272ac8bdc7fc25a0e4de702d3a96e11911;hb=94ddca39fadbe7931a17c179424afd123bd2863a;hp=84f7a66bb5d4e1645370d5c41b6dd88c7a136742;hpb=6edb8d1fb3e7f36d3fe9f53583fa6aac0ccd3f65;p=utils diff --git a/support/inject/src/main/java/org/wamblee/inject/InjectorFactory.java b/support/inject/src/main/java/org/wamblee/inject/InjectorFactory.java index 84f7a66b..104c4e27 100644 --- a/support/inject/src/main/java/org/wamblee/inject/InjectorFactory.java +++ b/support/inject/src/main/java/org/wamblee/inject/InjectorFactory.java @@ -15,13 +15,13 @@ */ package org.wamblee.inject; - /** - * Injector factory used. This creates an injector that is appropriate for a certain class. - * May be subclassed for testing or other advanced usage (even replacing CDI with another - * injection framework). + * The injector factory is responsible for creating injectors for a given class. + * This must be implemneted to interface to specific dependency injection + * frameworks or for testing. * - * Implementations of this calss must have a default no-arg constructor. + * Implementations of this class must have a default no-arg constructor to be + * usable by {@link InjectorBuilder}. * * @author Erik Brakkee */ @@ -29,8 +29,10 @@ public interface InjectorFactory { /** * Creates an injector. + * * @return Injector fot he given class. - * @throws IllegalArgumentException In case the given class cannot be used. + * @throws IllegalArgumentException + * In case the given class cannot be used. */ Injector create(Class aClass);