Package io.mateu.util
Class SharedHelper
java.lang.Object
io.mateu.util.SharedHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
propertiesLoaded
public static boolean propertiesLoaded
-
-
Constructor Details
-
SharedHelper
public SharedHelper()
-
-
Method Details
-
loadProperties
public static void loadProperties() -
getImpl
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
-
getImpls
look for implementations using the service loader- Type Parameters:
T- the actual type- Parameters:
anInterface- the interface to look for- Returns:
- list of implementations
-