-
- All Implemented Interfaces:
-
org.enodeframework.infrastructure.TypeNameProvider
public final class DefaultTypeNameProvider implements TypeNameProvider
-
-
Constructor Summary
Constructors Constructor Description DefaultTypeNameProvider(Map<String, String> typeDict)
-
Method Summary
Modifier and Type Method Description StringgetTypeName(Class<?> type)获取ClassName Class<?>getType(String typeName)根据name找Class final UnitcheckForAliasCircle(String name, String alias)Check whether the given name points back to the given alias as an alias in the other direction already, catching a circular reference upfront and throwing a corresponding IllegalStateException. -
-
Method Detail
-
getTypeName
String getTypeName(Class<?> type)
获取ClassName
-
checkForAliasCircle
final Unit checkForAliasCircle(String name, String alias)
Check whether the given name points back to the given alias as an alias in the other direction already, catching a circular reference upfront and throwing a corresponding IllegalStateException.
- Parameters:
name- the candidate namealias- the candidate alias
-
-
-
-