package de.skuzzle.inject.conf;

public interface TextContentType {

    <T> T createInstance(Class<T> type, TextResource resource);
}

@@ -30,43 +30,671 @@
 f;%0A%0A
-public interface TextContentType %7B%0A
+import de.skuzzle.inject.conf.Resources.ChoseTargetType;%0A%0A/**%0A * This interfaces controls how the content of a %7B@link TextResource%7D is mapped%0A * to a concrete instance of some object.%0A *%0A * @author Simon Taddiken%0A */%0Apublic interface TextContentType %7B%0A%0A    /**%0A     * Creates an instance of type T from the given resource. The type that is%0A     * passed here, is the one that the user passed to%0A     * %7B@link ChoseTargetType#to(Class)%7D when binding a resource.%0A     *%0A     * %3CT%3E The result type.%0A     *%0A     * @param type The type to create an instance of.%0A     * @param resource The resource to create an instance from.%0A     * @return The created Object.%0A     */
 %0A   

Add comment