程序包 org.coodex.util
类 LazySelectableServiceLoader<Param_Type,T extends SelectableService<Param_Type>>
java.lang.Object
org.coodex.util.LazySelectableServiceLoader<Param_Type,T>
- 所有已实现的接口:
SelectableServiceLoader<Param_Type,,T> ServiceLoader<T>
- 直接已知子类:
SelectableFactoryLoaderImpl
public abstract class LazySelectableServiceLoader<Param_Type,T extends SelectableService<Param_Type>>
extends Object
implements SelectableServiceLoader<Param_Type,T>, ServiceLoader<T>
Created by davidoff shen on 2017-03-09.
-
构造器概要
构造器构造器说明LazySelectableServiceLoader(Function<Method, RuntimeException> exceptionFunction) 根据给出的function提供一个默认loaderLazySelectableServiceLoader(Supplier<T> defaultServiceSupplier) LazySelectableServiceLoader(T defaultService) -
方法概要
修饰符和类型方法说明get()getAll()protected Objectprotected Typeselect(Param_Type param) selectAll(Param_Type param) sorted()对所有服务进行排序sorted(Comparator<? super T> comparator) 对所有服务进行排序
-
构造器详细资料
-
LazySelectableServiceLoader
public LazySelectableServiceLoader() -
LazySelectableServiceLoader
-
LazySelectableServiceLoader
-
LazySelectableServiceLoader
根据给出的function提供一个默认loader- 参数:
exceptionFunction- exceptionFunction
-
-
方法详细资料
-
sorted
从接口复制的说明:ServiceLoader对所有服务进行排序- 指定者:
sorted在接口中ServiceLoader<Param_Type>- 返回:
- 排序后的所有服务
- 另请参阅:
-
sorted
从接口复制的说明:ServiceLoader对所有服务进行排序- 指定者:
sorted在接口中ServiceLoader<Param_Type>- 参数:
comparator- comparator- 返回:
- 排序后的所有服务
- 另请参阅:
-
getGenericTypeSearchContextObject
-
getServiceType
-
selectAll
- 指定者:
selectAll在接口中SelectableServiceLoader<Param_Type,T extends SelectableService<Param_Type>>
-
select
- 指定者:
select在接口中SelectableServiceLoader<Param_Type,T extends SelectableService<Param_Type>>
-
get
- 指定者:
get在接口中ServiceLoader<Param_Type>
-
get
- 指定者:
get在接口中ServiceLoader<Param_Type>
-
get
- 指定者:
get在接口中ServiceLoader<Param_Type>
-
getDefault
- 指定者:
getDefault在接口中ServiceLoader<Param_Type>
-
getAll
- 指定者:
getAll在接口中SelectableServiceLoader<Param_Type,T extends SelectableService<Param_Type>> - 指定者:
getAll在接口中ServiceLoader<Param_Type>
-