Package codechicken.mixin.util
Class SimpleServiceLoader<S>
java.lang.Object
codechicken.mixin.util.SimpleServiceLoader<S>
Basically a re-implementation of ServiceLoader that does things a little differently.
Services are only class loaded and not instantiated, useful for some applications.
poll() must be called to actually load stuff, new services found directly
after that poll operation can be obtained via getNewServices(), this set
is cleared each time poll() is called. All found services can be retrieved
via getAllServices().
Created by covers1624 on 15/11/18.
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleServiceLoader(Class<S> serviceClazz) SimpleServiceLoader(Class<S> serviceClazz, ClassLoader classLoader) -
Method Summary
-
Constructor Details
-
SimpleServiceLoader
-
SimpleServiceLoader
-
-
Method Details
-
poll
-
getAllServices
-
getNewServices
-
load
-
load
-