diff options
author | David Morrissey <davemorrissey@gmail.com> | 2017-11-02 18:59:25 +0000 |
---|---|---|
committer | David Morrissey <davemorrissey@gmail.com> | 2017-11-02 18:59:26 +0000 |
commit | 0cae9eb5b2b68ad2bea9586036500925018e8c8b (patch) | |
tree | 1361e0dce27fc9a2cdc40594c982032e38ec20ea /library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/DecoderFactory.java | |
parent | c930ef77f57c0619c10893696452b94e75e0dd23 (diff) | |
download | subsampling-scale-image-view-0cae9eb5b2b68ad2bea9586036500925018e8c8b.tar.gz |
Updated to current standard project structure
Diffstat (limited to 'library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/DecoderFactory.java')
-rw-r--r-- | library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/DecoderFactory.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/DecoderFactory.java b/library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/DecoderFactory.java new file mode 100644 index 0000000..f15d283 --- /dev/null +++ b/library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/DecoderFactory.java @@ -0,0 +1,15 @@ +package com.davemorrissey.labs.subscaleview.decoder; + +import java.lang.reflect.InvocationTargetException; + +/** + * Interface for decoder (and region decoder) factories. + * @param <T> the class of decoder that will be produced. + */ +public interface DecoderFactory<T> { + /** + * Produce a new instance of a decoder with type {@link T}. + * @return a new instance of your decoder. + */ + T make() throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException; +} |