public final class BindableDescriptorUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static IBindableDescriptor |
getDescriptor(Class<?> clazz) |
static Class<? extends IBindableDescriptor> |
getDescriptorClass(Class<?> clazz) |
static String |
getDescriptorClassName(String className)
Return the mapped descriptor class name for a given class name (descriptors for nested
classes become top-level classes).
|
static String |
getPackageName(String classFullName)
Return the package name from a given class name (expressed as a string).
|
public static String getDescriptorClassName(String className)
public static Class<? extends IBindableDescriptor> getDescriptorClass(Class<?> clazz)
Bindable.IllegalArgumentException - If the class is not annotated with Bindable.NoClassDefFoundError - If the descriptor cannot be found.public static IBindableDescriptor getDescriptor(Class<?> clazz)
Bindable.IllegalArgumentException - If the class is not annotated with Bindable.NoClassDefFoundError - If the descriptor cannot be found.RuntimeException - If instantiation fails for some reason.Copyright © 2013 Carrot2.org. All Rights Reserved.