public class PropertyFileBean
extends java.lang.Object
PropertyFileService.addPropertyFileBean(PropertyFileBean)
can
be used to add this bean to the HubModifier and Type | Field and Description |
---|---|
static java.lang.String |
INSTANCE_NAME
The name of the single instance of this bean
|
private java.util.HashMap<java.lang.String,java.lang.Class<?>> |
mapping |
static java.lang.String |
TYPE_NAME
The name of the type under which this bean should be placed
|
Constructor and Description |
---|
PropertyFileBean()
A null constructor for creating an empty PropertyFileBean
|
PropertyFileBean(PropertyFileBean copyMe)
This method will create a deep copy of the passed in PropertyFileBean
|
Modifier and Type | Method and Description |
---|---|
void |
addTypeMapping(java.lang.String typeName,
java.lang.Class<?> beanClass)
Adds a type mapping to the set of type mappings
|
java.util.Map<java.lang.String,java.lang.Class<?>> |
getTypeMapping()
Gets the mapping from type name to bean class
|
java.lang.Class<?> |
getTypeMapping(java.lang.String typeName)
Gets the type mapping with the given name
|
java.lang.Class<?> |
removeTypeMapping(java.lang.String typeName)
Removes the type mapping with the given name
|
public static final java.lang.String TYPE_NAME
public static final java.lang.String INSTANCE_NAME
private final java.util.HashMap<java.lang.String,java.lang.Class<?>> mapping
public PropertyFileBean()
public PropertyFileBean(PropertyFileBean copyMe)
copyMe
- The non-null bean to copypublic java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMapping()
public void addTypeMapping(java.lang.String typeName, java.lang.Class<?> beanClass)
typeName
- The name of the type. May not be nullbeanClass
- The bean class to which this type should be mapped.
May not be nullpublic java.lang.Class<?> removeTypeMapping(java.lang.String typeName)
typeName
- removes the type mapping of the given name. May
not be nullpublic java.lang.Class<?> getTypeMapping(java.lang.String typeName)
typeName
- the type mapping to search for. May
not be null