public class ClassName
extends java.lang.Object
implements java.io.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(java.lang.String className)
Object to be instantiated using the empty param constructor of the className
|
ClassName(java.lang.String className,
java.util.Properties properties) |
ClassName(java.lang.String className,
java.lang.String jsonInitProperties)
this is a convenient way to create a ClassName object using json represented properties
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getClassName() |
java.util.Properties |
getInitProperties() |
int |
hashCode() |
static boolean |
isClassNameValid(java.lang.String className)
this provides a convenient method to validate if the given name is a valid classname
|
public static final ClassName EMPTY
public ClassName(java.lang.String className)
className - this class needs a no-arg constructor.public ClassName(java.lang.String className,
java.lang.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 ignoredjava.lang.IllegalArgumentException - if the class name is not validjava.lang.IllegalArgumentException - if jsonInitProperties is invalid JSONpublic ClassName(java.lang.String className,
java.util.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 ignoredjava.lang.IllegalArgumentException - if classname contains illegal classname characterspublic java.lang.String getClassName()
public java.util.Properties getInitProperties()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic static boolean isClassNameValid(java.lang.String className)
className - the class name to be validated