java.lang.Object
cloud.piranha.modular.DefaultModuleFinder
- All Implemented Interfaces:
java.lang.module.ModuleFinder
public class DefaultModuleFinder
extends java.lang.Object
implements java.lang.module.ModuleFinder
Provides an implementation of
ModuleFinder
to work
with Resource
- Author:
- Thiago Henrique Hupner
-
Constructor Summary
Constructors Constructor Description DefaultModuleFinder(java.util.List<Resource> resources)
Constructor -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DefaultModuleFinder
Constructor- Parameters:
resources
- the resources
-
-
Method Details
-
find
public java.util.Optional<java.lang.module.ModuleReference> find(java.lang.String name)- Specified by:
find
in interfacejava.lang.module.ModuleFinder
-
findAll
public java.util.Set<java.lang.module.ModuleReference> findAll()- Specified by:
findAll
in interfacejava.lang.module.ModuleFinder
-