Class URLCpResolver

  • All Implemented Interfaces:
    ClassResolver, java.lang.AutoCloseable

    public class URLCpResolver
    extends java.lang.Object
    implements ClassResolver
    The type Url cp resolver.
    • Constructor Summary

      Constructors 
      Constructor Description
      URLCpResolver​(java.net.URL[] urls)
      Instantiates a new Url cp resolver.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.lang.Class resolve​(java.lang.String className)
      Resolve class.
      • Methods inherited from class java.lang.Object

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

      • URLCpResolver

        public URLCpResolver​(java.net.URL[] urls)
        Instantiates a new Url cp resolver.
        Parameters:
        urls - the urls
    • Method Detail

      • resolve

        public java.lang.Class resolve​(java.lang.String className)
                                throws java.lang.ClassNotFoundException
        Description copied from interface: ClassResolver
        Resolve class.
        Specified by:
        resolve in interface ClassResolver
        Parameters:
        className - the class name
        Returns:
        the class
        Throws:
        java.lang.ClassNotFoundException - the class not found exception
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception