Package io.mateu.util
Class SharedHelper
- java.lang.Object
-
- io.mateu.util.SharedHelper
-
public class SharedHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static booleanpropertiesLoaded
-
Constructor Summary
Constructors Constructor Description SharedHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TgetImpl(Class<T> anInterface)look for implementation using the service loader (checks only 1 implementation exists)static <T> List<T>getImpls(Class<T> anInterface)look for implementations using the service loaderstatic voidloadProperties()
-
-
-
Method Detail
-
loadProperties
public static void loadProperties()
-
getImpl
public static <T> T getImpl(Class<T> anInterface) throws Exception
look for implementation using the service loader (checks only 1 implementation exists)- Type Parameters:
T- the actual type- Parameters:
anInterface- the interface to look for- Returns:
- implementation
- Throws:
Exception- in case of not found or there
-
-