using System; namespace jive { static public class Resolve { static DependencyRegistry underlying_registry; static bool initialized; static public void initialize_with(DependencyRegistry registry) { underlying_registry = registry; initialized = registry != null; } static public DependencyToResolve the() { try { return underlying_registry.get_a(); } catch (Exception e) { throw new DependencyResolutionException(e); } } static public bool is_initialized() { return initialized; } } }