@ UsedByGeneratedCode public static ReloadableType getReloadableType ( int typeRegistryId , int typeId ) { if ( GlobalConfiguration . verboseMode && log . isLoggable ( Level . INFO ) ) { log . info ( ">TypeRegistry.getReloadableType(typeRegistryId=" + typeRegistryId + ",typeId=" + typeId + ")" ) ; } TypeRegistry typeRegistry = registryInstances [ typeRegistryId ] . get ( ) ; if ( typeRegistry == null ) { throw new IllegalStateException ( "Request to access registry id " + typeRegistryId + " but no registry with that id has been created" ) ; } ReloadableType reloadableType = typeRegistry . getReloadableType ( typeId ) ; if ( reloadableType == null ) { throw new IllegalStateException ( "The type registry " + typeRegistry + " does not know about type id " + typeId ) ; } reloadableType . setResolved ( ) ; if ( GlobalConfiguration . verboseMode && log . isLoggable ( Level . INFO ) ) { log . info ( "<TypeRegistry.getReloadableType(typeRegistryId=" + typeRegistryId + ",typeId=" + typeId + ") returning " + reloadableType ) ; } reloadableType . createTypeAssociations ( ) ; return reloadableType ; }
This method discovers the reloadable type instance for the registry and type id specified .