Package org.apache.shenyu.common.utils
Class SpiLoadFactory
- java.lang.Object
-
- org.apache.shenyu.common.utils.SpiLoadFactory
-
public class SpiLoadFactory extends java.lang.ObjectSpiLoadFactory.
-
-
Constructor Summary
Constructors Constructor Description SpiLoadFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <S> java.util.ServiceLoader<S>loadAll(java.lang.Class<S> clazz)Load all service loader.static <S> SloadFirst(java.lang.Class<S> clazz)Load first s.
-
-
-
Method Detail
-
loadFirst
public static <S> S loadFirst(java.lang.Class<S> clazz)
Load first s.- Type Parameters:
S- the type parameter- Parameters:
clazz- the clazz- Returns:
- the s
-
loadAll
public static <S> java.util.ServiceLoader<S> loadAll(java.lang.Class<S> clazz)
Load all service loader.- Type Parameters:
S- the type parameter- Parameters:
clazz- the clazz- Returns:
- the service loader
-
-