Package hec.model
Class ManagerMappingFactory
java.lang.Object
hec.model.ManagerMappingFactory
New manager mapping factory to be used by manager proxy and serialization to get the new refactored/moved class name from an old class name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addMapping
(String newManagerClass, String oldManagerClass) add a newManagerClass to oldManagerClass mapping.static String
getMapping
(String oldManagerClass) get the new manager class name from an old manager class.static void
removeMapping
(String oldManagerClass) remove an oldManagerClass mapping.
-
Constructor Details
-
ManagerMappingFactory
public ManagerMappingFactory()
-
-
Method Details
-
addMapping
add a newManagerClass to oldManagerClass mapping.- Parameters:
newManagerClass
- the new class name of the Manager ObjectoldManagerClass
- the old class name of the Manager Object
-
removeMapping
remove an oldManagerClass mapping.- Parameters:
oldManagerClass
- the old class name of the Manager Object
-
getMapping
get the new manager class name from an old manager class.- Parameters:
oldManagerClass
- the old class name of the Manager Object, if not in the mapping and not null then return same object
-