Package org.apache.iceberg.common
Class DynClasses.Builder
- java.lang.Object
- 
- org.apache.iceberg.common.DynClasses.Builder
 
- 
- Enclosing class:
- DynClasses
 
 public static class DynClasses.Builder extends java.lang.Object
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <S> java.lang.Class<? extends S>build()Returns the first implementation or throws RuntimeException if one was not found.<S> java.lang.Class<? extends S>buildChecked()Returns the first implementation or throws ClassNotFoundException if one was not found.DynClasses.Builderimpl(java.lang.String className)Checks for an implementation of the class by name.DynClasses.Builderloader(java.lang.ClassLoader newLoader)Set theClassLoaderused to lookup classes by name.DynClasses.BuilderorNull()Instructs this builder to return null if no class is found, rather than throwing an Exception.
 
- 
- 
- 
Method Detail- 
loaderpublic DynClasses.Builder loader(java.lang.ClassLoader newLoader) Set theClassLoaderused to lookup classes by name.If not set, the current thread's ClassLoader is used. - Parameters:
- newLoader- a ClassLoader
- Returns:
- this Builder for method chaining
 
 - 
implpublic DynClasses.Builder impl(java.lang.String className) Checks for an implementation of the class by name.- Parameters:
- className- name of a class
- Returns:
- this Builder for method chaining
 
 - 
orNullpublic DynClasses.Builder orNull() Instructs this builder to return null if no class is found, rather than throwing an Exception.- Returns:
- this Builder for method chaining
 
 - 
buildCheckedpublic <S> java.lang.Class<? extends S> buildChecked() throws java.lang.ClassNotFoundExceptionReturns the first implementation or throws ClassNotFoundException if one was not found.- Type Parameters:
- S- Java superclass
- Returns:
- a Classfor the first implementation found
- Throws:
- java.lang.ClassNotFoundException- if no implementation was found
 
 - 
buildpublic <S> java.lang.Class<? extends S> build() Returns the first implementation or throws RuntimeException if one was not found.- Type Parameters:
- S- Java superclass
- Returns:
- a Classfor the first implementation found
- Throws:
- java.lang.RuntimeException- if no implementation was found
 
 
- 
 
-