robotlegs/robotlegs-framework — comment on commit fa01f68d42f699177220555ee8b35097f45228d4
File: src/org/robotlegs/v2/extensions/mediatorMap/impl/NullV1MediatorMap.as line 14
By Stray:

Ah!

I think *most* of it would be, but there are some things in V1 that aren't currently supported in V2 because they seem like they're not really necessary, and they only create mess... and some (contextView for example) don't make sense in the new implementation:

function registerMediator(viewComponent:Object, mediator:IMediator):void;

function removeMediator(mediator:IMediator):IMediator;

function removeMediatorByView(viewComponent:Object):IMediator;

function retrieveMediator(viewComponent:Object):IMediator;

function get contextView():DisplayObjectContainer;

function set contextView(value:DisplayObjectContainer):void;

But we could provide a v1 partial adapter that throws the unsupported feature error for things we really can't support and acts normal for other things?

I can't figure out the use case for most of those - they seemed to be there to support extensions or to make it easier to test the core functionality of the mediatorMap itself. I may be missing something though.

Many just don't work (technically) in a covariant-mediator scenario anyway, and we can't assume that just because something has been manually unregistered through V1 mediator map that it didn't also fit a typeMatcher rule for covariant mediation.