Class DefaultModuleFinder

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

    Modifier and Type Method Description
    java.util.Optional<java.lang.module.ModuleReference> find​(java.lang.String name)  
    java.util.Set<java.lang.module.ModuleReference> findAll()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultModuleFinder

      public DefaultModuleFinder​(java.util.List<Resource> resources)
      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 interface java.lang.module.ModuleFinder
    • findAll

      public java.util.Set<java.lang.module.ModuleReference> findAll()
      Specified by:
      findAll in interface java.lang.module.ModuleFinder