Path: redb-route/redb.Route/Abstractions/IBeanTypeResolver.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Abstractions/IBeanTypeResolver.cs
----
namespace redb.Route.Abstractions;
///
/// Resolves a type name of a route (Namespace.Type, AssemblyName or a bare full name) to a CLR type: the
/// class of bean:, the type of an XML <bean>, the SQL outputClass. Registered as a
/// context service (): hosts that load user code into their own
/// register a resolver that searches that code first, as
/// Apache Camel's ClassResolver does under OSGi. Tsak registers one in the context of every module: the module's
/// assemblies (a package's entry points and companions), then the process. When none is registered,
/// searches the loaded assemblies of the process, and with two
/// assemblies of one name loaded (a module reloaded beside its previous version) finds the one loaded first.
///
public interface IBeanTypeResolver
{
/// Returns the resolved type, or null when no loaded assembly carries it.
Type? Resolve(string typeName);
}