@Beta public class PluginMap extends Object
| Constructor and Description |
|---|
PluginMap(String category,
com.typesafe.config.Config config) |
| Modifier and Type | Method and Description |
|---|---|
com.typesafe.config.ConfigObject |
aliasDefaults(String alias) |
Class<?> |
arraySugar() |
com.google.common.collect.BiMap<String,Class<?>> |
asBiMap() |
Class<?> |
baseClass()
The base class, if any, that all configured plugins must be assignable to.
|
String |
category() |
String |
classField() |
com.typesafe.config.Config |
config() |
Class<?> |
defaultSugar() |
Class<?> |
getClass(String type)
Resolves aliases until the root class for that alias chain is found or if no such alias exsits, then
try find and validate the given string as if it were the class name of an anonymous alias.
|
Class<?> |
getClassIfConfigured(String type)
Like
getClass(String), but will return null rather than try to locate a new class. |
String |
getClassName(Class<?> type)
Reverse look-up on the bi-map to get the root alias for this type; if none, then returns the class name
|
String |
getLastAlias(String alias)
Resolves aliases that point to other aliases until pointing to a real class; then return the current label.
|
Set<String> |
inlinedAliases() |
String |
toString() |
public static final PluginMap EMPTY
@Nonnull public com.typesafe.config.Config config()
@Nullable public Class<?> baseClass()
@Nonnull public String getClassName(Class<?> type)
@Nullable public String getLastAlias(String alias)
@Nonnull public Class<?> getClass(String type) throws ClassNotFoundException
ClassNotFoundException@Nullable public Class<?> getClassIfConfigured(String type)
getClass(String), but will return null rather than try to locate a new class.Copyright © 2015 AddThis. All rights reserved.