public class Global extends Object implements Serializable
| Constructor and Description | 
|---|
Global()
Instantiates a new global. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
constructValue(org.springframework.context.ApplicationContext context)
Construct value. 
 | 
<T> T | 
convertStringTo(String value,
               Class<T> typeClass)
Convert string to. 
 | 
String | 
getName()
Gets the name. 
 | 
String | 
getRef()
Gets the reference. 
 | 
String | 
getType()
Gets the type. 
 | 
Class<?> | 
getTypeClass()
Gets the type class. 
 | 
String | 
getValue()
Gets the value. 
 | 
Object | 
getValueAsType(Class<?> typeClass)
Gets the value as type. 
 | 
void | 
setName(String name)
Sets the name. 
 | 
void | 
setRef(String ref)
Sets the reference. 
 | 
void | 
setType(String type)
Sets the type. 
 | 
void | 
setValue(String value)
Sets the value. 
 | 
public String getName()
public String getRef()
public String getType()
public String getValue()
public void setName(String name)
name - the new namepublic void setRef(String ref)
ref - the new referencepublic void setType(String type)
type - the new typepublic void setValue(String value)
value - the new valuepublic <T> T convertStringTo(String value, Class<T> typeClass)
T - the generic typevalue - the valuetypeClass - the type classpublic Class<?> getTypeClass()
public Object getValueAsType(Class<?> typeClass)
typeClass - the type classpublic Object constructValue(org.springframework.context.ApplicationContext context)
context - the contextCopyright © 2020. All rights reserved.