public class ClassAliasPool extends Object implements ClassLookup
Modifier and Type | Field and Description |
---|---|
static ClassAliasPool |
CLASS_ALIASES |
Modifier and Type | Method and Description |
---|---|
void |
addAlias(Class... classes) |
void |
addAlias(Class clazz,
String names) |
void |
clean()
remove classes which are not in the default class loaders.
|
Class |
forName(CharSequence name) |
String |
nameFor(Class clazz) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, create, wrap, wrap
public static final ClassAliasPool CLASS_ALIASES
public void clean()
public Class forName(@NotNull CharSequence name) throws ClassNotFoundException
forName
in interface ClassLookup
ClassNotFoundException
public String nameFor(Class clazz)
nameFor
in interface ClassLookup
public void addAlias(@NotNull Class... classes)
addAlias
in interface ClassLookup
public void addAlias(Class clazz, @NotNull String names)
addAlias
in interface ClassLookup
Copyright © 2018. All rights reserved.