public class ClassName extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static ClassName |
EMPTY
Can be used when updating an attribute to configure
it with no class name.
|
| Constructor and Description |
|---|
ClassName(String className)
Object to be instantiated using the empty param constructor of the className
|
ClassName(String className,
Properties properties) |
ClassName(String className,
String jsonInitProperties)
this is a convenient way to create a ClassName object using json represented properties
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getClassName() |
Properties |
getInitProperties() |
int |
hashCode() |
static boolean |
isClassNameValid(String className)
this provides a convenient method to validate if the given name is a valid classname
|
public static final ClassName EMPTY
public ClassName(String className)
className - this class needs a no-arg constructor.public ClassName(String className, String jsonInitProperties)
className - this class needs to have a no-arg constructorjsonInitProperties - a json representation of the initialization properties
that will be passed to org.apache.geode.cache.Declarable#initialize
in the geode-core module.
If the className is not Declarable, then these properties will be ignoredIllegalArgumentException - if the class name is not validIllegalArgumentException - if jsonInitProperties is invalid JSONpublic ClassName(String className, Properties properties)
className - the name of the class to be instantiated. This class needs to have
a no-arg constructor.properties - the initialization properties
that will be passed to org.apache.geode.cache.Declarable#initialize
in the geode-core module.
If the className is not Declarable, then these properties will be ignoredIllegalArgumentException - if classname contains illegal classname characterspublic String getClassName()
public Properties getInitProperties()
public static boolean isClassNameValid(String className)
className - the class name to be validated