public class Classes extends Object
Constructor and Description |
---|
Classes() |
Modifier and Type | Method and Description |
---|---|
static Filter |
createForName(String className)
This method is almost the same as #createWritableForName, except
that this one doesn't expect the filter class to extends Configurable.
|
static Filter |
createWritableForName(String className)
Used to dynamically load a filter class, and create a Writable filter.
|
static Class<?> |
extendedForName(String className)
Equivalent of
Class.forName(String) which also returns classes for
primitives like boolean , etc. |
static Class<? extends Filter> |
getFilterClassByName(String className)
Used to dynamically load a filter class.
|
static String |
stringify(Class[] classes) |
public static Class<?> extendedForName(String className) throws ClassNotFoundException
Class.forName(String)
which also returns classes for
primitives like boolean
, etc.className
- The name of the class to retrieve. Can be either a normal class or
a primitive class.className
ClassNotFoundException
- If the requested class can not be found.public static Class<? extends Filter> getFilterClassByName(String className) throws ClassNotFoundException
className
- the filter class nameClassNotFoundException
- if couldn't find the classpublic static Filter createWritableForName(String className)
className
- the filter class name.Copyright © 2014 The Apache Software Foundation. All Rights Reserved.