Package deltix.qsrv.hf.pub
Class TypeLoaderImpl
- java.lang.Object
-
- deltix.qsrv.hf.pub.TypeLoaderImpl
-
- All Implemented Interfaces:
RegularTypeLoader
,TypeLoader
,deltix.util.lang.ExceptionHandler
public class TypeLoaderImpl extends java.lang.Object implements RegularTypeLoader, deltix.util.lang.ExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static TypeLoader
DEFAULT_INSTANCE
static TypeLoader
SILENT_INSTANCE
-
Constructor Summary
Constructors Constructor Description TypeLoaderImpl()
TypeLoaderImpl(java.lang.ClassLoader loader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.ClassLoader
getClassLoader()
void
handle(ClassDescriptor cd, java.lang.ClassNotFoundException e)
void
handle(java.lang.Throwable x)
int
hashCode()
java.lang.Class
load(ClassDescriptor cd)
java.lang.Class<?>
load(ClassDescriptor cd, deltix.util.lang.ExceptionHandler handler)
static java.lang.Class
load(ClassDescriptor cd, java.lang.ClassLoader loader, deltix.util.lang.ExceptionHandler handler)
java.lang.String
toString()
-
-
-
Field Detail
-
DEFAULT_INSTANCE
public static final TypeLoader DEFAULT_INSTANCE
-
SILENT_INSTANCE
public static final TypeLoader SILENT_INSTANCE
-
-
Method Detail
-
load
public static java.lang.Class load(ClassDescriptor cd, java.lang.ClassLoader loader, deltix.util.lang.ExceptionHandler handler) throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
-
handle
public void handle(java.lang.Throwable x)
- Specified by:
handle
in interfacedeltix.util.lang.ExceptionHandler
-
handle
public void handle(ClassDescriptor cd, java.lang.ClassNotFoundException e)
-
load
public java.lang.Class load(ClassDescriptor cd) throws java.lang.ClassNotFoundException
- Specified by:
load
in interfaceTypeLoader
- Returns:
- Class for type specified by given descriptor (never null). Implementation of this function must return the same class for identical class descriptors (i.e. must be "pure function").
- Throws:
java.lang.ClassNotFoundException
-
load
public java.lang.Class<?> load(ClassDescriptor cd, deltix.util.lang.ExceptionHandler handler) throws java.lang.ClassNotFoundException
- Specified by:
load
in interfaceRegularTypeLoader
- Returns:
- Class for type specified by given descriptor (never null). Implementation of this function must return the same class for identical class descriptors (i.e. must be "pure function").
- Throws:
java.lang.ClassNotFoundException
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-