diff --git a/build.xml b/build.xml index 112c1817..38dc3f4d 100644 --- a/build.xml +++ b/build.xml @@ -92,7 +92,7 @@ - + @@ -122,8 +122,8 @@ - - + + [asdoc] ASDOC documentation generated successfully diff --git a/buildfile b/buildfile index 5b75f6c4..cfd5bcbb 100644 --- a/buildfile +++ b/buildfile @@ -16,23 +16,23 @@ layout[:source, :test, :as3] = "test" THIS_VERSION = "2.0.0b1-SNAPSHOT" define "robotlegs-framework", :layout => layout do - - project.group = "org.robotlegs" - project.version = THIS_VERSION - + + project.group = "org.robotlegs" + project.version = THIS_VERSION + args = [ "-namespace+=http://ns.robotlegs.org/flex/rl2,#{_(:src,"manifest.xml")}", "-include-namespaces+=http://ns.robotlegs.org/flex/rl2" ] compile.using( :compc, :flexsdk => flexsdk, :args => args ). - with( _(:lib,"as3commons-logging-2.7.swc"), + with( _(:lib,"as3commons-logging-2.7.swc"), _(:lib,"Swiftsuspenders-v2.0.0b3.swc"), _(:lib,"robotlegs-framework-v1.5.2.swc") ) testrunner = _(:source, :test, :as3, "RobotlegsTest.mxml") test.using(:flexunit4 => true, :headless => false, :version => "4.1.0-8") - + test.compile.using( :main => testrunner, :args => [] ). with( FlexUnit4.swcs("4.1.0-8", "4.1.0.16076", :flex), _(:lib,"mockolate-0.12.2-flex.swc"), @@ -40,9 +40,9 @@ define "robotlegs-framework", :layout => layout do doc_title = "Robotlegs v#{THIS_VERSION}" doc.using :maintitle => doc_title, - :windowtitle => doc_title, + :windowtitle => doc_title, :args => doc_args - + task package => doc package(:swc). @@ -51,14 +51,14 @@ define "robotlegs-framework", :layout => layout do include( _(:target,:doc,:tempdita,'packages.dita*') ). include( _(:target,:doc,:tempdita,'org.*') ) - + end desc "Creates a zip archive containing a swc, sources, libraries and documentation." task :archive => "robotlegs-framework:doc" do - + rl = project( "robotlegs-framework" ) - rl_swc = artifacts( rl ).first + rl_swc = artifacts( rl ).first rl_vname = File.basename( rl_swc.to_s, ".swc" ) rl_zip = rl._(:target, "#{rl_vname}.zip") @@ -71,9 +71,9 @@ task :archive => "robotlegs-framework:doc" do "rlprojectlink" => "http://github.com/robotlegs/robotlegs-framework", "bestpracticeslink" => "http://github.com/robotlegs/robotlegs-framework/wiki/Best-Practices", "faqlink" => "http://knowledge.robotlegs.com" ).run - - FileUtils.move rl._(:target,"README.tmpl"), rl._(:target,"README") - + + FileUtils.move rl._(:target,"README.tmpl"), rl._(:target,"README") + puts "Packaging archive in #{rl_zip}" rl_zip = zip( rl_zip ) @@ -85,16 +85,16 @@ task :archive => "robotlegs-framework:doc" do rl_zip.path('docs').include( rl._(:target,:doc), :as => "docs" ).exclude( rl._(:target,:doc,:tempdita) ) rl_zip.include( rl._(:lib) ) rl_zip.invoke - + FileUtils.rm_r rl._(:target, "README") end def doc_args [ "-keep-xml=true", - "-lenient=true", + "-lenient=true", "-footer", "Robotlegs - http://www.robotlegs.org/ - Documentation generated at: #{Time.now.localtime.strftime("%d-%m-%Y")}", - "-package", "org.robotlegs.v2.core.api", "Core framework API", - "-package", "org.robotlegs.v2.core.impl", "Core framework implementation" ] + "-package", "robotlegs.bender.core.api", "Core framework API", + "-package", "robotlegs.bender.core.impl", "Core framework implementation" ] end diff --git a/src/manifest.xml b/src/manifest.xml index d39081eb..bc66ad88 100644 --- a/src/manifest.xml +++ b/src/manifest.xml @@ -11,9 +11,9 @@ - diff --git a/src/org/robotlegs/v2/bundles/classic/ClassicRobotlegsBundle.as b/src/robotlegs/bender/bundles/classic/ClassicRobotlegsBundle.as similarity index 63% rename from src/org/robotlegs/v2/bundles/classic/ClassicRobotlegsBundle.as rename to src/robotlegs/bender/bundles/classic/ClassicRobotlegsBundle.as index 2b9e535b..b4a5c6cf 100644 --- a/src/org/robotlegs/v2/bundles/classic/ClassicRobotlegsBundle.as +++ b/src/robotlegs/bender/bundles/classic/ClassicRobotlegsBundle.as @@ -1,23 +1,23 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.bundles.classic +package robotlegs.bender.bundles.classic { - import org.robotlegs.v2.bundles.shared.configs.ContextViewListenerConfig; - import org.robotlegs.v2.core.api.ContextLogLevel; - import org.robotlegs.v2.core.api.IContextBuilder; - import org.robotlegs.v2.core.api.IContextBuilderBundle; - import org.robotlegs.v2.extensions.autoDestroy.AutoDestroyExtension; - import org.robotlegs.v2.extensions.commandMap.CommandMapExtension; - import org.robotlegs.v2.extensions.eventCommandMap.EventCommandMapExtension; - import org.robotlegs.v2.extensions.logging.impl.TraceLogTarget; - import org.robotlegs.v2.extensions.mediatorMap.MediatorMapExtension; - import org.robotlegs.v2.extensions.modularity.ModularityExtension; - import org.robotlegs.v2.extensions.viewManager.ViewManagerExtension; + import robotlegs.bender.bundles.shared.configs.ContextViewListenerConfig; + import robotlegs.bender.core.api.ContextLogLevel; + import robotlegs.bender.core.api.IContextBuilder; + import robotlegs.bender.core.api.IContextBuilderBundle; + import robotlegs.bender.extensions.autoDestroy.AutoDestroyExtension; + import robotlegs.bender.extensions.commandMap.CommandMapExtension; + import robotlegs.bender.extensions.eventCommandMap.EventCommandMapExtension; + import robotlegs.bender.extensions.logging.impl.TraceLogTarget; + import robotlegs.bender.extensions.mediatorMap.MediatorMapExtension; + import robotlegs.bender.extensions.modularity.ModularityExtension; + import robotlegs.bender.extensions.viewManager.ViewManagerExtension; public class ClassicRobotlegsBundle implements IContextBuilderBundle { diff --git a/src/org/robotlegs/v2/bundles/shared/configs/ContextViewListenerConfig.as b/src/robotlegs/bender/bundles/shared/configs/ContextViewListenerConfig.as similarity index 81% rename from src/org/robotlegs/v2/bundles/shared/configs/ContextViewListenerConfig.as rename to src/robotlegs/bender/bundles/shared/configs/ContextViewListenerConfig.as index cac45c15..59df7cc6 100644 --- a/src/org/robotlegs/v2/bundles/shared/configs/ContextViewListenerConfig.as +++ b/src/robotlegs/bender/bundles/shared/configs/ContextViewListenerConfig.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.bundles.shared.configs +package robotlegs.bender.bundles.shared.configs { import flash.display.DisplayObjectContainer; - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextConfig; - import org.robotlegs.v2.extensions.viewManager.api.IViewManager; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextConfig; + import robotlegs.bender.extensions.viewManager.api.IViewManager; public class ContextViewListenerConfig implements IContextConfig { diff --git a/src/org/robotlegs/v2/bundles/shared/utilities/LoggingEventDispatcher.as b/src/robotlegs/bender/bundles/shared/utilities/LoggingEventDispatcher.as similarity index 91% rename from src/org/robotlegs/v2/bundles/shared/utilities/LoggingEventDispatcher.as rename to src/robotlegs/bender/bundles/shared/utilities/LoggingEventDispatcher.as index 4c65e8d7..35b0b228 100644 --- a/src/org/robotlegs/v2/bundles/shared/utilities/LoggingEventDispatcher.as +++ b/src/robotlegs/bender/bundles/shared/utilities/LoggingEventDispatcher.as @@ -1,15 +1,15 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.bundles.shared.utilities +package robotlegs.bender.bundles.shared.utilities { import flash.events.Event; import flash.events.EventDispatcher; - import org.robotlegs.v2.core.api.IContextLogger; + import robotlegs.bender.core.api.IContextLogger; public class LoggingEventDispatcher extends EventDispatcher { diff --git a/src/org/robotlegs/v2/core/api/ContextBuilderEvent.as b/src/robotlegs/bender/core/api/ContextBuilderEvent.as similarity index 93% rename from src/org/robotlegs/v2/core/api/ContextBuilderEvent.as rename to src/robotlegs/bender/core/api/ContextBuilderEvent.as index 244c6822..4233c056 100644 --- a/src/org/robotlegs/v2/core/api/ContextBuilderEvent.as +++ b/src/robotlegs/bender/core/api/ContextBuilderEvent.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.api +package robotlegs.bender.core.api { import flash.events.Event; diff --git a/src/org/robotlegs/v2/core/api/ContextLogLevel.as b/src/robotlegs/bender/core/api/ContextLogLevel.as similarity index 93% rename from src/org/robotlegs/v2/core/api/ContextLogLevel.as rename to src/robotlegs/bender/core/api/ContextLogLevel.as index e7db105b..87ca8cb7 100644 --- a/src/org/robotlegs/v2/core/api/ContextLogLevel.as +++ b/src/robotlegs/bender/core/api/ContextLogLevel.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.api +package robotlegs.bender.core.api { import flash.utils.Dictionary; diff --git a/src/org/robotlegs/v2/core/api/IContext.as b/src/robotlegs/bender/core/api/IContext.as similarity index 96% rename from src/org/robotlegs/v2/core/api/IContext.as rename to src/robotlegs/bender/core/api/IContext.as index c5d05d55..11227815 100644 --- a/src/org/robotlegs/v2/core/api/IContext.as +++ b/src/robotlegs/bender/core/api/IContext.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.api +package robotlegs.bender.core.api { import flash.display.DisplayObjectContainer; import flash.events.IEventDispatcher; diff --git a/src/org/robotlegs/v2/core/api/IContextBuilder.as b/src/robotlegs/bender/core/api/IContextBuilder.as similarity index 91% rename from src/org/robotlegs/v2/core/api/IContextBuilder.as rename to src/robotlegs/bender/core/api/IContextBuilder.as index 2f1f063f..3884325d 100644 --- a/src/org/robotlegs/v2/core/api/IContextBuilder.as +++ b/src/robotlegs/bender/core/api/IContextBuilder.as @@ -1,17 +1,17 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.api +package robotlegs.bender.core.api { import flash.display.DisplayObjectContainer; import flash.events.IEventDispatcher; import org.swiftsuspenders.Injector; - [Event(name="contextBuildComplete", type="org.robotlegs.v2.core.api.ContextBuilderEvent")] + [Event(name="contextBuildComplete", type="robotlegs.bender.core.api.ContextBuilderEvent")] public interface IContextBuilder extends IEventDispatcher { function build():IContext; diff --git a/src/org/robotlegs/v2/core/api/IContextBuilderBundle.as b/src/robotlegs/bender/core/api/IContextBuilderBundle.as similarity index 86% rename from src/org/robotlegs/v2/core/api/IContextBuilderBundle.as rename to src/robotlegs/bender/core/api/IContextBuilderBundle.as index 8d48a51e..677d093e 100644 --- a/src/org/robotlegs/v2/core/api/IContextBuilderBundle.as +++ b/src/robotlegs/bender/core/api/IContextBuilderBundle.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.api +package robotlegs.bender.core.api { public interface IContextBuilderBundle diff --git a/src/org/robotlegs/v2/core/api/IContextConfig.as b/src/robotlegs/bender/core/api/IContextConfig.as similarity index 86% rename from src/org/robotlegs/v2/core/api/IContextConfig.as rename to src/robotlegs/bender/core/api/IContextConfig.as index dc888f3d..72087c87 100644 --- a/src/org/robotlegs/v2/core/api/IContextConfig.as +++ b/src/robotlegs/bender/core/api/IContextConfig.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.api +package robotlegs.bender.core.api { public interface IContextConfig diff --git a/src/org/robotlegs/v2/core/api/IContextExtension.as b/src/robotlegs/bender/core/api/IContextExtension.as similarity index 87% rename from src/org/robotlegs/v2/core/api/IContextExtension.as rename to src/robotlegs/bender/core/api/IContextExtension.as index 89b9035e..cdff7d2d 100644 --- a/src/org/robotlegs/v2/core/api/IContextExtension.as +++ b/src/robotlegs/bender/core/api/IContextExtension.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.api +package robotlegs.bender.core.api { public interface IContextExtension diff --git a/src/org/robotlegs/v2/core/api/IContextLogTarget.as b/src/robotlegs/bender/core/api/IContextLogTarget.as similarity index 87% rename from src/org/robotlegs/v2/core/api/IContextLogTarget.as rename to src/robotlegs/bender/core/api/IContextLogTarget.as index a17f2422..cd167692 100644 --- a/src/org/robotlegs/v2/core/api/IContextLogTarget.as +++ b/src/robotlegs/bender/core/api/IContextLogTarget.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.api +package robotlegs.bender.core.api { public interface IContextLogTarget diff --git a/src/org/robotlegs/v2/core/api/IContextLogger.as b/src/robotlegs/bender/core/api/IContextLogger.as similarity index 92% rename from src/org/robotlegs/v2/core/api/IContextLogger.as rename to src/robotlegs/bender/core/api/IContextLogger.as index a761eed1..a24f1f58 100644 --- a/src/org/robotlegs/v2/core/api/IContextLogger.as +++ b/src/robotlegs/bender/core/api/IContextLogger.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.api +package robotlegs.bender.core.api { public interface IContextLogger diff --git a/src/org/robotlegs/v2/core/api/IContextPreProcessor.as b/src/robotlegs/bender/core/api/IContextPreProcessor.as similarity index 86% rename from src/org/robotlegs/v2/core/api/IContextPreProcessor.as rename to src/robotlegs/bender/core/api/IContextPreProcessor.as index 2ba25f60..a8df908b 100644 --- a/src/org/robotlegs/v2/core/api/IContextPreProcessor.as +++ b/src/robotlegs/bender/core/api/IContextPreProcessor.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.api +package robotlegs.bender.core.api { public interface IContextPreProcessor diff --git a/src/org/robotlegs/v2/core/api/IContextViewRegistry.as b/src/robotlegs/bender/core/api/IContextViewRegistry.as similarity index 89% rename from src/org/robotlegs/v2/core/api/IContextViewRegistry.as rename to src/robotlegs/bender/core/api/IContextViewRegistry.as index a5d7ac85..83dfd88e 100644 --- a/src/org/robotlegs/v2/core/api/IContextViewRegistry.as +++ b/src/robotlegs/bender/core/api/IContextViewRegistry.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.api +package robotlegs.bender.core.api { import flash.display.DisplayObjectContainer; diff --git a/src/org/robotlegs/v2/core/api/ITypeFilter.as b/src/robotlegs/bender/core/api/ITypeFilter.as similarity index 89% rename from src/org/robotlegs/v2/core/api/ITypeFilter.as rename to src/robotlegs/bender/core/api/ITypeFilter.as index 0248e838..7e6786d5 100644 --- a/src/org/robotlegs/v2/core/api/ITypeFilter.as +++ b/src/robotlegs/bender/core/api/ITypeFilter.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.api +package robotlegs.bender.core.api { public interface ITypeFilter diff --git a/src/org/robotlegs/v2/core/api/ITypeMatcher.as b/src/robotlegs/bender/core/api/ITypeMatcher.as similarity index 88% rename from src/org/robotlegs/v2/core/api/ITypeMatcher.as rename to src/robotlegs/bender/core/api/ITypeMatcher.as index 9571d27f..6a873f8e 100644 --- a/src/org/robotlegs/v2/core/api/ITypeMatcher.as +++ b/src/robotlegs/bender/core/api/ITypeMatcher.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.api +package robotlegs.bender.core.api { public interface ITypeMatcher diff --git a/src/org/robotlegs/v2/core/impl/ConfigManager.as b/src/robotlegs/bender/core/impl/ConfigManager.as similarity index 94% rename from src/org/robotlegs/v2/core/impl/ConfigManager.as rename to src/robotlegs/bender/core/impl/ConfigManager.as index d337a612..faf9aaea 100644 --- a/src/org/robotlegs/v2/core/impl/ConfigManager.as +++ b/src/robotlegs/bender/core/impl/ConfigManager.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import flash.errors.IllegalOperationError; import flash.utils.Dictionary; - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextConfig; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextConfig; public class ConfigManager { diff --git a/src/org/robotlegs/v2/core/impl/Context.as b/src/robotlegs/bender/core/impl/Context.as similarity index 97% rename from src/org/robotlegs/v2/core/impl/Context.as rename to src/robotlegs/bender/core/impl/Context.as index 4ef2d4cf..41c95234 100644 --- a/src/org/robotlegs/v2/core/impl/Context.as +++ b/src/robotlegs/bender/core/impl/Context.as @@ -1,19 +1,19 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import flash.display.DisplayObjectContainer; import flash.errors.IllegalOperationError; import flash.events.EventDispatcher; import flash.events.IEventDispatcher; import flash.system.ApplicationDomain; - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextLogger; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextLogger; import org.swiftsuspenders.Injector; public class Context implements IContext diff --git a/src/org/robotlegs/v2/core/impl/ContextBuilder.as b/src/robotlegs/bender/core/impl/ContextBuilder.as similarity index 87% rename from src/org/robotlegs/v2/core/impl/ContextBuilder.as rename to src/robotlegs/bender/core/impl/ContextBuilder.as index 98c6a078..7a4b65a1 100644 --- a/src/org/robotlegs/v2/core/impl/ContextBuilder.as +++ b/src/robotlegs/bender/core/impl/ContextBuilder.as @@ -1,25 +1,25 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import flash.display.DisplayObjectContainer; import flash.errors.IllegalOperationError; import flash.events.EventDispatcher; import flash.events.IEventDispatcher; - import org.robotlegs.v2.core.api.ContextBuilderEvent; - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextBuilder; - import org.robotlegs.v2.core.api.IContextBuilderBundle; - import org.robotlegs.v2.core.api.IContextLogTarget; - import org.robotlegs.v2.core.api.IContextLogger; + import robotlegs.bender.core.api.ContextBuilderEvent; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextBuilder; + import robotlegs.bender.core.api.IContextBuilderBundle; + import robotlegs.bender.core.api.IContextLogTarget; + import robotlegs.bender.core.api.IContextLogger; import org.swiftsuspenders.Injector; - [Event(name="contextBuildComplete", type="org.robotlegs.v2.core.api.ContextBuilderEvent")] + [Event(name="contextBuildComplete", type="robotlegs.bender.core.api.ContextBuilderEvent")] public class ContextBuilder extends EventDispatcher implements IContextBuilder { diff --git a/src/org/robotlegs/v2/core/impl/ContextLogger.as b/src/robotlegs/bender/core/impl/ContextLogger.as similarity index 90% rename from src/org/robotlegs/v2/core/impl/ContextLogger.as rename to src/robotlegs/bender/core/impl/ContextLogger.as index dac4158d..9064bafd 100644 --- a/src/org/robotlegs/v2/core/impl/ContextLogger.as +++ b/src/robotlegs/bender/core/impl/ContextLogger.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import flash.utils.getTimer; - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextLogTarget; - import org.robotlegs.v2.core.api.IContextLogger; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextLogTarget; + import robotlegs.bender.core.api.IContextLogger; /** * Code duplication and magic numbers, but we want the speed diff --git a/src/org/robotlegs/v2/core/impl/ContextViewRegistry.as b/src/robotlegs/bender/core/impl/ContextViewRegistry.as similarity index 89% rename from src/org/robotlegs/v2/core/impl/ContextViewRegistry.as rename to src/robotlegs/bender/core/impl/ContextViewRegistry.as index bbe9e4d1..cc78503d 100644 --- a/src/org/robotlegs/v2/core/impl/ContextViewRegistry.as +++ b/src/robotlegs/bender/core/impl/ContextViewRegistry.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import flash.display.DisplayObjectContainer; import flash.utils.Dictionary; - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextViewRegistry; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextViewRegistry; public class ContextViewRegistry implements IContextViewRegistry { diff --git a/src/org/robotlegs/v2/core/impl/ExtensionManager.as b/src/robotlegs/bender/core/impl/ExtensionManager.as similarity index 95% rename from src/org/robotlegs/v2/core/impl/ExtensionManager.as rename to src/robotlegs/bender/core/impl/ExtensionManager.as index 866436ed..2f7f2660 100644 --- a/src/org/robotlegs/v2/core/impl/ExtensionManager.as +++ b/src/robotlegs/bender/core/impl/ExtensionManager.as @@ -1,20 +1,20 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import flash.errors.IllegalOperationError; import flash.utils.Dictionary; import flash.utils.describeType; import flash.utils.getQualifiedClassName; - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextExtension; - import org.robotlegs.v2.core.api.IContextLogger; - import org.robotlegs.v2.core.api.IContextPreProcessor; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextExtension; + import robotlegs.bender.core.api.IContextLogger; + import robotlegs.bender.core.api.IContextPreProcessor; public class ExtensionManager { diff --git a/src/org/robotlegs/v2/core/impl/PackageFilter.as b/src/robotlegs/bender/core/impl/PackageFilter.as similarity index 93% rename from src/org/robotlegs/v2/core/impl/PackageFilter.as rename to src/robotlegs/bender/core/impl/PackageFilter.as index 2b677998..8ac36608 100644 --- a/src/org/robotlegs/v2/core/impl/PackageFilter.as +++ b/src/robotlegs/bender/core/impl/PackageFilter.as @@ -1,28 +1,28 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { - import org.robotlegs.v2.core.api.ITypeFilter; + import robotlegs.bender.core.api.ITypeFilter; import flash.utils.getQualifiedClassName; // TODO: review (location, design) public class PackageFilter implements ITypeFilter { protected const emptyVector:Vector. = new Vector.(); - + protected var _requirePackage:String; protected var _anyOfPackages:Vector.; protected var _noneOfPackages:Vector.; - + protected var _descriptor:String; - + public function PackageFilter(requiredPackage:String, anyOfPackages:Vector., noneOfPackages:Vector.) { _requirePackage = requiredPackage; @@ -31,7 +31,7 @@ package org.robotlegs.v2.core.impl _anyOfPackages.sort(stringSort); _noneOfPackages.sort(stringSort); } - + public function get allOfTypes():Vector. { return emptyVector; @@ -52,21 +52,21 @@ package org.robotlegs.v2.core.impl return _descriptor ||= createDescriptor(); } - + public function matches(item:*):Boolean { const fqcn:String = getQualifiedClassName(item); var packageName:String; - + if(_requirePackage && (!matchPackageInFQCN(_requirePackage, fqcn))) return false; - + for each (packageName in _noneOfPackages) { if(matchPackageInFQCN(packageName, fqcn)) return false; } - + for each (packageName in _anyOfPackages) { if(matchPackageInFQCN(packageName, fqcn)) @@ -74,28 +74,28 @@ package org.robotlegs.v2.core.impl } if(_anyOfPackages.length > 0) return false; - + if(_requirePackage) return true; if(_noneOfPackages.length > 0) return true; - + return false; } - + private function createDescriptor():String { return "require: " + _requirePackage + ", any of: " + _anyOfPackages.toString() + ", none of: " + _noneOfPackages.toString(); } - + private function matchPackageInFQCN(packageName:String, fqcn:String):Boolean { return (fqcn.indexOf(packageName) == 0) } - + protected function stringSort(item1:String, item2:String):int { if (item1 > item2) diff --git a/src/org/robotlegs/v2/core/impl/PackageMatcher.as b/src/robotlegs/bender/core/impl/PackageMatcher.as similarity index 91% rename from src/org/robotlegs/v2/core/impl/PackageMatcher.as rename to src/robotlegs/bender/core/impl/PackageMatcher.as index 121619ae..a0835965 100644 --- a/src/org/robotlegs/v2/core/impl/PackageMatcher.as +++ b/src/robotlegs/bender/core/impl/PackageMatcher.as @@ -1,17 +1,17 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { - import org.robotlegs.v2.core.api.ITypeFilter; + import robotlegs.bender.core.api.ITypeFilter; import flash.errors.IllegalOperationError; - import org.robotlegs.v2.core.api.ITypeMatcher; - import org.robotlegs.v2.core.impl.TypeMatcherError; - + import robotlegs.bender.core.api.ITypeMatcher; + import robotlegs.bender.core.impl.TypeMatcherError; + // TODO: review (location) public class PackageMatcher implements ITypeMatcher { @@ -22,7 +22,7 @@ package org.robotlegs.v2.core.impl protected const _noneOfPackages:Vector. = new Vector.(); protected var _typeFilter:ITypeFilter; - + public function PackageMatcher() { } @@ -36,26 +36,26 @@ package org.robotlegs.v2.core.impl { if(_typeFilter) throwSealedMatcherError(); - + if(_requirePackage) throw new IllegalOperationError('You can only set one required package on this PackageMatcher (two non-nested packages cannot both be required, and nested packages are redundant.)'); - + _requirePackage = fullPackage; return this; } - + public function anyOf(...packages):PackageMatcher { pushAddedPackagesTo(packages, _anyOfPackages); return this; } - + public function noneOf(...packages):PackageMatcher { pushAddedPackagesTo(packages, _noneOfPackages); return this; } - + public function lock():void { createTypeFilter(); @@ -83,7 +83,7 @@ package org.robotlegs.v2.core.impl { throw new IllegalOperationError('This TypeMatcher has been sealed and can no longer be configured'); } - + protected function pushValuesToStringVector(values:Array, vector:Vector.):void { if (values.length == 1 diff --git a/src/org/robotlegs/v2/core/impl/TypeFilter.as b/src/robotlegs/bender/core/impl/TypeFilter.as similarity index 95% rename from src/org/robotlegs/v2/core/impl/TypeFilter.as rename to src/robotlegs/bender/core/impl/TypeFilter.as index 9a2e4d9e..7f30e75f 100644 --- a/src/org/robotlegs/v2/core/impl/TypeFilter.as +++ b/src/robotlegs/bender/core/impl/TypeFilter.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import flash.utils.getQualifiedClassName; - import org.robotlegs.v2.core.api.ITypeFilter; + import robotlegs.bender.core.api.ITypeFilter; public class TypeFilter implements ITypeFilter { diff --git a/src/org/robotlegs/v2/core/impl/TypeMatcher.as b/src/robotlegs/bender/core/impl/TypeMatcher.as similarity index 89% rename from src/org/robotlegs/v2/core/impl/TypeMatcher.as rename to src/robotlegs/bender/core/impl/TypeMatcher.as index 214f6b44..a9d10e2b 100644 --- a/src/org/robotlegs/v2/core/impl/TypeMatcher.as +++ b/src/robotlegs/bender/core/impl/TypeMatcher.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import flash.errors.IllegalOperationError; - import org.robotlegs.v2.core.api.ITypeFilter; - import org.robotlegs.v2.core.api.ITypeMatcher; - import org.robotlegs.v2.core.utilities.pushValuesToClassVector; + import robotlegs.bender.core.api.ITypeFilter; + import robotlegs.bender.core.api.ITypeMatcher; + import robotlegs.bender.core.utilities.pushValuesToClassVector; public class TypeMatcher implements ITypeMatcher { diff --git a/src/org/robotlegs/v2/core/impl/TypeMatcherError.as b/src/robotlegs/bender/core/impl/TypeMatcherError.as similarity index 90% rename from src/org/robotlegs/v2/core/impl/TypeMatcherError.as rename to src/robotlegs/bender/core/impl/TypeMatcherError.as index e929b6af..66a9b20c 100644 --- a/src/org/robotlegs/v2/core/impl/TypeMatcherError.as +++ b/src/robotlegs/bender/core/impl/TypeMatcherError.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { // TODO: should be in API diff --git a/src/org/robotlegs/v2/core/utilities/checkUIComponentAvailable.as b/src/robotlegs/bender/core/utilities/checkUIComponentAvailable.as similarity index 92% rename from src/org/robotlegs/v2/core/utilities/checkUIComponentAvailable.as rename to src/robotlegs/bender/core/utilities/checkUIComponentAvailable.as index 70684969..e0a22ef1 100644 --- a/src/org/robotlegs/v2/core/utilities/checkUIComponentAvailable.as +++ b/src/robotlegs/bender/core/utilities/checkUIComponentAvailable.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.utilities +package robotlegs.bender.core.utilities { import flash.utils.getDefinitionByName; - + public function checkUIComponentAvailable():Boolean - { + { if(flexStatusHelper.flexStatus == flexStatusHelper.UNCHECKED) { try @@ -24,10 +24,10 @@ package org.robotlegs.v2.core.utilities flexStatusHelper.flexStatus = flexStatusHelper.FLEX_NOT_FOUND; } } - + return (flexStatusHelper.flexStatus == flexStatusHelper.FLEX_FOUND); } - + } class flexStatusHelper diff --git a/src/org/robotlegs/v2/core/utilities/classHasMethod.as b/src/robotlegs/bender/core/utilities/classHasMethod.as similarity index 87% rename from src/org/robotlegs/v2/core/utilities/classHasMethod.as rename to src/robotlegs/bender/core/utilities/classHasMethod.as index 914ee4b4..0f408063 100644 --- a/src/org/robotlegs/v2/core/utilities/classHasMethod.as +++ b/src/robotlegs/bender/core/utilities/classHasMethod.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.utilities +package robotlegs.bender.core.utilities { import flash.utils.describeType; diff --git a/src/org/robotlegs/v2/core/utilities/objectHasMethod.as b/src/robotlegs/bender/core/utilities/objectHasMethod.as similarity index 87% rename from src/org/robotlegs/v2/core/utilities/objectHasMethod.as rename to src/robotlegs/bender/core/utilities/objectHasMethod.as index 0d2eeec6..c2432695 100644 --- a/src/org/robotlegs/v2/core/utilities/objectHasMethod.as +++ b/src/robotlegs/bender/core/utilities/objectHasMethod.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.utilities +package robotlegs.bender.core.utilities { public function objectHasMethod(object:*, methodName:String):Boolean { diff --git a/src/org/robotlegs/v2/core/utilities/pushValuesToClassVector.as b/src/robotlegs/bender/core/utilities/pushValuesToClassVector.as similarity index 90% rename from src/org/robotlegs/v2/core/utilities/pushValuesToClassVector.as rename to src/robotlegs/bender/core/utilities/pushValuesToClassVector.as index e9609eaf..8523783a 100644 --- a/src/org/robotlegs/v2/core/utilities/pushValuesToClassVector.as +++ b/src/robotlegs/bender/core/utilities/pushValuesToClassVector.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.utilities +package robotlegs.bender.core.utilities { public function pushValuesToClassVector(values:Array, vector:Vector.):void diff --git a/src/org/robotlegs/v2/core/utilities/removeValuesFromClassVector.as b/src/robotlegs/bender/core/utilities/removeValuesFromClassVector.as similarity index 91% rename from src/org/robotlegs/v2/core/utilities/removeValuesFromClassVector.as rename to src/robotlegs/bender/core/utilities/removeValuesFromClassVector.as index f6e00ca0..af337095 100644 --- a/src/org/robotlegs/v2/core/utilities/removeValuesFromClassVector.as +++ b/src/robotlegs/bender/core/utilities/removeValuesFromClassVector.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.utilities +package robotlegs.bender.core.utilities { public function removeValuesFromClassVector(values:Array, vector:Vector.):void { diff --git a/src/org/robotlegs/v2/experimental/CommandFlow.as b/src/robotlegs/bender/experimental/CommandFlow.as similarity index 92% rename from src/org/robotlegs/v2/experimental/CommandFlow.as rename to src/robotlegs/bender/experimental/CommandFlow.as index 2c625f7b..6c9262dc 100644 --- a/src/org/robotlegs/v2/experimental/CommandFlow.as +++ b/src/robotlegs/bender/experimental/CommandFlow.as @@ -1,36 +1,36 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental +package robotlegs.bender.experimental { import flash.events.IEventDispatcher; import flash.utils.Dictionary; import org.swiftsuspenders.Injector; - import org.robotlegs.v2.experimental.CommandFlowStart; - import org.robotlegs.v2.core.utilities.pushValuesToClassVector; - + import robotlegs.bender.experimental.CommandFlowStart; + import robotlegs.bender.core.utilities.pushValuesToClassVector; + public class CommandFlow { - + private const _mappingsFrom:Dictionary = new Dictionary(); - + private const _executedCommands:Dictionary = new Dictionary(); - + [Inject] public var eventDispatcher:IEventDispatcher; - + [Inject] public var injector:Injector; - + public function initialize():void { checkIfMappingsShouldBeActive(_mappingsFrom[CommandFlowStart]); } - + public function from(commandClass:Class):ICommandFlowMapping { const mapping:CommandFlowMapping = new CommandFlowMapping(new [commandClass], eventDispatcher, executionCallback, false, injector); @@ -38,32 +38,32 @@ package org.robotlegs.v2.experimental addMappingTo(mapping, commandClass); return mapping; } - + public function fromAll(...commandClasses):ICommandFlowMapping { return fromMultipleCommands(true, commandClasses); } - + public function fromAny(...commandClasses):ICommandFlowMapping { return fromMultipleCommands(false, commandClasses); } - + private function fromMultipleCommands(requireFromAll:Boolean, ...commandClasses):ICommandFlowMapping { const commandVector:Vector. = new Vector.(); pushValuesToClassVector(commandClasses, commandVector); - + const mapping:CommandFlowMapping = new CommandFlowMapping(commandVector, eventDispatcher, executionCallback, requireFromAll, injector); - + for each (var commandClass:Class in commandVector) { addMappingTo(mapping, commandClass); } - + return mapping; } - + private function executionCallback(commandFlowRule:ICommandFlowRule):void { const commandClasses:Vector. = commandFlowRule.commandClasses; @@ -72,7 +72,7 @@ package org.robotlegs.v2.experimental const command:Object = injector.getInstance(commandClass); command.execute(); _executedCommands[commandClass] = commandClass; - + if(_mappingsFrom[commandClass]) { checkIfMappingsShouldBeActive(_mappingsFrom[commandClass]); @@ -84,7 +84,7 @@ package org.robotlegs.v2.experimental { var requiredFromCommands:Vector.; var readyToActivate:Boolean; - + for each (var mapping:CommandFlowMapping in mappings) { readyToActivate = true; @@ -93,7 +93,7 @@ package org.robotlegs.v2.experimental { if((!mapping.requireAllFrom) && _executedCommands[commandClass]) break; - + if(mapping.requireAllFrom && (!_executedCommands[commandClass])) { readyToActivate = false; @@ -106,7 +106,7 @@ package org.robotlegs.v2.experimental } } } - + private function addMappingTo(mapping:CommandFlowMapping, commandClass:Class):void { var mappings:Vector.; diff --git a/src/org/robotlegs/v2/experimental/CommandFlowMapping.as b/src/robotlegs/bender/experimental/CommandFlowMapping.as similarity index 87% rename from src/org/robotlegs/v2/experimental/CommandFlowMapping.as rename to src/robotlegs/bender/experimental/CommandFlowMapping.as index 1cffce0e..c1a1da5b 100644 --- a/src/org/robotlegs/v2/experimental/CommandFlowMapping.as +++ b/src/robotlegs/bender/experimental/CommandFlowMapping.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental +package robotlegs.bender.experimental { - import org.robotlegs.v2.experimental.ICommandFlowMapping; + import robotlegs.bender.experimental.ICommandFlowMapping; import flash.events.IEventDispatcher; - import org.robotlegs.v2.core.utilities.pushValuesToClassVector; - import org.robotlegs.v2.experimental.ICommandFlowRule; - import org.robotlegs.v2.experimental.CommandFlowRequireOnlyRule; - import org.robotlegs.v2.experimental.CommandFlowRequireAllRule; + import robotlegs.bender.core.utilities.pushValuesToClassVector; + import robotlegs.bender.experimental.ICommandFlowRule; + import robotlegs.bender.experimental.CommandFlowRequireOnlyRule; + import robotlegs.bender.experimental.CommandFlowRequireAllRule; import flash.events.Event; import org.swiftsuspenders.Injector; @@ -22,15 +22,15 @@ package org.robotlegs.v2.experimental private var _from:Vector.; private var _eventDispatcher:IEventDispatcher; - + private const _eventStrings:Vector. = new Vector.(); - + private var _rule:CommandFlowRule; - + private var _executionCallback:Function; - + private var _requireAllFrom:Boolean; - + private var _injector:Injector; public function CommandFlowMapping(from:Vector., eventDispatcher:IEventDispatcher, executionCallback:Function, requireAllFrom:Boolean, injector:Injector) @@ -41,7 +41,7 @@ package org.robotlegs.v2.experimental _requireAllFrom = requireAllFrom; _injector = injector; } - + public function after(eventString:String):ICommandFlowConfig { _eventStrings.push(eventString); @@ -62,17 +62,17 @@ package org.robotlegs.v2.experimental _rule = new CommandFlowRequireAnyRule(_eventStrings, _injector); return _rule; } - + internal function get from():Vector. { return _from; - } - + } + internal function get requireAllFrom():Boolean { return _requireAllFrom; } - + internal function activate():void { for each (var eventString:String in _eventStrings) @@ -80,15 +80,15 @@ package org.robotlegs.v2.experimental _eventDispatcher.addEventListener(eventString, supplyEventToRule); } } - + internal function deactivate():void { for each (var eventString:String in _eventStrings) { _eventDispatcher.removeEventListener(eventString, supplyEventToRule); - } + } } - + private function supplyEventToRule(event:Event):void { if(_rule.applyEvent(event)) @@ -97,7 +97,7 @@ package org.robotlegs.v2.experimental _executionCallback(_rule); } } - + private function pushValuesToStringVector(values:Array, vector:Vector.):void { if (values.length == 1 @@ -116,7 +116,7 @@ package org.robotlegs.v2.experimental } } } - + private function get applyAtStart():Boolean { return ((_from.length == 1) && (_from[0] == CommandFlowStart)); diff --git a/src/org/robotlegs/v2/experimental/CommandFlowRequireAllRule.as b/src/robotlegs/bender/experimental/CommandFlowRequireAllRule.as similarity index 94% rename from src/org/robotlegs/v2/experimental/CommandFlowRequireAllRule.as rename to src/robotlegs/bender/experimental/CommandFlowRequireAllRule.as index a5e834ed..6019259d 100644 --- a/src/org/robotlegs/v2/experimental/CommandFlowRequireAllRule.as +++ b/src/robotlegs/bender/experimental/CommandFlowRequireAllRule.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental +package robotlegs.bender.experimental { import flash.events.Event; import flash.utils.Dictionary; @@ -14,15 +14,15 @@ package org.robotlegs.v2.experimental public class CommandFlowRequireAllRule extends CommandFlowRule { private const _requiredAndReceivedEvents:Dictionary = new Dictionary(); - + private static const EVENT_NOT_RECEIVED:String = "eventNotReceived"; - + public function CommandFlowRequireAllRule(eventStrings:Vector., injector:Injector) { populateRequiredEvents(eventStrings); super(injector); } - + override public function applyEvent(event:Event):Boolean { if(_requiredAndReceivedEvents[event.type]) @@ -32,19 +32,19 @@ package org.robotlegs.v2.experimental } return false; } - + override public function get receivedEvents():Vector. { const lastEventsReceived:Vector. = new []; - + for each (var event:Event in _requiredAndReceivedEvents) { lastEventsReceived.push(event); } - + return lastEventsReceived; } - + private function populateRequiredEvents(eventStrings:Vector.):void { for each (var eventType:String in eventStrings) @@ -52,7 +52,7 @@ package org.robotlegs.v2.experimental _requiredAndReceivedEvents[eventType] = EVENT_NOT_RECEIVED; } } - + private function checkAllEventsReceived():Boolean { for (var p:String in _requiredAndReceivedEvents) diff --git a/src/org/robotlegs/v2/experimental/CommandFlowRequireAnyRule.as b/src/robotlegs/bender/experimental/CommandFlowRequireAnyRule.as similarity index 91% rename from src/org/robotlegs/v2/experimental/CommandFlowRequireAnyRule.as rename to src/robotlegs/bender/experimental/CommandFlowRequireAnyRule.as index a8278ccb..5d79fcc0 100644 --- a/src/org/robotlegs/v2/experimental/CommandFlowRequireAnyRule.as +++ b/src/robotlegs/bender/experimental/CommandFlowRequireAnyRule.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental +package robotlegs.bender.experimental { import flash.events.Event; import org.swiftsuspenders.Injector; @@ -13,13 +13,13 @@ package org.robotlegs.v2.experimental public class CommandFlowRequireAnyRule extends CommandFlowRule { private var _requiredEvents:Vector.; - + public function CommandFlowRequireAnyRule(eventStrings:Vector., injector:Injector) { _requiredEvents = eventStrings; super(injector); } - + override public function applyEvent(event:Event):Boolean { if(_requiredEvents.indexOf(event.type) > -1) @@ -29,7 +29,7 @@ package org.robotlegs.v2.experimental } return false; } - + } } \ No newline at end of file diff --git a/src/org/robotlegs/v2/experimental/CommandFlowRequireOnlyRule.as b/src/robotlegs/bender/experimental/CommandFlowRequireOnlyRule.as similarity index 91% rename from src/org/robotlegs/v2/experimental/CommandFlowRequireOnlyRule.as rename to src/robotlegs/bender/experimental/CommandFlowRequireOnlyRule.as index 4b94ef4c..8e1ccd51 100644 --- a/src/org/robotlegs/v2/experimental/CommandFlowRequireOnlyRule.as +++ b/src/robotlegs/bender/experimental/CommandFlowRequireOnlyRule.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental +package robotlegs.bender.experimental { import flash.events.Event; import org.swiftsuspenders.Injector; @@ -13,13 +13,13 @@ package org.robotlegs.v2.experimental public class CommandFlowRequireOnlyRule extends CommandFlowRule { private var _requiredEvent:String; - + public function CommandFlowRequireOnlyRule(eventString:String, injector:Injector) { _requiredEvent = eventString; super(injector); } - + override public function applyEvent(event:Event):Boolean { if(_requiredEvent == event.type) @@ -29,7 +29,7 @@ package org.robotlegs.v2.experimental } return false; } - + } } \ No newline at end of file diff --git a/src/org/robotlegs/v2/experimental/CommandFlowRule.as b/src/robotlegs/bender/experimental/CommandFlowRule.as similarity index 77% rename from src/org/robotlegs/v2/experimental/CommandFlowRule.as rename to src/robotlegs/bender/experimental/CommandFlowRule.as index 337b352b..4a0808b3 100644 --- a/src/org/robotlegs/v2/experimental/CommandFlowRule.as +++ b/src/robotlegs/bender/experimental/CommandFlowRule.as @@ -1,28 +1,28 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental +package robotlegs.bender.experimental { - import org.robotlegs.v2.experimental.ICommandFlowRule; - import org.robotlegs.v2.experimental.ICommandFlowConfig; + import robotlegs.bender.experimental.ICommandFlowRule; + import robotlegs.bender.experimental.ICommandFlowConfig; import flash.events.Event; - import org.robotlegs.v2.core.utilities.pushValuesToClassVector; - import org.robotlegs.v2.extensions.guards.impl.GuardGroup; - import org.robotlegs.v2.extensions.hooks.impl.HookGroup; - import org.robotlegs.v2.extensions.guards.api.IGuardGroup; - import org.robotlegs.v2.extensions.hooks.api.IHookGroup; + import robotlegs.bender.core.utilities.pushValuesToClassVector; + import robotlegs.bender.extensions.guards.impl.GuardGroup; + import robotlegs.bender.extensions.hooks.impl.HookGroup; + import robotlegs.bender.extensions.guards.api.IGuardGroup; + import robotlegs.bender.extensions.hooks.api.IHookGroup; import org.swiftsuspenders.Injector; public class CommandFlowRule implements ICommandFlowRule, ICommandFlowConfig, ICommandExecutionConfig { protected const _commandClasses:Vector. = new Vector.(); - + protected const _receivedEvents:Vector. = new Vector.(); - + private var _guards:IGuardGroup; private var _hooks:IHookGroup; @@ -32,7 +32,7 @@ package org.robotlegs.v2.experimental _guards = new GuardGroup(injector); _hooks = new HookGroup(injector); } - + public function get guards():IGuardGroup { return _guards; @@ -42,7 +42,7 @@ package org.robotlegs.v2.experimental { return _hooks; } - + public function applyEvent(event:Event):Boolean { return false; @@ -52,12 +52,12 @@ package org.robotlegs.v2.experimental { return _commandClasses; } - + public function get receivedEvents():Vector. { return _receivedEvents; } - + public function execute(commandClass:Class):ICommandFlowConfig { _commandClasses.push(commandClass); @@ -69,7 +69,7 @@ package org.robotlegs.v2.experimental pushValuesToClassVector(commandClassesList, _commandClasses); return this; } - + public function withGuards():ICommandExecutionConfig { return this; diff --git a/src/org/robotlegs/v2/experimental/CommandFlowStart.as b/src/robotlegs/bender/experimental/CommandFlowStart.as similarity index 85% rename from src/org/robotlegs/v2/experimental/CommandFlowStart.as rename to src/robotlegs/bender/experimental/CommandFlowStart.as index c3dd0d0f..5df64d6c 100644 --- a/src/org/robotlegs/v2/experimental/CommandFlowStart.as +++ b/src/robotlegs/bender/experimental/CommandFlowStart.as @@ -1,21 +1,21 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental +package robotlegs.bender.experimental { public class CommandFlowStart { - + public function CommandFlowStart() { super(); } - + } } \ No newline at end of file diff --git a/src/org/robotlegs/v2/experimental/ICommandExecutionConfig.as b/src/robotlegs/bender/experimental/ICommandExecutionConfig.as similarity index 86% rename from src/org/robotlegs/v2/experimental/ICommandExecutionConfig.as rename to src/robotlegs/bender/experimental/ICommandExecutionConfig.as index ef62b950..228a5f13 100644 --- a/src/org/robotlegs/v2/experimental/ICommandExecutionConfig.as +++ b/src/robotlegs/bender/experimental/ICommandExecutionConfig.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental +package robotlegs.bender.experimental { public interface ICommandExecutionConfig { function withGuards():ICommandExecutionConfig; - + function withHooks():ICommandExecutionConfig; } } \ No newline at end of file diff --git a/src/org/robotlegs/v2/experimental/ICommandFlowConfig.as b/src/robotlegs/bender/experimental/ICommandFlowConfig.as similarity index 86% rename from src/org/robotlegs/v2/experimental/ICommandFlowConfig.as rename to src/robotlegs/bender/experimental/ICommandFlowConfig.as index 5d118131..f13b8af4 100644 --- a/src/org/robotlegs/v2/experimental/ICommandFlowConfig.as +++ b/src/robotlegs/bender/experimental/ICommandFlowConfig.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental -{ +package robotlegs.bender.experimental +{ public interface ICommandFlowConfig { function execute(commandClass:Class):ICommandFlowConfig; - + function executeAll(...commandClassesList):ICommandFlowConfig; } } \ No newline at end of file diff --git a/src/org/robotlegs/v2/experimental/ICommandFlowMapping.as b/src/robotlegs/bender/experimental/ICommandFlowMapping.as similarity index 87% rename from src/org/robotlegs/v2/experimental/ICommandFlowMapping.as rename to src/robotlegs/bender/experimental/ICommandFlowMapping.as index 1dcd9ccf..5177425d 100644 --- a/src/org/robotlegs/v2/experimental/ICommandFlowMapping.as +++ b/src/robotlegs/bender/experimental/ICommandFlowMapping.as @@ -1,22 +1,22 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental +package robotlegs.bender.experimental { public interface ICommandFlowMapping { - + function after(eventString:String):ICommandFlowConfig; - + function afterAll(...eventStrings):ICommandFlowConfig; - + function afterAny(...eventStrings):ICommandFlowConfig; - + } } diff --git a/src/org/robotlegs/v2/experimental/ICommandFlowRule.as b/src/robotlegs/bender/experimental/ICommandFlowRule.as similarity index 86% rename from src/org/robotlegs/v2/experimental/ICommandFlowRule.as rename to src/robotlegs/bender/experimental/ICommandFlowRule.as index 859a90a9..a379a35b 100644 --- a/src/org/robotlegs/v2/experimental/ICommandFlowRule.as +++ b/src/robotlegs/bender/experimental/ICommandFlowRule.as @@ -1,20 +1,20 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental +package robotlegs.bender.experimental { import flash.events.Event; public interface ICommandFlowRule - { + { function applyEvent(event:Event):Boolean; - + function get commandClasses():Vector.; - + function get receivedEvents():Vector.; } } \ No newline at end of file diff --git a/src/org/robotlegs/v2/extensions/autoDestroy/AutoDestroyExtension.as b/src/robotlegs/bender/extensions/autoDestroy/AutoDestroyExtension.as similarity index 88% rename from src/org/robotlegs/v2/extensions/autoDestroy/AutoDestroyExtension.as rename to src/robotlegs/bender/extensions/autoDestroy/AutoDestroyExtension.as index 9f7a9101..3abba617 100644 --- a/src/org/robotlegs/v2/extensions/autoDestroy/AutoDestroyExtension.as +++ b/src/robotlegs/bender/extensions/autoDestroy/AutoDestroyExtension.as @@ -1,17 +1,17 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.autoDestroy +package robotlegs.bender.extensions.autoDestroy { import flash.display.DisplayObjectContainer; import flash.events.Event; - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextExtension; - import org.robotlegs.v2.core.api.IContextLogger; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextExtension; + import robotlegs.bender.core.api.IContextLogger; public class AutoDestroyExtension implements IContextExtension { diff --git a/src/org/robotlegs/v2/extensions/commandMap/CommandMapExtension.as b/src/robotlegs/bender/extensions/commandMap/CommandMapExtension.as similarity index 71% rename from src/org/robotlegs/v2/extensions/commandMap/CommandMapExtension.as rename to src/robotlegs/bender/extensions/commandMap/CommandMapExtension.as index 2b617cd6..898f7abb 100644 --- a/src/org/robotlegs/v2/extensions/commandMap/CommandMapExtension.as +++ b/src/robotlegs/bender/extensions/commandMap/CommandMapExtension.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap +package robotlegs.bender.extensions.commandMap { - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextExtension; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMap; - import org.robotlegs.v2.extensions.commandMap.impl.CommandMap; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextExtension; + import robotlegs.bender.extensions.commandMap.api.ICommandMap; + import robotlegs.bender.extensions.commandMap.impl.CommandMap; public class CommandMapExtension implements IContextExtension { diff --git a/src/org/robotlegs/v2/extensions/commandMap/api/ICommandMap.as b/src/robotlegs/bender/extensions/commandMap/api/ICommandMap.as similarity index 86% rename from src/org/robotlegs/v2/extensions/commandMap/api/ICommandMap.as rename to src/robotlegs/bender/extensions/commandMap/api/ICommandMap.as index 26d5d10b..02200d3a 100644 --- a/src/org/robotlegs/v2/extensions/commandMap/api/ICommandMap.as +++ b/src/robotlegs/bender/extensions/commandMap/api/ICommandMap.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.api +package robotlegs.bender.extensions.commandMap.api { public interface ICommandMap diff --git a/src/org/robotlegs/v2/extensions/commandMap/api/ICommandMapper.as b/src/robotlegs/bender/extensions/commandMap/api/ICommandMapper.as similarity index 83% rename from src/org/robotlegs/v2/extensions/commandMap/api/ICommandMapper.as rename to src/robotlegs/bender/extensions/commandMap/api/ICommandMapper.as index 34716ccd..b93e7dbb 100644 --- a/src/org/robotlegs/v2/extensions/commandMap/api/ICommandMapper.as +++ b/src/robotlegs/bender/extensions/commandMap/api/ICommandMapper.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.api +package robotlegs.bender.extensions.commandMap.api { public interface ICommandMapper diff --git a/src/org/robotlegs/v2/extensions/commandMap/api/ICommandMapping.as b/src/robotlegs/bender/extensions/commandMap/api/ICommandMapping.as similarity index 75% rename from src/org/robotlegs/v2/extensions/commandMap/api/ICommandMapping.as rename to src/robotlegs/bender/extensions/commandMap/api/ICommandMapping.as index 321bc036..02e1957e 100644 --- a/src/org/robotlegs/v2/extensions/commandMap/api/ICommandMapping.as +++ b/src/robotlegs/bender/extensions/commandMap/api/ICommandMapping.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.api +package robotlegs.bender.extensions.commandMap.api { - import org.robotlegs.v2.extensions.guards.api.IGuardGroup; - import org.robotlegs.v2.extensions.hooks.api.IHookGroup; + import robotlegs.bender.extensions.guards.api.IGuardGroup; + import robotlegs.bender.extensions.hooks.api.IHookGroup; public interface ICommandMapping { diff --git a/src/org/robotlegs/v2/extensions/commandMap/api/ICommandMappingFinder.as b/src/robotlegs/bender/extensions/commandMap/api/ICommandMappingFinder.as similarity index 84% rename from src/org/robotlegs/v2/extensions/commandMap/api/ICommandMappingFinder.as rename to src/robotlegs/bender/extensions/commandMap/api/ICommandMappingFinder.as index c3a1245d..0c706aef 100644 --- a/src/org/robotlegs/v2/extensions/commandMap/api/ICommandMappingFinder.as +++ b/src/robotlegs/bender/extensions/commandMap/api/ICommandMappingFinder.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.api +package robotlegs.bender.extensions.commandMap.api { public interface ICommandMappingFinder diff --git a/src/org/robotlegs/v2/extensions/commandMap/api/ICommandTrigger.as b/src/robotlegs/bender/extensions/commandMap/api/ICommandTrigger.as similarity index 86% rename from src/org/robotlegs/v2/extensions/commandMap/api/ICommandTrigger.as rename to src/robotlegs/bender/extensions/commandMap/api/ICommandTrigger.as index 8b5973a7..f6b3d7d8 100644 --- a/src/org/robotlegs/v2/extensions/commandMap/api/ICommandTrigger.as +++ b/src/robotlegs/bender/extensions/commandMap/api/ICommandTrigger.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.api +package robotlegs.bender.extensions.commandMap.api { import org.swiftsuspenders.Injector; diff --git a/src/org/robotlegs/v2/extensions/commandMap/api/ICommandUnmapper.as b/src/robotlegs/bender/extensions/commandMap/api/ICommandUnmapper.as similarity index 83% rename from src/org/robotlegs/v2/extensions/commandMap/api/ICommandUnmapper.as rename to src/robotlegs/bender/extensions/commandMap/api/ICommandUnmapper.as index f8f455e7..9a4c3363 100644 --- a/src/org/robotlegs/v2/extensions/commandMap/api/ICommandUnmapper.as +++ b/src/robotlegs/bender/extensions/commandMap/api/ICommandUnmapper.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.api +package robotlegs.bender.extensions.commandMap.api { public interface ICommandUnmapper diff --git a/src/org/robotlegs/v2/extensions/commandMap/impl/CommandMap.as b/src/robotlegs/bender/extensions/commandMap/impl/CommandMap.as similarity index 77% rename from src/org/robotlegs/v2/extensions/commandMap/impl/CommandMap.as rename to src/robotlegs/bender/extensions/commandMap/impl/CommandMap.as index e66cec5d..1d2d10c8 100644 --- a/src/org/robotlegs/v2/extensions/commandMap/impl/CommandMap.as +++ b/src/robotlegs/bender/extensions/commandMap/impl/CommandMap.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.impl +package robotlegs.bender.extensions.commandMap.impl { import flash.utils.Dictionary; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMap; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMapper; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMappingFinder; - import org.robotlegs.v2.extensions.commandMap.api.ICommandTrigger; - import org.robotlegs.v2.extensions.commandMap.api.ICommandUnmapper; + import robotlegs.bender.extensions.commandMap.api.ICommandMap; + import robotlegs.bender.extensions.commandMap.api.ICommandMapper; + import robotlegs.bender.extensions.commandMap.api.ICommandMappingFinder; + import robotlegs.bender.extensions.commandMap.api.ICommandTrigger; + import robotlegs.bender.extensions.commandMap.api.ICommandUnmapper; public class CommandMap implements ICommandMap { diff --git a/src/org/robotlegs/v2/extensions/commandMap/impl/CommandMapper.as b/src/robotlegs/bender/extensions/commandMap/impl/CommandMapper.as similarity index 85% rename from src/org/robotlegs/v2/extensions/commandMap/impl/CommandMapper.as rename to src/robotlegs/bender/extensions/commandMap/impl/CommandMapper.as index 128d3018..29536d2a 100644 --- a/src/org/robotlegs/v2/extensions/commandMap/impl/CommandMapper.as +++ b/src/robotlegs/bender/extensions/commandMap/impl/CommandMapper.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.impl +package robotlegs.bender.extensions.commandMap.impl { import flash.utils.Dictionary; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMapper; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMapping; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMappingFinder; - import org.robotlegs.v2.extensions.commandMap.api.ICommandTrigger; - import org.robotlegs.v2.extensions.commandMap.api.ICommandUnmapper; + import robotlegs.bender.extensions.commandMap.api.ICommandMapper; + import robotlegs.bender.extensions.commandMap.api.ICommandMapping; + import robotlegs.bender.extensions.commandMap.api.ICommandMappingFinder; + import robotlegs.bender.extensions.commandMap.api.ICommandTrigger; + import robotlegs.bender.extensions.commandMap.api.ICommandUnmapper; public class CommandMapper implements ICommandMapper, ICommandUnmapper, ICommandMappingFinder { diff --git a/src/org/robotlegs/v2/extensions/commandMap/impl/CommandMapping.as b/src/robotlegs/bender/extensions/commandMap/impl/CommandMapping.as similarity index 83% rename from src/org/robotlegs/v2/extensions/commandMap/impl/CommandMapping.as rename to src/robotlegs/bender/extensions/commandMap/impl/CommandMapping.as index 4345bf45..bc5a58bd 100644 --- a/src/org/robotlegs/v2/extensions/commandMap/impl/CommandMapping.as +++ b/src/robotlegs/bender/extensions/commandMap/impl/CommandMapping.as @@ -1,17 +1,17 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.impl +package robotlegs.bender.extensions.commandMap.impl { - import org.robotlegs.v2.extensions.commandMap.api.ICommandMapping; - import org.robotlegs.v2.extensions.guards.api.IGuardGroup; - import org.robotlegs.v2.extensions.guards.impl.GuardGroup; - import org.robotlegs.v2.extensions.hooks.api.IHookGroup; - import org.robotlegs.v2.extensions.hooks.impl.HookGroup; + import robotlegs.bender.extensions.commandMap.api.ICommandMapping; + import robotlegs.bender.extensions.guards.api.IGuardGroup; + import robotlegs.bender.extensions.guards.impl.GuardGroup; + import robotlegs.bender.extensions.hooks.api.IHookGroup; + import robotlegs.bender.extensions.hooks.impl.HookGroup; import org.swiftsuspenders.Injector; public class CommandMapping implements ICommandMapping diff --git a/src/org/robotlegs/v2/extensions/commandMap/impl/NullV1CommandMap.as b/src/robotlegs/bender/extensions/commandMap/impl/NullV1CommandMap.as similarity index 95% rename from src/org/robotlegs/v2/extensions/commandMap/impl/NullV1CommandMap.as rename to src/robotlegs/bender/extensions/commandMap/impl/NullV1CommandMap.as index d962cbc9..7aa84024 100644 --- a/src/org/robotlegs/v2/extensions/commandMap/impl/NullV1CommandMap.as +++ b/src/robotlegs/bender/extensions/commandMap/impl/NullV1CommandMap.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.impl +package robotlegs.bender.extensions.commandMap.impl { import org.robotlegs.core.ICommandMap; @@ -13,7 +13,7 @@ package org.robotlegs.v2.extensions.commandMap.impl public class NullV1CommandMap implements ICommandMap { protected static const UNSUPPORTED_V1_FEATURE:String = "While version 1 Robotlegs Commands are supported in the version 2 CommandMap, the version 1 ICommandMap injected in to them is a null implementation and cannot be used. If you need to use a mediator map in your mediator, inject the version 2 ICommandMap."; - + public function detain(command:Object):void { throwNullImplementationError(); @@ -49,7 +49,7 @@ package org.robotlegs.v2.extensions.commandMap.impl throwNullImplementationError(); return false; } - + protected function throwNullImplementationError():void { throw new Error(UNSUPPORTED_V1_FEATURE); diff --git a/src/org/robotlegs/v2/extensions/eventCommandMap/EventCommandMapExtension.as b/src/robotlegs/bender/extensions/eventCommandMap/EventCommandMapExtension.as similarity index 72% rename from src/org/robotlegs/v2/extensions/eventCommandMap/EventCommandMapExtension.as rename to src/robotlegs/bender/extensions/eventCommandMap/EventCommandMapExtension.as index dc175884..e880fddd 100644 --- a/src/org/robotlegs/v2/extensions/eventCommandMap/EventCommandMapExtension.as +++ b/src/robotlegs/bender/extensions/eventCommandMap/EventCommandMapExtension.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventCommandMap +package robotlegs.bender.extensions.eventCommandMap { - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextExtension; - import org.robotlegs.v2.extensions.eventCommandMap.api.IEventCommandMap; - import org.robotlegs.v2.extensions.eventCommandMap.impl.EventCommandMap; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextExtension; + import robotlegs.bender.extensions.eventCommandMap.api.IEventCommandMap; + import robotlegs.bender.extensions.eventCommandMap.impl.EventCommandMap; public class EventCommandMapExtension implements IContextExtension { diff --git a/src/org/robotlegs/v2/extensions/eventCommandMap/api/IEventCommandMap.as b/src/robotlegs/bender/extensions/eventCommandMap/api/IEventCommandMap.as similarity index 70% rename from src/org/robotlegs/v2/extensions/eventCommandMap/api/IEventCommandMap.as rename to src/robotlegs/bender/extensions/eventCommandMap/api/IEventCommandMap.as index 286b649c..ac8a7a49 100644 --- a/src/org/robotlegs/v2/extensions/eventCommandMap/api/IEventCommandMap.as +++ b/src/robotlegs/bender/extensions/eventCommandMap/api/IEventCommandMap.as @@ -1,15 +1,15 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventCommandMap.api +package robotlegs.bender.extensions.eventCommandMap.api { - import org.robotlegs.v2.extensions.commandMap.api.ICommandMapper; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMappingFinder; - import org.robotlegs.v2.extensions.commandMap.api.ICommandUnmapper; + import robotlegs.bender.extensions.commandMap.api.ICommandMapper; + import robotlegs.bender.extensions.commandMap.api.ICommandMappingFinder; + import robotlegs.bender.extensions.commandMap.api.ICommandUnmapper; public interface IEventCommandMap { diff --git a/src/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandMap.as b/src/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandMap.as similarity index 85% rename from src/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandMap.as rename to src/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandMap.as index 44d0b204..2c9fc44c 100644 --- a/src/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandMap.as +++ b/src/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandMap.as @@ -1,20 +1,20 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventCommandMap.impl +package robotlegs.bender.extensions.eventCommandMap.impl { import flash.events.IEventDispatcher; import flash.utils.Dictionary; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMap; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMapper; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMappingFinder; - import org.robotlegs.v2.extensions.commandMap.api.ICommandTrigger; - import org.robotlegs.v2.extensions.commandMap.api.ICommandUnmapper; - import org.robotlegs.v2.extensions.eventCommandMap.api.IEventCommandMap; + import robotlegs.bender.extensions.commandMap.api.ICommandMap; + import robotlegs.bender.extensions.commandMap.api.ICommandMapper; + import robotlegs.bender.extensions.commandMap.api.ICommandMappingFinder; + import robotlegs.bender.extensions.commandMap.api.ICommandTrigger; + import robotlegs.bender.extensions.commandMap.api.ICommandUnmapper; + import robotlegs.bender.extensions.eventCommandMap.api.IEventCommandMap; import org.swiftsuspenders.Injector; public class EventCommandMap implements IEventCommandMap diff --git a/src/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandTrigger.as b/src/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandTrigger.as similarity index 95% rename from src/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandTrigger.as rename to src/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandTrigger.as index 16c2137b..08596dc8 100644 --- a/src/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandTrigger.as +++ b/src/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandTrigger.as @@ -1,17 +1,17 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventCommandMap.impl +package robotlegs.bender.extensions.eventCommandMap.impl { import flash.events.Event; import flash.events.IEventDispatcher; import flash.utils.describeType; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMapping; - import org.robotlegs.v2.extensions.commandMap.api.ICommandTrigger; + import robotlegs.bender.extensions.commandMap.api.ICommandMapping; + import robotlegs.bender.extensions.commandMap.api.ICommandTrigger; import org.swiftsuspenders.Injector; public class EventCommandTrigger implements ICommandTrigger diff --git a/src/org/robotlegs/v2/extensions/eventMap/api/IEventMap.as b/src/robotlegs/bender/extensions/eventMap/api/IEventMap.as similarity index 95% rename from src/org/robotlegs/v2/extensions/eventMap/api/IEventMap.as rename to src/robotlegs/bender/extensions/eventMap/api/IEventMap.as index c4eac7a5..49df286a 100644 --- a/src/org/robotlegs/v2/extensions/eventMap/api/IEventMap.as +++ b/src/robotlegs/bender/extensions/eventMap/api/IEventMap.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventMap.api +package robotlegs.bender.extensions.eventMap.api { import flash.events.IEventDispatcher; - + /** * The Robotlegs IEventMap contract */ @@ -27,7 +27,7 @@ package org.robotlegs.v2.extensions.eventMap.api * @param useWeakReference */ function mapListener(dispatcher:IEventDispatcher, type:String, listener:Function, eventClass:Class = null, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = true):void; - + /** * The same as calling removeEventListener directly on the IEventDispatcher, * but updates our local list of listeners. @@ -39,17 +39,17 @@ package org.robotlegs.v2.extensions.eventMap.api * @param useCapture */ function unmapListener(dispatcher:IEventDispatcher, type:String, listener:Function, eventClass:Class = null, useCapture:Boolean = false):void; - + /** * Removes all listeners registered through mapListener */ function unmapListeners():void; - + /** * Suspends all listeners registered through mapListener */ function suspend():void; - + /** * Resumes all listeners registered through mapListener */ diff --git a/src/org/robotlegs/v2/extensions/eventMap/impl/EventMap.as b/src/robotlegs/bender/extensions/eventMap/impl/EventMap.as similarity index 95% rename from src/org/robotlegs/v2/extensions/eventMap/impl/EventMap.as rename to src/robotlegs/bender/extensions/eventMap/impl/EventMap.as index 98df05cf..1b0f2930 100644 --- a/src/org/robotlegs/v2/extensions/eventMap/impl/EventMap.as +++ b/src/robotlegs/bender/extensions/eventMap/impl/EventMap.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventMap.impl +package robotlegs.bender.extensions.eventMap.impl { import flash.events.Event; import flash.events.IEventDispatcher; - import org.robotlegs.v2.extensions.eventMap.api.IEventMap; + import robotlegs.bender.extensions.eventMap.api.IEventMap; import org.robotlegs.base.ContextError; - import org.robotlegs.v2.extensions.eventMap.impl.EventMapConfig; - + import robotlegs.bender.extensions.eventMap.impl.EventMapConfig; + /** * An abstract IEventMap implementation */ @@ -23,26 +23,26 @@ package org.robotlegs.v2.extensions.eventMap.impl * The IEventDispatcher */ protected var _eventDispatcher:IEventDispatcher; - + /** * @private */ protected const _listeners:Vector. = new Vector.(); - + /** * @private */ protected const _suspendedListeners:Vector. = new Vector.(); - + /** * @private */ protected var _suspended:Boolean = false; - + //--------------------------------------------------------------------- // Constructor //--------------------------------------------------------------------- - + /** * Creates a new EventMap object * @@ -52,11 +52,11 @@ package org.robotlegs.v2.extensions.eventMap.impl { _eventDispatcher = eventDispatcher; } - + //--------------------------------------------------------------------- // API //--------------------------------------------------------------------- - + /** * The same as calling addEventListener directly on the IEventDispatcher, * but keeps a list of listeners for easy (usually automatic) removal. @@ -72,11 +72,11 @@ package org.robotlegs.v2.extensions.eventMap.impl public function mapListener(dispatcher:IEventDispatcher, eventString:String, listener:Function, eventClass:Class = null, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = true):void { eventClass ||= Event; - + const currentListeners:Vector. = _suspended ? _suspendedListeners : _listeners; - + var eventConfig:EventMapConfig; - + var i:int = currentListeners.length; while (i--) { @@ -90,9 +90,9 @@ package org.robotlegs.v2.extensions.eventMap.impl return; } } - + var callback:Function; - + if(eventClass != Event) { callback = function(event:Event):void @@ -104,22 +104,22 @@ package org.robotlegs.v2.extensions.eventMap.impl { callback = listener; } - + eventConfig = new EventMapConfig( dispatcher, eventString, listener, eventClass, callback, useCapture ); - + currentListeners.push(eventConfig); - + if(!_suspended) { dispatcher.addEventListener(eventString, callback, useCapture, priority, useWeakReference); } } - + /** * The same as calling removeEventListener directly on the IEventDispatcher, * but updates our local list of listeners. @@ -157,14 +157,14 @@ package org.robotlegs.v2.extensions.eventMap.impl } } } - + /** * Removes all listeners registered through mapListener */ public function unmapListeners():void { const currentListeners:Vector. = _suspended ? _suspendedListeners : _listeners; - + var eventConfig:EventMapConfig; var dispatcher:IEventDispatcher; while (eventConfig = currentListeners.pop()) @@ -176,14 +176,14 @@ package org.robotlegs.v2.extensions.eventMap.impl } } } - + public function suspend():void { if(_suspended) return; - + _suspended = true; - + var eventConfig:EventMapConfig; var dispatcher:IEventDispatcher; while (eventConfig = _listeners.pop()) @@ -193,14 +193,14 @@ package org.robotlegs.v2.extensions.eventMap.impl _suspendedListeners.push(eventConfig); } } - + public function resume():void { if(!_suspended) return; - + _suspended = false; - + var eventConfig:EventMapConfig; var dispatcher:IEventDispatcher; while (eventConfig = _suspendedListeners.pop()) @@ -210,11 +210,11 @@ package org.robotlegs.v2.extensions.eventMap.impl _listeners.push(eventConfig); } } - + //--------------------------------------------------------------------- // Internal //--------------------------------------------------------------------- - + /** * Event Handler * diff --git a/src/org/robotlegs/v2/extensions/eventMap/impl/EventMapConfig.as b/src/robotlegs/bender/extensions/eventMap/impl/EventMapConfig.as similarity index 93% rename from src/org/robotlegs/v2/extensions/eventMap/impl/EventMapConfig.as rename to src/robotlegs/bender/extensions/eventMap/impl/EventMapConfig.as index 48a3b782..73f1ca9a 100644 --- a/src/org/robotlegs/v2/extensions/eventMap/impl/EventMapConfig.as +++ b/src/robotlegs/bender/extensions/eventMap/impl/EventMapConfig.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventMap.impl +package robotlegs.bender.extensions.eventMap.impl { import flash.events.IEventDispatcher; - + public class EventMapConfig { protected var _dispatcher:IEventDispatcher; @@ -37,27 +37,27 @@ package org.robotlegs.v2.extensions.eventMap.impl { return _dispatcher; } - + public function get eventString():String { return _eventString; } - + public function get listener():Function { return _listener; } - + public function get eventClass():Class { return _eventClass; } - + public function get callback():Function { return _callback; } - + public function get useCapture():Boolean { return _useCapture; diff --git a/src/org/robotlegs/v2/extensions/guards/api/IGuard.as b/src/robotlegs/bender/extensions/guards/api/IGuard.as similarity index 84% rename from src/org/robotlegs/v2/extensions/guards/api/IGuard.as rename to src/robotlegs/bender/extensions/guards/api/IGuard.as index 1954a87c..bf57d360 100644 --- a/src/org/robotlegs/v2/extensions/guards/api/IGuard.as +++ b/src/robotlegs/bender/extensions/guards/api/IGuard.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.guards.api +package robotlegs.bender.extensions.guards.api { - + // TODO: move out of extensions and into core public interface IGuard { diff --git a/src/org/robotlegs/v2/extensions/guards/api/IGuardGroup.as b/src/robotlegs/bender/extensions/guards/api/IGuardGroup.as similarity index 86% rename from src/org/robotlegs/v2/extensions/guards/api/IGuardGroup.as rename to src/robotlegs/bender/extensions/guards/api/IGuardGroup.as index a69ea5d4..12600d21 100644 --- a/src/org/robotlegs/v2/extensions/guards/api/IGuardGroup.as +++ b/src/robotlegs/bender/extensions/guards/api/IGuardGroup.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.guards.api +package robotlegs.bender.extensions.guards.api { // TODO: move out of extensions and into core public interface IGuardGroup { function add(... guardClasses):void; - + function remove(... guardClasses):void; function approve():Boolean; diff --git a/src/org/robotlegs/v2/extensions/guards/impl/GuardGroup.as b/src/robotlegs/bender/extensions/guards/impl/GuardGroup.as similarity index 83% rename from src/org/robotlegs/v2/extensions/guards/impl/GuardGroup.as rename to src/robotlegs/bender/extensions/guards/impl/GuardGroup.as index f3b4326a..30732de3 100644 --- a/src/org/robotlegs/v2/extensions/guards/impl/GuardGroup.as +++ b/src/robotlegs/bender/extensions/guards/impl/GuardGroup.as @@ -1,17 +1,17 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.guards.impl +package robotlegs.bender.extensions.guards.impl { import flash.utils.Dictionary; - import org.robotlegs.v2.core.utilities.classHasMethod; - import org.robotlegs.v2.core.utilities.pushValuesToClassVector; - import org.robotlegs.v2.core.utilities.removeValuesFromClassVector; - import org.robotlegs.v2.extensions.guards.api.IGuardGroup; + import robotlegs.bender.core.utilities.classHasMethod; + import robotlegs.bender.core.utilities.pushValuesToClassVector; + import robotlegs.bender.core.utilities.removeValuesFromClassVector; + import robotlegs.bender.extensions.guards.api.IGuardGroup; import org.swiftsuspenders.Injector; // TODO: move out of extensions and into core diff --git a/src/org/robotlegs/v2/extensions/hooks/api/IHook.as b/src/robotlegs/bender/extensions/hooks/api/IHook.as similarity index 84% rename from src/org/robotlegs/v2/extensions/hooks/api/IHook.as rename to src/robotlegs/bender/extensions/hooks/api/IHook.as index ea33b465..408eacfa 100644 --- a/src/org/robotlegs/v2/extensions/hooks/api/IHook.as +++ b/src/robotlegs/bender/extensions/hooks/api/IHook.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.hooks.api +package robotlegs.bender.extensions.hooks.api { // TODO: move out of extensions and into core diff --git a/src/org/robotlegs/v2/extensions/hooks/api/IHookGroup.as b/src/robotlegs/bender/extensions/hooks/api/IHookGroup.as similarity index 86% rename from src/org/robotlegs/v2/extensions/hooks/api/IHookGroup.as rename to src/robotlegs/bender/extensions/hooks/api/IHookGroup.as index 261e5543..ae492b61 100644 --- a/src/org/robotlegs/v2/extensions/hooks/api/IHookGroup.as +++ b/src/robotlegs/bender/extensions/hooks/api/IHookGroup.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.hooks.api +package robotlegs.bender.extensions.hooks.api { // TODO: move out of extensions and into core diff --git a/src/org/robotlegs/v2/extensions/hooks/impl/HookGroup.as b/src/robotlegs/bender/extensions/hooks/impl/HookGroup.as similarity index 82% rename from src/org/robotlegs/v2/extensions/hooks/impl/HookGroup.as rename to src/robotlegs/bender/extensions/hooks/impl/HookGroup.as index 821b16e7..9b3ccdf3 100644 --- a/src/org/robotlegs/v2/extensions/hooks/impl/HookGroup.as +++ b/src/robotlegs/bender/extensions/hooks/impl/HookGroup.as @@ -1,17 +1,17 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.hooks.impl +package robotlegs.bender.extensions.hooks.impl { import flash.utils.Dictionary; - import org.robotlegs.v2.core.utilities.classHasMethod; - import org.robotlegs.v2.core.utilities.pushValuesToClassVector; - import org.robotlegs.v2.core.utilities.removeValuesFromClassVector; - import org.robotlegs.v2.extensions.hooks.api.IHookGroup; + import robotlegs.bender.core.utilities.classHasMethod; + import robotlegs.bender.core.utilities.pushValuesToClassVector; + import robotlegs.bender.core.utilities.removeValuesFromClassVector; + import robotlegs.bender.extensions.hooks.api.IHookGroup; import org.swiftsuspenders.Injector; // TODO: move out of extensions and into core diff --git a/src/org/robotlegs/v2/extensions/logging/InjectorLoggingExtension.as b/src/robotlegs/bender/extensions/logging/InjectorLoggingExtension.as similarity index 91% rename from src/org/robotlegs/v2/extensions/logging/InjectorLoggingExtension.as rename to src/robotlegs/bender/extensions/logging/InjectorLoggingExtension.as index bab8ddb0..d7ba6ded 100644 --- a/src/org/robotlegs/v2/extensions/logging/InjectorLoggingExtension.as +++ b/src/robotlegs/bender/extensions/logging/InjectorLoggingExtension.as @@ -1,15 +1,15 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.logging +package robotlegs.bender.extensions.logging { - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextExtension; - import org.robotlegs.v2.core.api.IContextLogger; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextExtension; + import robotlegs.bender.core.api.IContextLogger; import org.swiftsuspenders.InjectionEvent; import org.swiftsuspenders.Injector; import org.swiftsuspenders.MappingEvent; diff --git a/src/org/robotlegs/v2/extensions/logging/TraceLoggingExtension.as b/src/robotlegs/bender/extensions/logging/TraceLoggingExtension.as similarity index 72% rename from src/org/robotlegs/v2/extensions/logging/TraceLoggingExtension.as rename to src/robotlegs/bender/extensions/logging/TraceLoggingExtension.as index 76d29c9a..805d484e 100644 --- a/src/org/robotlegs/v2/extensions/logging/TraceLoggingExtension.as +++ b/src/robotlegs/bender/extensions/logging/TraceLoggingExtension.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.logging +package robotlegs.bender.extensions.logging { - import org.robotlegs.v2.core.api.ContextLogLevel; - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextExtension; - import org.robotlegs.v2.extensions.logging.impl.TraceLogTarget; + import robotlegs.bender.core.api.ContextLogLevel; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextExtension; + import robotlegs.bender.extensions.logging.impl.TraceLogTarget; import org.swiftsuspenders.Injector; public class TraceLoggingExtension implements IContextExtension diff --git a/src/org/robotlegs/v2/extensions/logging/api/IContextLogFormatter.as b/src/robotlegs/bender/extensions/logging/api/IContextLogFormatter.as similarity index 80% rename from src/org/robotlegs/v2/extensions/logging/api/IContextLogFormatter.as rename to src/robotlegs/bender/extensions/logging/api/IContextLogFormatter.as index 8a5ec394..3ab5f482 100644 --- a/src/org/robotlegs/v2/extensions/logging/api/IContextLogFormatter.as +++ b/src/robotlegs/bender/extensions/logging/api/IContextLogFormatter.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.logging.api +package robotlegs.bender.extensions.logging.api { - import org.robotlegs.v2.core.api.IContext; + import robotlegs.bender.core.api.IContext; public interface IContextLogFormatter { diff --git a/src/org/robotlegs/v2/extensions/logging/impl/TraceLogFormatter.as b/src/robotlegs/bender/extensions/logging/impl/TraceLogFormatter.as similarity index 78% rename from src/org/robotlegs/v2/extensions/logging/impl/TraceLogFormatter.as rename to src/robotlegs/bender/extensions/logging/impl/TraceLogFormatter.as index 9d596795..479cb0c9 100644 --- a/src/org/robotlegs/v2/extensions/logging/impl/TraceLogFormatter.as +++ b/src/robotlegs/bender/extensions/logging/impl/TraceLogFormatter.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.logging.impl +package robotlegs.bender.extensions.logging.impl { import flash.utils.getTimer; - import org.robotlegs.v2.core.api.ContextLogLevel; - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.extensions.logging.api.IContextLogFormatter; + import robotlegs.bender.core.api.ContextLogLevel; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.extensions.logging.api.IContextLogFormatter; public class TraceLogFormatter implements IContextLogFormatter { diff --git a/src/org/robotlegs/v2/extensions/logging/impl/TraceLogTarget.as b/src/robotlegs/bender/extensions/logging/impl/TraceLogTarget.as similarity index 79% rename from src/org/robotlegs/v2/extensions/logging/impl/TraceLogTarget.as rename to src/robotlegs/bender/extensions/logging/impl/TraceLogTarget.as index a646d2a5..206b087f 100644 --- a/src/org/robotlegs/v2/extensions/logging/impl/TraceLogTarget.as +++ b/src/robotlegs/bender/extensions/logging/impl/TraceLogTarget.as @@ -1,15 +1,15 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.logging.impl +package robotlegs.bender.extensions.logging.impl { - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextLogTarget; - import org.robotlegs.v2.extensions.logging.api.IContextLogFormatter; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextLogTarget; + import robotlegs.bender.extensions.logging.api.IContextLogFormatter; public class TraceLogTarget implements IContextLogTarget { diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/MediatorMapExtension.as b/src/robotlegs/bender/extensions/mediatorMap/MediatorMapExtension.as similarity index 71% rename from src/org/robotlegs/v2/extensions/mediatorMap/MediatorMapExtension.as rename to src/robotlegs/bender/extensions/mediatorMap/MediatorMapExtension.as index 50d02b91..2cc03202 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/MediatorMapExtension.as +++ b/src/robotlegs/bender/extensions/mediatorMap/MediatorMapExtension.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap +package robotlegs.bender.extensions.mediatorMap { - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextExtension; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap; - import org.robotlegs.v2.extensions.mediatorMap.impl.MediatorMap; - import org.robotlegs.v2.extensions.viewManager.api.IViewManager; - import org.robotlegs.v2.extensions.viewMap.impl.ViewMap; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextExtension; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; + import robotlegs.bender.extensions.mediatorMap.impl.MediatorMap; + import robotlegs.bender.extensions.viewManager.api.IViewManager; + import robotlegs.bender.extensions.viewMap.impl.ViewMap; public class MediatorMapExtension implements IContextExtension { diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/api/IMediator.as b/src/robotlegs/bender/extensions/mediatorMap/api/IMediator.as similarity index 91% rename from src/org/robotlegs/v2/extensions/mediatorMap/api/IMediator.as rename to src/robotlegs/bender/extensions/mediatorMap/api/IMediator.as index 369cab84..30e7999d 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/api/IMediator.as +++ b/src/robotlegs/bender/extensions/mediatorMap/api/IMediator.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.api +package robotlegs.bender.extensions.mediatorMap.api { public interface IMediator @@ -33,9 +33,9 @@ package org.robotlegs.v2.extensions.mediatorMap.api * @param The view component */ function setViewComponent(viewComponent:Object):void; - + function get destroyed():Boolean; - + function set destroyed(value:Boolean):void; } } diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorConfig.as b/src/robotlegs/bender/extensions/mediatorMap/api/IMediatorConfig.as similarity index 85% rename from src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorConfig.as rename to src/robotlegs/bender/extensions/mediatorMap/api/IMediatorConfig.as index 44c89506..68148ca3 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorConfig.as +++ b/src/robotlegs/bender/extensions/mediatorMap/api/IMediatorConfig.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.api +package robotlegs.bender.extensions.mediatorMap.api { public interface IMediatorConfig { diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorMap.as b/src/robotlegs/bender/extensions/mediatorMap/api/IMediatorMap.as similarity index 87% rename from src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorMap.as rename to src/robotlegs/bender/extensions/mediatorMap/api/IMediatorMap.as index 9b251529..b007b3aa 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorMap.as +++ b/src/robotlegs/bender/extensions/mediatorMap/api/IMediatorMap.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.api +package robotlegs.bender.extensions.mediatorMap.api { import flash.display.DisplayObject; - import org.robotlegs.v2.core.api.ITypeMatcher; + import robotlegs.bender.core.api.ITypeMatcher; public interface IMediatorMap { @@ -22,7 +22,7 @@ package org.robotlegs.v2.extensions.mediatorMap.api function map(viewType:Class):IMediatorMapping; function unmap(viewType:Class):IMediatorUnmapping; - + function unmapMatcher(typeMatcher:ITypeMatcher):IMediatorUnmapping; function loadTrigger(trigger:IMediatorTrigger):void; diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorMapping.as b/src/robotlegs/bender/extensions/mediatorMap/api/IMediatorMapping.as similarity index 69% rename from src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorMapping.as rename to src/robotlegs/bender/extensions/mediatorMap/api/IMediatorMapping.as index 526dd307..3051cfb3 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorMapping.as +++ b/src/robotlegs/bender/extensions/mediatorMap/api/IMediatorMapping.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.api +package robotlegs.bender.extensions.mediatorMap.api { - import org.robotlegs.v2.core.api.ITypeMatcher; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorConfig; + import robotlegs.bender.core.api.ITypeMatcher; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorConfig; public interface IMediatorMapping { diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorStartupStrategy.as b/src/robotlegs/bender/extensions/mediatorMap/api/IMediatorStartupStrategy.as similarity index 85% rename from src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorStartupStrategy.as rename to src/robotlegs/bender/extensions/mediatorMap/api/IMediatorStartupStrategy.as index 447df418..55e09cf7 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorStartupStrategy.as +++ b/src/robotlegs/bender/extensions/mediatorMap/api/IMediatorStartupStrategy.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.api +package robotlegs.bender.extensions.mediatorMap.api { import flash.display.DisplayObject; diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorTrigger.as b/src/robotlegs/bender/extensions/mediatorMap/api/IMediatorTrigger.as similarity index 86% rename from src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorTrigger.as rename to src/robotlegs/bender/extensions/mediatorMap/api/IMediatorTrigger.as index 5e4047d8..58236eb6 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorTrigger.as +++ b/src/robotlegs/bender/extensions/mediatorMap/api/IMediatorTrigger.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.api +package robotlegs.bender.extensions.mediatorMap.api { import flash.display.DisplayObject; diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorUnmapping.as b/src/robotlegs/bender/extensions/mediatorMap/api/IMediatorUnmapping.as similarity index 77% rename from src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorUnmapping.as rename to src/robotlegs/bender/extensions/mediatorMap/api/IMediatorUnmapping.as index d6df77d9..db3146ce 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/api/IMediatorUnmapping.as +++ b/src/robotlegs/bender/extensions/mediatorMap/api/IMediatorUnmapping.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.api +package robotlegs.bender.extensions.mediatorMap.api { - import org.robotlegs.v2.core.api.ITypeMatcher; + import robotlegs.bender.core.api.ITypeMatcher; public interface IMediatorUnmapping { diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/api/IStrategicTrigger.as b/src/robotlegs/bender/extensions/mediatorMap/api/IStrategicTrigger.as similarity index 71% rename from src/org/robotlegs/v2/extensions/mediatorMap/api/IStrategicTrigger.as rename to src/robotlegs/bender/extensions/mediatorMap/api/IStrategicTrigger.as index 0f8392ea..030f00da 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/api/IStrategicTrigger.as +++ b/src/robotlegs/bender/extensions/mediatorMap/api/IStrategicTrigger.as @@ -1,17 +1,17 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.api +package robotlegs.bender.extensions.mediatorMap.api { - import org.robotlegs.v2.core.api.ITypeMatcher; + import robotlegs.bender.core.api.ITypeMatcher; - public interface IStrategicTrigger + public interface IStrategicTrigger { - + function addStartupStrategy(strategy:Class, matcher:ITypeMatcher):void } diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/bundles/RL1AndRL2MediatorsMediatorMapBundle.as b/src/robotlegs/bender/extensions/mediatorMap/bundles/RL1AndRL2MediatorsMediatorMapBundle.as similarity index 60% rename from src/org/robotlegs/v2/extensions/mediatorMap/bundles/RL1AndRL2MediatorsMediatorMapBundle.as rename to src/robotlegs/bender/extensions/mediatorMap/bundles/RL1AndRL2MediatorsMediatorMapBundle.as index 53def1ad..abed9ed2 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/bundles/RL1AndRL2MediatorsMediatorMapBundle.as +++ b/src/robotlegs/bender/extensions/mediatorMap/bundles/RL1AndRL2MediatorsMediatorMapBundle.as @@ -1,19 +1,19 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.bundles +package robotlegs.bender.extensions.mediatorMap.bundles { - import org.robotlegs.v2.bundles.shared.configs.ContextViewListenerConfig; - import org.robotlegs.v2.core.api.IContextBuilder; - import org.robotlegs.v2.core.api.IContextBuilderBundle; - import org.robotlegs.v2.extensions.mediatorMap.MediatorMapExtension; - import org.robotlegs.v2.extensions.viewManager.AutoStageListenerExtension; - import org.robotlegs.v2.extensions.viewManager.ViewManagerExtension; - import org.robotlegs.v2.extensions.mediatorMap.configs.RL1AndRL2MediatorsStrictConfig; + import robotlegs.bender.bundles.shared.configs.ContextViewListenerConfig; + import robotlegs.bender.core.api.IContextBuilder; + import robotlegs.bender.core.api.IContextBuilderBundle; + import robotlegs.bender.extensions.mediatorMap.MediatorMapExtension; + import robotlegs.bender.extensions.viewManager.AutoStageListenerExtension; + import robotlegs.bender.extensions.viewManager.ViewManagerExtension; + import robotlegs.bender.extensions.mediatorMap.configs.RL1AndRL2MediatorsStrictConfig; public class RL1AndRL2MediatorsMediatorMapBundle implements IContextBuilderBundle { diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/bundles/RL1MediatorsMediatorMapBundle.as b/src/robotlegs/bender/extensions/mediatorMap/bundles/RL1MediatorsMediatorMapBundle.as similarity index 60% rename from src/org/robotlegs/v2/extensions/mediatorMap/bundles/RL1MediatorsMediatorMapBundle.as rename to src/robotlegs/bender/extensions/mediatorMap/bundles/RL1MediatorsMediatorMapBundle.as index b1a4a28b..277dec39 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/bundles/RL1MediatorsMediatorMapBundle.as +++ b/src/robotlegs/bender/extensions/mediatorMap/bundles/RL1MediatorsMediatorMapBundle.as @@ -1,19 +1,19 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.bundles +package robotlegs.bender.extensions.mediatorMap.bundles { - import org.robotlegs.v2.bundles.shared.configs.ContextViewListenerConfig; - import org.robotlegs.v2.core.api.IContextBuilder; - import org.robotlegs.v2.core.api.IContextBuilderBundle; - import org.robotlegs.v2.extensions.mediatorMap.configs.RL1MediatorsStrictConfig; - import org.robotlegs.v2.extensions.mediatorMap.MediatorMapExtension; - import org.robotlegs.v2.extensions.viewManager.AutoStageListenerExtension; - import org.robotlegs.v2.extensions.viewManager.ViewManagerExtension; + import robotlegs.bender.bundles.shared.configs.ContextViewListenerConfig; + import robotlegs.bender.core.api.IContextBuilder; + import robotlegs.bender.core.api.IContextBuilderBundle; + import robotlegs.bender.extensions.mediatorMap.configs.RL1MediatorsStrictConfig; + import robotlegs.bender.extensions.mediatorMap.MediatorMapExtension; + import robotlegs.bender.extensions.viewManager.AutoStageListenerExtension; + import robotlegs.bender.extensions.viewManager.ViewManagerExtension; public class RL1MediatorsMediatorMapBundle implements IContextBuilderBundle { diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/bundles/RL2MediatorsMediatorMapBundle.as b/src/robotlegs/bender/extensions/mediatorMap/bundles/RL2MediatorsMediatorMapBundle.as similarity index 60% rename from src/org/robotlegs/v2/extensions/mediatorMap/bundles/RL2MediatorsMediatorMapBundle.as rename to src/robotlegs/bender/extensions/mediatorMap/bundles/RL2MediatorsMediatorMapBundle.as index 5328c028..f3a682f3 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/bundles/RL2MediatorsMediatorMapBundle.as +++ b/src/robotlegs/bender/extensions/mediatorMap/bundles/RL2MediatorsMediatorMapBundle.as @@ -1,19 +1,19 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.bundles +package robotlegs.bender.extensions.mediatorMap.bundles { - import org.robotlegs.v2.bundles.shared.configs.ContextViewListenerConfig; - import org.robotlegs.v2.core.api.IContextBuilder; - import org.robotlegs.v2.core.api.IContextBuilderBundle; - import org.robotlegs.v2.extensions.mediatorMap.configs.RL2MediatorsStrictConfig; - import org.robotlegs.v2.extensions.mediatorMap.MediatorMapExtension; - import org.robotlegs.v2.extensions.viewManager.AutoStageListenerExtension; - import org.robotlegs.v2.extensions.viewManager.ViewManagerExtension; + import robotlegs.bender.bundles.shared.configs.ContextViewListenerConfig; + import robotlegs.bender.core.api.IContextBuilder; + import robotlegs.bender.core.api.IContextBuilderBundle; + import robotlegs.bender.extensions.mediatorMap.configs.RL2MediatorsStrictConfig; + import robotlegs.bender.extensions.mediatorMap.MediatorMapExtension; + import robotlegs.bender.extensions.viewManager.AutoStageListenerExtension; + import robotlegs.bender.extensions.viewManager.ViewManagerExtension; public class RL2MediatorsMediatorMapBundle implements IContextBuilderBundle { diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/configs/DuckTypedMediatorsConfig.as b/src/robotlegs/bender/extensions/mediatorMap/configs/DuckTypedMediatorsConfig.as similarity index 59% rename from src/org/robotlegs/v2/extensions/mediatorMap/configs/DuckTypedMediatorsConfig.as rename to src/robotlegs/bender/extensions/mediatorMap/configs/DuckTypedMediatorsConfig.as index 5c4face8..9a35c72f 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/configs/DuckTypedMediatorsConfig.as +++ b/src/robotlegs/bender/extensions/mediatorMap/configs/DuckTypedMediatorsConfig.as @@ -1,33 +1,33 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.configs +package robotlegs.bender.extensions.mediatorMap.configs { - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextConfig; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTrigger; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextConfig; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTrigger; import org.robotlegs.core.IEventMap; import org.robotlegs.base.EventMap; - import org.robotlegs.v2.extensions.eventMap.api.IEventMap; - import org.robotlegs.v2.extensions.eventMap.impl.EventMap; + import robotlegs.bender.extensions.eventMap.api.IEventMap; + import robotlegs.bender.extensions.eventMap.impl.EventMap; import org.robotlegs.core.IEventMap; import org.robotlegs.base.EventMap; import org.robotlegs.core.IMediatorMap; - import org.robotlegs.v2.extensions.eventMap.api.IEventMap; - import org.robotlegs.v2.extensions.eventMap.impl.EventMap; - import org.robotlegs.v2.extensions.mediatorMap.impl.RL1MediatorMapAdapter; - + import robotlegs.bender.extensions.eventMap.api.IEventMap; + import robotlegs.bender.extensions.eventMap.impl.EventMap; + import robotlegs.bender.extensions.mediatorMap.impl.RL1MediatorMapAdapter; + public class DuckTypedMediatorsConfig implements IContextConfig { protected const IMediatorMapV1:Class = org.robotlegs.core.IMediatorMap; - protected const IMediatorMapV2:Class = org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap; - protected const MediatorMapV2:Class = org.robotlegs.v2.extensions.mediatorMap.impl.MediatorMap; - + protected const IMediatorMapV2:Class = robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; + protected const MediatorMapV2:Class = robotlegs.bender.extensions.mediatorMap.impl.MediatorMap; + protected var _strict:Boolean; public function DuckTypedMediatorsConfig(strict:Boolean = false) @@ -39,11 +39,11 @@ package org.robotlegs.v2.extensions.mediatorMap.configs { context.injector.map(org.robotlegs.core.IEventMap) .toType(org.robotlegs.base.EventMap); - - context.injector.map(org.robotlegs.v2.extensions.eventMap.api.IEventMap) - .toType(org.robotlegs.v2.extensions.eventMap.impl.EventMap); - const mediatorMap:org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap = context.injector.getInstance(IMediatorMapV2); + context.injector.map(robotlegs.bender.extensions.eventMap.api.IEventMap) + .toType(robotlegs.bender.extensions.eventMap.impl.EventMap); + + const mediatorMap:robotlegs.bender.extensions.mediatorMap.api.IMediatorMap = context.injector.getInstance(IMediatorMapV2); context.injector.map(MediatorMapV2) .toValue(mediatorMap); @@ -52,10 +52,10 @@ package org.robotlegs.v2.extensions.mediatorMap.configs .toSingleton(RL1MediatorMapAdapter); const trigger:DuckTypedMediatorTrigger = new DuckTypedMediatorTrigger(_strict); - + addUIComponentStrategiesIfFlex(trigger); - - mediatorMap.loadTrigger(trigger); + + mediatorMap.loadTrigger(trigger); } } } \ No newline at end of file diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/configs/DuckTypedMediatorsStrictConfig.as b/src/robotlegs/bender/extensions/mediatorMap/configs/DuckTypedMediatorsStrictConfig.as similarity index 84% rename from src/org/robotlegs/v2/extensions/mediatorMap/configs/DuckTypedMediatorsStrictConfig.as rename to src/robotlegs/bender/extensions/mediatorMap/configs/DuckTypedMediatorsStrictConfig.as index 029ae374..d4bf5b24 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/configs/DuckTypedMediatorsStrictConfig.as +++ b/src/robotlegs/bender/extensions/mediatorMap/configs/DuckTypedMediatorsStrictConfig.as @@ -1,20 +1,20 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.configs +package robotlegs.bender.extensions.mediatorMap.configs { public class DuckTypedMediatorsStrictConfig extends DuckTypedMediatorsConfig { - + public function DuckTypedMediatorsStrictConfig() { super(true); } - + } } \ No newline at end of file diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/configs/RL1AndRL2MediatorsConfig.as b/src/robotlegs/bender/extensions/mediatorMap/configs/RL1AndRL2MediatorsConfig.as similarity index 60% rename from src/org/robotlegs/v2/extensions/mediatorMap/configs/RL1AndRL2MediatorsConfig.as rename to src/robotlegs/bender/extensions/mediatorMap/configs/RL1AndRL2MediatorsConfig.as index f0f28816..2a8b0b8f 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/configs/RL1AndRL2MediatorsConfig.as +++ b/src/robotlegs/bender/extensions/mediatorMap/configs/RL1AndRL2MediatorsConfig.as @@ -1,32 +1,32 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.configs +package robotlegs.bender.extensions.mediatorMap.configs { - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextConfig; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTrigger; - import org.robotlegs.v2.extensions.mediatorMap.configs.addUIComponentStrategiesIfFlex; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextConfig; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTrigger; + import robotlegs.bender.extensions.mediatorMap.configs.addUIComponentStrategiesIfFlex; import org.robotlegs.core.IEventMap; import org.robotlegs.base.EventMap; import org.robotlegs.core.IMediatorMap; - import org.robotlegs.v2.extensions.eventMap.api.IEventMap; - import org.robotlegs.v2.extensions.eventMap.impl.EventMap; - import org.robotlegs.v2.extensions.mediatorMap.impl.RL1MediatorMapAdapter; - + import robotlegs.bender.extensions.eventMap.api.IEventMap; + import robotlegs.bender.extensions.eventMap.impl.EventMap; + import robotlegs.bender.extensions.mediatorMap.impl.RL1MediatorMapAdapter; + public class RL1AndRL2MediatorsConfig implements IContextConfig { protected var _strict:Boolean; - + protected const IMediatorMapV1:Class = org.robotlegs.core.IMediatorMap; - protected const IMediatorMapV2:Class = org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap; - protected const MediatorMapV2:Class = org.robotlegs.v2.extensions.mediatorMap.impl.MediatorMap; - + protected const IMediatorMapV2:Class = robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; + protected const MediatorMapV2:Class = robotlegs.bender.extensions.mediatorMap.impl.MediatorMap; + public function RL1AndRL2MediatorsConfig(strict:Boolean = false) { _strict = strict; @@ -35,26 +35,26 @@ package org.robotlegs.v2.extensions.mediatorMap.configs public function configure(context:IContext):void { // TODO - not sure these should be done in a config? - + context.injector.map(org.robotlegs.core.IEventMap) .toType(org.robotlegs.base.EventMap); - - context.injector.map(org.robotlegs.v2.extensions.eventMap.api.IEventMap) - .toType(org.robotlegs.v2.extensions.eventMap.impl.EventMap); - const mediatorMap:org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap = context.injector.getInstance(IMediatorMapV2); + context.injector.map(robotlegs.bender.extensions.eventMap.api.IEventMap) + .toType(robotlegs.bender.extensions.eventMap.impl.EventMap); + + const mediatorMap:robotlegs.bender.extensions.mediatorMap.api.IMediatorMap = context.injector.getInstance(IMediatorMapV2); context.injector.map(MediatorMapV2) .toValue(mediatorMap); - + context.injector.map(IMediatorMapV1) .toSingleton(RL1MediatorMapAdapter); const trigger:RL1AndRL2MediatorTrigger = new RL1AndRL2MediatorTrigger(_strict); - + addUIComponentStrategiesIfFlex(trigger); - - mediatorMap.loadTrigger(trigger); + + mediatorMap.loadTrigger(trigger); } } } \ No newline at end of file diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/configs/RL1AndRL2MediatorsStrictConfig.as b/src/robotlegs/bender/extensions/mediatorMap/configs/RL1AndRL2MediatorsStrictConfig.as similarity index 83% rename from src/org/robotlegs/v2/extensions/mediatorMap/configs/RL1AndRL2MediatorsStrictConfig.as rename to src/robotlegs/bender/extensions/mediatorMap/configs/RL1AndRL2MediatorsStrictConfig.as index 11e29551..c33ac0c9 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/configs/RL1AndRL2MediatorsStrictConfig.as +++ b/src/robotlegs/bender/extensions/mediatorMap/configs/RL1AndRL2MediatorsStrictConfig.as @@ -1,20 +1,20 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.configs +package robotlegs.bender.extensions.mediatorMap.configs { - + public class RL1AndRL2MediatorsStrictConfig extends RL1AndRL2MediatorsConfig { - + public function RL1AndRL2MediatorsStrictConfig() { super(true); } - + } } \ No newline at end of file diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/configs/RL1MediatorsConfig.as b/src/robotlegs/bender/extensions/mediatorMap/configs/RL1MediatorsConfig.as similarity index 66% rename from src/org/robotlegs/v2/extensions/mediatorMap/configs/RL1MediatorsConfig.as rename to src/robotlegs/bender/extensions/mediatorMap/configs/RL1MediatorsConfig.as index 548061d9..00d6f697 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/configs/RL1MediatorsConfig.as +++ b/src/robotlegs/bender/extensions/mediatorMap/configs/RL1MediatorsConfig.as @@ -1,26 +1,26 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.configs +package robotlegs.bender.extensions.mediatorMap.configs { - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextConfig; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL1MediatorTrigger; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextConfig; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL1MediatorTrigger; import org.robotlegs.core.IEventMap; import org.robotlegs.base.EventMap; import org.robotlegs.core.IMediatorMap; - import org.robotlegs.v2.extensions.mediatorMap.impl.RL1MediatorMapAdapter; - + import robotlegs.bender.extensions.mediatorMap.impl.RL1MediatorMapAdapter; + public class RL1MediatorsConfig implements IContextConfig { protected const IMediatorMapV1:Class = org.robotlegs.core.IMediatorMap; - protected const IMediatorMapV2:Class = org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap; - protected const MediatorMapV2:Class = org.robotlegs.v2.extensions.mediatorMap.impl.MediatorMap; + protected const IMediatorMapV2:Class = robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; + protected const MediatorMapV2:Class = robotlegs.bender.extensions.mediatorMap.impl.MediatorMap; protected var _strict:Boolean; @@ -32,8 +32,8 @@ package org.robotlegs.v2.extensions.mediatorMap.configs public function configure(context:IContext):void { context.injector.map(IEventMap).toType(EventMap); - const mediatorMap:org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap = context.injector.getInstance(IMediatorMapV2); - + const mediatorMap:robotlegs.bender.extensions.mediatorMap.api.IMediatorMap = context.injector.getInstance(IMediatorMapV2); + const trigger:RL1MediatorTrigger = new RL1MediatorTrigger(_strict); context.injector.map(MediatorMapV2) @@ -41,8 +41,8 @@ package org.robotlegs.v2.extensions.mediatorMap.configs context.injector.map(IMediatorMapV1) .toSingleton(RL1MediatorMapAdapter); - - mediatorMap.loadTrigger(trigger); + + mediatorMap.loadTrigger(trigger); } } } \ No newline at end of file diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/configs/RL1MediatorsStrictConfig.as b/src/robotlegs/bender/extensions/mediatorMap/configs/RL1MediatorsStrictConfig.as similarity index 83% rename from src/org/robotlegs/v2/extensions/mediatorMap/configs/RL1MediatorsStrictConfig.as rename to src/robotlegs/bender/extensions/mediatorMap/configs/RL1MediatorsStrictConfig.as index 3eb35c8e..78b7d16d 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/configs/RL1MediatorsStrictConfig.as +++ b/src/robotlegs/bender/extensions/mediatorMap/configs/RL1MediatorsStrictConfig.as @@ -1,20 +1,20 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.configs +package robotlegs.bender.extensions.mediatorMap.configs { - + public class RL1MediatorsStrictConfig extends RL1MediatorsConfig { - + public function RL1MediatorsStrictConfig() { super(true); } - + } } \ No newline at end of file diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/configs/RL2MediatorsConfig.as b/src/robotlegs/bender/extensions/mediatorMap/configs/RL2MediatorsConfig.as similarity index 64% rename from src/org/robotlegs/v2/extensions/mediatorMap/configs/RL2MediatorsConfig.as rename to src/robotlegs/bender/extensions/mediatorMap/configs/RL2MediatorsConfig.as index 680c9d0f..8165f07e 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/configs/RL2MediatorsConfig.as +++ b/src/robotlegs/bender/extensions/mediatorMap/configs/RL2MediatorsConfig.as @@ -1,23 +1,23 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.configs +package robotlegs.bender.extensions.mediatorMap.configs { - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextConfig; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL2MediatorTrigger; - import org.robotlegs.v2.extensions.eventMap.api.IEventMap; - import org.robotlegs.v2.extensions.eventMap.impl.EventMap; - + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextConfig; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL2MediatorTrigger; + import robotlegs.bender.extensions.eventMap.api.IEventMap; + import robotlegs.bender.extensions.eventMap.impl.EventMap; + public class RL2MediatorsConfig implements IContextConfig { protected var _strict:Boolean; - + public function RL2MediatorsConfig(strict:Boolean = false) { _strict = strict; @@ -26,13 +26,13 @@ package org.robotlegs.v2.extensions.mediatorMap.configs public function configure(context:IContext):void { context.injector.map(IEventMap).toType(EventMap); - + const mediatorMap:IMediatorMap = context.injector.getInstance(IMediatorMap); const trigger:RL2MediatorTrigger = new RL2MediatorTrigger(_strict); - + addUIComponentStrategiesIfFlex(trigger); - - mediatorMap.loadTrigger(trigger); + + mediatorMap.loadTrigger(trigger); } } } \ No newline at end of file diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/configs/RL2MediatorsStrictConfig.as b/src/robotlegs/bender/extensions/mediatorMap/configs/RL2MediatorsStrictConfig.as similarity index 83% rename from src/org/robotlegs/v2/extensions/mediatorMap/configs/RL2MediatorsStrictConfig.as rename to src/robotlegs/bender/extensions/mediatorMap/configs/RL2MediatorsStrictConfig.as index 3135113d..ca94bfa7 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/configs/RL2MediatorsStrictConfig.as +++ b/src/robotlegs/bender/extensions/mediatorMap/configs/RL2MediatorsStrictConfig.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.configs +package robotlegs.bender.extensions.mediatorMap.configs { - + public class RL2MediatorsStrictConfig extends RL2MediatorsConfig { - + public function RL2MediatorsStrictConfig() { super(true); diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/configs/addUIComponentStrategiesIfFlex.as b/src/robotlegs/bender/extensions/mediatorMap/configs/addUIComponentStrategiesIfFlex.as similarity index 65% rename from src/org/robotlegs/v2/extensions/mediatorMap/configs/addUIComponentStrategiesIfFlex.as rename to src/robotlegs/bender/extensions/mediatorMap/configs/addUIComponentStrategiesIfFlex.as index 423352b8..9b2b2560 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/configs/addUIComponentStrategiesIfFlex.as +++ b/src/robotlegs/bender/extensions/mediatorMap/configs/addUIComponentStrategiesIfFlex.as @@ -1,13 +1,13 @@ -package org.robotlegs.v2.extensions.mediatorMap.configs +package robotlegs.bender.extensions.mediatorMap.configs { - import org.robotlegs.v2.extensions.mediatorMap.api.IStrategicTrigger; + import robotlegs.bender.extensions.mediatorMap.api.IStrategicTrigger; import flash.display.DisplayObject; import flash.utils.getDefinitionByName; - import org.robotlegs.v2.core.impl.TypeMatcher; - import org.robotlegs.v2.core.utilities.checkUIComponentAvailable; - import org.robotlegs.v2.extensions.mediatorMap.utilities.strategies.NoWaitStrategy; - import org.robotlegs.v2.extensions.mediatorMap.utilities.strategies.WaitForCreationCompleteStrategy; - + import robotlegs.bender.core.impl.TypeMatcher; + import robotlegs.bender.core.utilities.checkUIComponentAvailable; + import robotlegs.bender.extensions.mediatorMap.utilities.strategies.NoWaitStrategy; + import robotlegs.bender.extensions.mediatorMap.utilities.strategies.WaitForCreationCompleteStrategy; + public function addUIComponentStrategiesIfFlex(trigger:IStrategicTrigger):Boolean { if(checkUIComponentAvailable()) diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/impl/Mediator.as b/src/robotlegs/bender/extensions/mediatorMap/impl/Mediator.as similarity index 91% rename from src/org/robotlegs/v2/extensions/mediatorMap/impl/Mediator.as rename to src/robotlegs/bender/extensions/mediatorMap/impl/Mediator.as index ec3da56f..969fa22a 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/impl/Mediator.as +++ b/src/robotlegs/bender/extensions/mediatorMap/impl/Mediator.as @@ -1,26 +1,26 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl +package robotlegs.bender.extensions.mediatorMap.impl { - import org.robotlegs.v2.extensions.mediatorMap.api.IMediator; + import robotlegs.bender.extensions.mediatorMap.api.IMediator; import flash.events.Event; import flash.events.IEventDispatcher; - import org.robotlegs.v2.extensions.eventMap.api.IEventMap; + import robotlegs.bender.extensions.eventMap.api.IEventMap; public class Mediator implements IMediator { [Inject] public var eventMap:IEventMap; - + protected var _viewComponent:Object; protected var _destroyed:Boolean; protected var _eventDispatcher:IEventDispatcher; - + public function Mediator() { } @@ -32,7 +32,7 @@ package org.robotlegs.v2.extensions.mediatorMap.impl public function destroy():void { } - + /** * @inheritDoc */ @@ -40,7 +40,7 @@ package org.robotlegs.v2.extensions.mediatorMap.impl { return _eventDispatcher; } - + [Inject] /** * @private @@ -66,42 +66,42 @@ package org.robotlegs.v2.extensions.mediatorMap.impl { return _destroyed; } - + public function set destroyed(value:Boolean):void { _destroyed = value; } - + protected function suspendEventMap(e:Event):void { eventMap.suspend(); } - + protected function resumeEventMap(e:Event):void { eventMap.resume(); } - + protected function addViewListener(eventString:String, listener:Function, eventClass:Class):void { eventMap.mapListener(IEventDispatcher(_viewComponent), eventString, listener, eventClass); } - + protected function addContextListener(eventString:String, listener:Function, eventClass:Class):void { eventMap.mapListener(_eventDispatcher, eventString, listener, eventClass); } - + protected function removeViewListener(eventString:String, listener:Function, eventClass:Class):void { eventMap.unmapListener(IEventDispatcher(_viewComponent), eventString, listener, eventClass); } - + protected function removeContextListener(eventString:String, listener:Function, eventClass:Class):void { eventMap.unmapListener(_eventDispatcher, eventString, listener, eventClass); } - + protected function dispatch(e:Event):void { if(eventDispatcher.hasEventListener(e.type)) diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorConfig.as b/src/robotlegs/bender/extensions/mediatorMap/impl/MediatorConfig.as similarity index 72% rename from src/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorConfig.as rename to src/robotlegs/bender/extensions/mediatorMap/impl/MediatorConfig.as index b4e0796d..5cb1aa0d 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorConfig.as +++ b/src/robotlegs/bender/extensions/mediatorMap/impl/MediatorConfig.as @@ -1,19 +1,19 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl +package robotlegs.bender.extensions.mediatorMap.impl { - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorConfig; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMapping; - import org.robotlegs.v2.extensions.guards.api.IGuardGroup; - import org.robotlegs.v2.extensions.hooks.api.IHookGroup; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorConfig; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorMapping; + import robotlegs.bender.extensions.guards.api.IGuardGroup; + import robotlegs.bender.extensions.hooks.api.IHookGroup; import org.swiftsuspenders.Injector; - import org.robotlegs.v2.extensions.guards.impl.GuardGroup; - import org.robotlegs.v2.extensions.hooks.impl.HookGroup; + import robotlegs.bender.extensions.guards.impl.GuardGroup; + import robotlegs.bender.extensions.hooks.impl.HookGroup; public class MediatorConfig implements IMediatorConfig { @@ -23,16 +23,16 @@ package org.robotlegs.v2.extensions.mediatorMap.impl _guards = new GuardGroup(injector); _hooks = new HookGroup(injector); } - + private var _mapping:IMediatorMapping; public function get mapping():IMediatorMapping { return _mapping; } - + private var _guards:IGuardGroup; - + public function get guards():IGuardGroup { return _guards; @@ -44,7 +44,7 @@ package org.robotlegs.v2.extensions.mediatorMap.impl { return _hooks; } - + public function withGuards(... guardClasses):IMediatorConfig { _guards.add.apply(null, guardClasses); diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorMap.as b/src/robotlegs/bender/extensions/mediatorMap/impl/MediatorMap.as similarity index 86% rename from src/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorMap.as rename to src/robotlegs/bender/extensions/mediatorMap/impl/MediatorMap.as index 9c8f4b81..f97ac92f 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorMap.as +++ b/src/robotlegs/bender/extensions/mediatorMap/impl/MediatorMap.as @@ -1,37 +1,37 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl +package robotlegs.bender.extensions.mediatorMap.impl { import flash.display.DisplayObject; import flash.events.Event; import flash.events.EventDispatcher; import flash.utils.Dictionary; - import org.robotlegs.v2.core.api.ITypeFilter; - import org.robotlegs.v2.extensions.viewManager.api.IViewClassInfo; - import org.robotlegs.v2.extensions.viewManager.api.IViewHandler; - import org.robotlegs.v2.extensions.viewManager.api.ViewHandlerEvent; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMapping; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorTrigger; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorUnmapping; + import robotlegs.bender.core.api.ITypeFilter; + import robotlegs.bender.extensions.viewManager.api.IViewClassInfo; + import robotlegs.bender.extensions.viewManager.api.IViewHandler; + import robotlegs.bender.extensions.viewManager.api.ViewHandlerEvent; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorMapping; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorTrigger; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorUnmapping; import org.swiftsuspenders.Injector; import flash.errors.IllegalOperationError; - import org.robotlegs.v2.extensions.viewManager.api.ViewInterests; - import org.robotlegs.v2.core.api.ITypeMatcher; - import org.robotlegs.v2.core.impl.TypeMatcher; - import org.robotlegs.v2.extensions.viewMap.impl.ViewMap; + import robotlegs.bender.extensions.viewManager.api.ViewInterests; + import robotlegs.bender.core.api.ITypeMatcher; + import robotlegs.bender.core.impl.TypeMatcher; + import robotlegs.bender.extensions.viewMap.impl.ViewMap; - [Event(name="configurationChange", type="org.robotlegs.v2.extensions.viewManager.api.ViewHandlerEvent")] + [Event(name="configurationChange", type="robotlegs.bender.extensions.viewManager.api.ViewHandlerEvent")] public class MediatorMap extends EventDispatcher implements IViewHandler, IMediatorMap { [Inject] public var injector:Injector; - + public function get interests():uint { return ViewInterests.MEDIATION; @@ -49,21 +49,21 @@ package org.robotlegs.v2.extensions.mediatorMap.impl private const _viewsInRemovalPhase:Dictionary = new Dictionary(); private var _trigger:IMediatorTrigger; - + private var _viewMap:ViewMap; - + /* public */ public function getMapping(viewTypeOrMatcher:*):IMediatorMapping { return _viewMap.getMapping(viewTypeOrMatcher) as IMediatorMapping; } - + public function hasMapping(viewTypeOrMatcher:*):Boolean { return _viewMap.hasMapping(viewTypeOrMatcher); } - + public function processView(view:DisplayObject, info:IViewClassInfo):uint { if(_viewMap.processView(view, info)) @@ -71,12 +71,12 @@ package org.robotlegs.v2.extensions.mediatorMap.impl return 0; } - + public function releaseView(view:DisplayObject):void { if (!_liveMediatorsByView[view]) return; - + if (!view.parent) { actionRemoval(view); @@ -97,11 +97,11 @@ package org.robotlegs.v2.extensions.mediatorMap.impl { return mapMatcher(new TypeMatcher().allOf(viewType)); } - + public function mapMatcher(typeMatcher:ITypeMatcher):IMediatorMapping { var mapping:IMediatorMapping; - + if(_viewMap.hasMapping(typeMatcher)) { return _viewMap.getMapping(typeMatcher) as IMediatorMapping; @@ -109,15 +109,15 @@ package org.robotlegs.v2.extensions.mediatorMap.impl const typeFilter:ITypeFilter = _viewMap.getOrCreateFilterForMatcher(typeMatcher); mapping = createMapping(typeFilter); - _viewMap.createMapping(typeFilter, mapping); + _viewMap.createMapping(typeFilter, mapping); return mapping; } public function unmap(viewType:Class):IMediatorUnmapping { return unmapMatcher(new TypeMatcher().allOf(viewType)); - } - + } + public function unmapMatcher(typeMatcher:ITypeMatcher):IMediatorUnmapping { return _viewMap.getMapping(typeMatcher) as IMediatorUnmapping; @@ -145,14 +145,14 @@ package org.robotlegs.v2.extensions.mediatorMap.impl public function destroy():void { } - + /* INTERNAL */ - + internal function getMediatorsForView(view:DisplayObject):Array { return _liveMediatorsByView[view]; } - + internal function hasLiveMediator(mediator:Object):Boolean { for each (var mediators:Array in _liveMediatorsByView) @@ -162,12 +162,12 @@ package org.robotlegs.v2.extensions.mediatorMap.impl return true; } } - + return false; } /* PRIVATE */ - + // TODO = check _liveMediatorsByView for this view, exit / error if it would overwrite // TODO - probably refactor to a linked list for iteration private function processMapping(view:DisplayObject, info:IViewClassInfo, filter:ITypeFilter, mapping:MediatorMapping):void @@ -190,7 +190,7 @@ package org.robotlegs.v2.extensions.mediatorMap.impl _viewMap.unmapViewForFilterBinding(filter, info, view); } - + private function onEnterFrameActionShutdown(e:Event):void { e.target.removeEventListener(Event.ENTER_FRAME, onEnterFrameActionShutdown); diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorMapping.as b/src/robotlegs/bender/extensions/mediatorMap/impl/MediatorMapping.as similarity index 78% rename from src/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorMapping.as rename to src/robotlegs/bender/extensions/mediatorMap/impl/MediatorMapping.as index e3ec8f1b..b80c56ae 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorMapping.as +++ b/src/robotlegs/bender/extensions/mediatorMap/impl/MediatorMapping.as @@ -1,20 +1,20 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl +package robotlegs.bender.extensions.mediatorMap.impl { import flash.utils.Dictionary; - import org.robotlegs.v2.core.api.ITypeFilter; - import org.robotlegs.v2.core.api.ITypeMatcher; - import org.robotlegs.v2.core.impl.TypeMatcher; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorConfig; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMapping; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorUnmapping; - import org.robotlegs.v2.extensions.mediatorMap.impl.MediatorConfig; + import robotlegs.bender.core.api.ITypeFilter; + import robotlegs.bender.core.api.ITypeMatcher; + import robotlegs.bender.core.impl.TypeMatcher; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorConfig; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorMapping; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorUnmapping; + import robotlegs.bender.extensions.mediatorMap.impl.MediatorConfig; import org.swiftsuspenders.Injector; public class MediatorMapping implements IMediatorMapping, IMediatorUnmapping @@ -23,9 +23,9 @@ package org.robotlegs.v2.extensions.mediatorMap.impl private var _callbackForDeletion:Function; private var _injector:Injector; - + private var _configsByMediator:Dictionary; - + private var _typeFilter:ITypeFilter; public function get configsByMediator():Dictionary @@ -40,7 +40,7 @@ package org.robotlegs.v2.extensions.mediatorMap.impl _typeFilter = typeFilter; _injector = injector; } - + public function toMediator(mediatorType:Class):IMediatorConfig { if(_configsByMediator[mediatorType]) @@ -51,9 +51,9 @@ package org.robotlegs.v2.extensions.mediatorMap.impl _configsByMediator[mediatorType] = new MediatorConfig(this, _injector); return _configsByMediator[mediatorType]; } - + public function fromMediator(mediatorType:Class):void - { + { if (_configsByMediator[mediatorType]) { delete _configsByMediator[mediatorType]; diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/impl/RL1MediatorMapAdapter.as b/src/robotlegs/bender/extensions/mediatorMap/impl/RL1MediatorMapAdapter.as similarity index 91% rename from src/org/robotlegs/v2/extensions/mediatorMap/impl/RL1MediatorMapAdapter.as rename to src/robotlegs/bender/extensions/mediatorMap/impl/RL1MediatorMapAdapter.as index c64320e6..d000901c 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/impl/RL1MediatorMapAdapter.as +++ b/src/robotlegs/bender/extensions/mediatorMap/impl/RL1MediatorMapAdapter.as @@ -1,51 +1,51 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl +package robotlegs.bender.extensions.mediatorMap.impl { import org.robotlegs.core.IMediatorMap; import flash.display.DisplayObjectContainer; import org.robotlegs.core.IMediator; - import org.robotlegs.v2.extensions.mediatorMap.impl.MediatorMap; + import robotlegs.bender.extensions.mediatorMap.impl.MediatorMap; import flash.display.DisplayObject; - import org.robotlegs.v2.core.impl.TypeMatcher; + import robotlegs.bender.core.impl.TypeMatcher; import flash.utils.getDefinitionByName; - + public class RL1MediatorMapAdapter implements IMediatorMap { [Inject] public var _mediatorMap:MediatorMap; - + private var _contextView:DisplayObjectContainer; - - private const DISABLE_NOT_SUPPORTED_ERROR:String = + + private const DISABLE_NOT_SUPPORTED_ERROR:String = "You cannot disable this MediatorMap by using the enabled property."+ " Instead you need to disable the version 2 mediator map that supports this adapter."; - - private const AUTO_CREATE_AUTO_REMOVE_FALSE_NOT_SUPPORTED_ERROR:String = + + private const AUTO_CREATE_AUTO_REMOVE_FALSE_NOT_SUPPORTED_ERROR:String = "The Robotlegs 1 MediatorMap adapter does not support setting autoCreate or autoRemove to false."; - - private const MANUAL_REGISTRATION_NOT_SUPPORTED_ERROR:String = + + private const MANUAL_REGISTRATION_NOT_SUPPORTED_ERROR:String = "The RL1MediatorMapAdapter doesn't support manually registering a mediator for a view."+ " Instead, map the mediator and use createMediator(viewComponent)"; - - private const MANUAL_REMOVAL_NOT_SUPPORTED_ERROR:String = + + private const MANUAL_REMOVAL_NOT_SUPPORTED_ERROR:String = "The RL1MediatorMapAdapter doesn't support manually removing a mediator."; - - private const AMBIGUOUS_MEDIATOR_ERROR:String = + + private const AMBIGUOUS_MEDIATOR_ERROR:String = "This view has more than one mediator, so the map could not resolve which one you wanted."; - - /* Provides an adapter to allow RL1 Mediators and Commands to have a + + /* Provides an adapter to allow RL1 Mediators and Commands to have a RL1 IMediatorMap injected into them. Some features not supported. */ public function RL1MediatorMapAdapter() { } - + public function get contextView():DisplayObjectContainer { return _contextView; @@ -68,16 +68,16 @@ package org.robotlegs.v2.extensions.mediatorMap.impl throw new ArgumentError(DISABLE_NOT_SUPPORTED_ERROR); } - public function mapView(viewClassOrName:*, mediatorClass:Class, injectViewAs:* = null, + public function mapView(viewClassOrName:*, mediatorClass:Class, injectViewAs:* = null, autoCreate:Boolean = true, autoRemove:Boolean = true):void { if(!(autoCreate && autoRemove)) throw new ArgumentError(AUTO_CREATE_AUTO_REMOVE_FALSE_NOT_SUPPORTED_ERROR); - + const viewClass:Class = turnViewClassOrNameToClass(viewClassOrName); - + const matcher:TypeMatcher = new TypeMatcher().allOf(viewClass); - + if( injectViewAs && (injectViewAs != viewClassOrName)) { if( isArrayOrClassVector(injectViewAs) && (injectViewAs.indexOf(viewClass) > -1) ) @@ -88,7 +88,7 @@ package org.robotlegs.v2.extensions.mediatorMap.impl } _mediatorMap.mapMatcher(matcher).toMediator(mediatorClass); - + mediateContextViewImmediately(viewClass); } @@ -125,16 +125,16 @@ package org.robotlegs.v2.extensions.mediatorMap.impl public function retrieveMediator(viewComponent:Object):IMediator { const mediators:Array = _mediatorMap.getMediatorsForView(viewComponent as DisplayObject) - + if(!mediators) return null; if(mediators.length == 1) return mediators[0] as IMediator; - + if(mediators.length > 1) throw new Error(AMBIGUOUS_MEDIATOR_ERROR); - + return null; } @@ -153,26 +153,26 @@ package org.robotlegs.v2.extensions.mediatorMap.impl { return (_mediatorMap.getMediatorsForView(viewComponent as DisplayObject) != null); } - + private function turnViewClassOrNameToClass(viewClassOrName:*):Class { if(viewClassOrName is Class) return viewClassOrName; - + return getDefinitionByName(viewClassOrName) as Class; } - + private function mediateContextViewImmediately(viewClass:Class):void { if( _contextView && (_contextView is viewClass)) _mediatorMap.processView(_contextView, null); } - + private function isArrayOrClassVector(item:*):Boolean { if(item is Array || item is Vector.) return true; - + return false; } } diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/strategies/NoWaitStrategy.as b/src/robotlegs/bender/extensions/mediatorMap/utilities/strategies/NoWaitStrategy.as similarity index 78% rename from src/org/robotlegs/v2/extensions/mediatorMap/utilities/strategies/NoWaitStrategy.as rename to src/robotlegs/bender/extensions/mediatorMap/utilities/strategies/NoWaitStrategy.as index b6ab6c88..9f19dac5 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/strategies/NoWaitStrategy.as +++ b/src/robotlegs/bender/extensions/mediatorMap/utilities/strategies/NoWaitStrategy.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.strategies +package robotlegs.bender.extensions.mediatorMap.utilities.strategies { import flash.display.DisplayObject; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorStartupStrategy; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorStartupStrategy; public class NoWaitStrategy implements IMediatorStartupStrategy { diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/strategies/WaitForCompleteStrategy.as b/src/robotlegs/bender/extensions/mediatorMap/utilities/strategies/WaitForCompleteStrategy.as similarity index 88% rename from src/org/robotlegs/v2/extensions/mediatorMap/utilities/strategies/WaitForCompleteStrategy.as rename to src/robotlegs/bender/extensions/mediatorMap/utilities/strategies/WaitForCompleteStrategy.as index 9590fe00..f0ab48d9 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/strategies/WaitForCompleteStrategy.as +++ b/src/robotlegs/bender/extensions/mediatorMap/utilities/strategies/WaitForCompleteStrategy.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.strategies +package robotlegs.bender.extensions.mediatorMap.utilities.strategies { import flash.display.DisplayObject; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorStartupStrategy; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorStartupStrategy; import flash.events.Event; import flash.events.EventDispatcher; import flash.utils.Dictionary; diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/strategies/WaitForCreationCompleteStrategy.as b/src/robotlegs/bender/extensions/mediatorMap/utilities/strategies/WaitForCreationCompleteStrategy.as similarity index 81% rename from src/org/robotlegs/v2/extensions/mediatorMap/utilities/strategies/WaitForCreationCompleteStrategy.as rename to src/robotlegs/bender/extensions/mediatorMap/utilities/strategies/WaitForCreationCompleteStrategy.as index 262ee9c0..25398461 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/strategies/WaitForCreationCompleteStrategy.as +++ b/src/robotlegs/bender/extensions/mediatorMap/utilities/strategies/WaitForCreationCompleteStrategy.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.strategies +package robotlegs.bender.extensions.mediatorMap.utilities.strategies { - import org.robotlegs.v2.extensions.mediatorMap.api.IMediator; + import robotlegs.bender.extensions.mediatorMap.api.IMediator; import flash.display.DisplayObject; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorTrigger; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorTrigger; import flash.utils.Dictionary; - import org.robotlegs.v2.core.api.ITypeMatcher; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorStartupStrategy; + import robotlegs.bender.core.api.ITypeMatcher; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorStartupStrategy; import flash.events.Event; import flash.events.EventDispatcher; @@ -20,7 +20,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.strategies { private const _callbacksByView:Dictionary = new Dictionary(); private const _mediatorsByView:Dictionary = new Dictionary(); - + // avoids the flex framework being required private static const CREATION_COMPLETE:String = 'creationComplete'; @@ -31,7 +31,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.strategies callback(mediator); return; } - + _callbacksByView[view] = callback; _mediatorsByView[view] = mediator; view.addEventListener(CREATION_COMPLETE, completeStartup); @@ -41,7 +41,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.strategies { const view:EventDispatcher = e.target as EventDispatcher; view.removeEventListener(CREATION_COMPLETE, completeStartup); - + if(!_mediatorsByView[view].destroyed) { _callbacksByView[view](_mediatorsByView[view]); diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTrigger.as b/src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTrigger.as similarity index 80% rename from src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTrigger.as rename to src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTrigger.as index f3797e16..a522c99e 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTrigger.as +++ b/src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTrigger.as @@ -1,23 +1,23 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers +package robotlegs.bender.extensions.mediatorMap.utilities.triggers { import flash.display.DisplayObject; import flash.utils.describeType; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorTrigger; - import org.robotlegs.v2.core.utilities.objectHasMethod; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorTrigger; + import robotlegs.bender.core.utilities.objectHasMethod; import flash.errors.IllegalOperationError; - import org.robotlegs.v2.core.api.ITypeMatcher; + import robotlegs.bender.core.api.ITypeMatcher; import flash.utils.Dictionary; - import org.robotlegs.v2.extensions.mediatorMap.utilities.strategies.NoWaitStrategy; - import org.robotlegs.v2.core.api.ITypeFilter; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorStartupStrategy; - import org.robotlegs.v2.extensions.mediatorMap.api.IStrategicTrigger; + import robotlegs.bender.extensions.mediatorMap.utilities.strategies.NoWaitStrategy; + import robotlegs.bender.core.api.ITypeFilter; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorStartupStrategy; + import robotlegs.bender.extensions.mediatorMap.api.IStrategicTrigger; public class DuckTypedMediatorTrigger extends StrategicTriggerBase { @@ -43,12 +43,12 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers { mediator.setViewComponent(view); } - + if(mediator.hasOwnProperty('destroyed')) { mediator.destroyed = false; } - + if (objectHasMethod(mediator, 'preRegister')) { mediator.preRegister(); @@ -57,7 +57,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers { startupWithStrategy(mediator, view); } - + } override public function shutdown(mediator:*, view:DisplayObject, callback:Function):void @@ -66,7 +66,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers { throwErrorIfUnimplemented(mediator, ['preRemove', 'destroy']); } - + if (objectHasMethod(mediator, 'preRemove')) { mediator.preRemove(); @@ -75,15 +75,15 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers { mediator.destroy(); } - + if(mediator.hasOwnProperty('destroyed')) { mediator.destroyed = true; } - + callback(mediator, view); } - + protected function throwErrorIfUnimplemented(mediator:Object, methods:Array):void { for each (var methodName:String in methods) @@ -93,10 +93,10 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers return; } } - + throw new IllegalOperationError("None of the selection of expected methods ( " + methods + " ) were found on " + mediator); } - + override protected function startupCallback(mediator:*):void { mediator.initialize(); diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTrigger.as b/src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTrigger.as similarity index 81% rename from src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTrigger.as rename to src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTrigger.as index 65100a68..a3b13a1d 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTrigger.as +++ b/src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTrigger.as @@ -1,33 +1,33 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers +package robotlegs.bender.extensions.mediatorMap.utilities.triggers { import flash.display.DisplayObject; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorTrigger; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediator; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorTrigger; + import robotlegs.bender.extensions.mediatorMap.api.IMediator; import org.robotlegs.core.IMediator; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL2MediatorTrigger; - - public class RL1AndRL2MediatorTrigger extends RL2MediatorTrigger + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL2MediatorTrigger; + + public class RL1AndRL2MediatorTrigger extends RL2MediatorTrigger { protected const RL1MediatorType:Class = org.robotlegs.core.IMediator; - protected const RL2MediatorType:Class = org.robotlegs.v2.extensions.mediatorMap.api.IMediator; - + protected const RL2MediatorType:Class = robotlegs.bender.extensions.mediatorMap.api.IMediator; + protected const NOT_A_MEDIATOR:String = "In strict mode RL1AndRL2MediatorTrigger expects" + " mediators to implement " + RL1MediatorType + " or " + RL2MediatorType; - + public function RL1AndRL2MediatorTrigger(strict:Boolean) { super(strict); } - + override public function startup(mediator:*, view:DisplayObject):void { if(mediator is RL1MediatorType) @@ -61,7 +61,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers throwNotAMediatorError(); } } - + protected function throwNotAMediatorError():void { throw new ArgumentError(NOT_A_MEDIATOR) diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1MediatorTrigger.as b/src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1MediatorTrigger.as similarity index 86% rename from src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1MediatorTrigger.as rename to src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1MediatorTrigger.as index 0618d2bc..cde7a233 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1MediatorTrigger.as +++ b/src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1MediatorTrigger.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers +package robotlegs.bender.extensions.mediatorMap.utilities.triggers { import flash.display.DisplayObject; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorTrigger; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorTrigger; import org.robotlegs.core.IMediator; public class RL1MediatorTrigger implements IMediatorTrigger diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL2MediatorTrigger.as b/src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL2MediatorTrigger.as similarity index 86% rename from src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL2MediatorTrigger.as rename to src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL2MediatorTrigger.as index 83f1df63..ea7ce214 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL2MediatorTrigger.as +++ b/src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL2MediatorTrigger.as @@ -1,26 +1,26 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers +package robotlegs.bender.extensions.mediatorMap.utilities.triggers { - import org.robotlegs.v2.extensions.mediatorMap.api.IMediator; + import robotlegs.bender.extensions.mediatorMap.api.IMediator; import flash.display.DisplayObject; public class RL2MediatorTrigger extends StrategicTriggerBase { protected var _strict:Boolean; - + public function RL2MediatorTrigger(strict:Boolean) { _strict = strict; } override public function startup(mediator:*, view:DisplayObject):void - { + { if (_strict || (mediator is IMediator)) { mediator.destroyed = false; @@ -38,7 +38,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers } callback(mediator, view); } - + override protected function startupCallback(mediator:*):void { mediator.initialize(); diff --git a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/StrategicTriggerBase.as b/src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/StrategicTriggerBase.as similarity index 75% rename from src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/StrategicTriggerBase.as rename to src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/StrategicTriggerBase.as index 102ba81b..a51603d9 100644 --- a/src/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/StrategicTriggerBase.as +++ b/src/robotlegs/bender/extensions/mediatorMap/utilities/triggers/StrategicTriggerBase.as @@ -1,40 +1,40 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers +package robotlegs.bender.extensions.mediatorMap.utilities.triggers { import flash.display.DisplayObject; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorTrigger; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorTrigger; import flash.utils.Dictionary; - import org.robotlegs.v2.core.api.ITypeMatcher; - import org.robotlegs.v2.extensions.mediatorMap.utilities.strategies.NoWaitStrategy; - import org.robotlegs.v2.core.api.ITypeFilter; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorStartupStrategy; - import org.robotlegs.v2.extensions.mediatorMap.api.IStrategicTrigger; + import robotlegs.bender.core.api.ITypeMatcher; + import robotlegs.bender.extensions.mediatorMap.utilities.strategies.NoWaitStrategy; + import robotlegs.bender.core.api.ITypeFilter; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorStartupStrategy; + import robotlegs.bender.extensions.mediatorMap.api.IStrategicTrigger; public class StrategicTriggerBase implements IMediatorTrigger, IStrategicTrigger { protected const _strategiesByFilter:Dictionary = new Dictionary(); - + protected var _defaultStrategy:IMediatorStartupStrategy = new NoWaitStrategy(); public function startup(mediator:*, view:DisplayObject):void - { + { } public function shutdown(mediator:*, view:DisplayObject, callback:Function):void { } - + public function addStartupStrategy(strategy:Class, matcher:ITypeMatcher):void { _strategiesByFilter[matcher.createTypeFilter()] = new strategy(); } - + protected function startupWithStrategy(mediator:*, view:DisplayObject):void { for (var filter:* in _strategiesByFilter) @@ -45,10 +45,10 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers return; } } - + _defaultStrategy.startup(mediator, view, startupCallback); } - + protected function startupCallback(mediator:*):void { } diff --git a/src/org/robotlegs/v2/extensions/modularity/ModularityExtension.as b/src/robotlegs/bender/extensions/modularity/ModularityExtension.as similarity index 73% rename from src/org/robotlegs/v2/extensions/modularity/ModularityExtension.as rename to src/robotlegs/bender/extensions/modularity/ModularityExtension.as index e8e11700..a57f5505 100644 --- a/src/org/robotlegs/v2/extensions/modularity/ModularityExtension.as +++ b/src/robotlegs/bender/extensions/modularity/ModularityExtension.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.modularity +package robotlegs.bender.extensions.modularity { - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextExtension; - import org.robotlegs.v2.core.api.IContextPreProcessor; - import org.robotlegs.v2.extensions.modularity.impl.ParentContextFinder; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextExtension; + import robotlegs.bender.core.api.IContextPreProcessor; + import robotlegs.bender.extensions.modularity.impl.ParentContextFinder; public class ModularityExtension implements IContextExtension, IContextPreProcessor { diff --git a/src/org/robotlegs/v2/extensions/modularity/impl/ParentContextFinder.as b/src/robotlegs/bender/extensions/modularity/impl/ParentContextFinder.as similarity index 89% rename from src/org/robotlegs/v2/extensions/modularity/impl/ParentContextFinder.as rename to src/robotlegs/bender/extensions/modularity/impl/ParentContextFinder.as index 4ca3752d..1b2cb467 100644 --- a/src/org/robotlegs/v2/extensions/modularity/impl/ParentContextFinder.as +++ b/src/robotlegs/bender/extensions/modularity/impl/ParentContextFinder.as @@ -1,19 +1,19 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.modularity.impl +package robotlegs.bender.extensions.modularity.impl { import flash.display.DisplayObjectContainer; import flash.events.Event; - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextLogger; - import org.robotlegs.v2.core.api.IContextPreProcessor; - import org.robotlegs.v2.core.api.IContextViewRegistry; - import org.robotlegs.v2.core.impl.ContextViewRegistry; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextLogger; + import robotlegs.bender.core.api.IContextPreProcessor; + import robotlegs.bender.core.api.IContextViewRegistry; + import robotlegs.bender.core.impl.ContextViewRegistry; public class ParentContextFinder implements IContextPreProcessor { diff --git a/src/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionConfig.as b/src/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionConfig.as similarity index 82% rename from src/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionConfig.as rename to src/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionConfig.as index eb44718e..b38ddf71 100644 --- a/src/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionConfig.as +++ b/src/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionConfig.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewInjectionMap.impl +package robotlegs.bender.extensions.viewInjectionMap.impl { public class ViewInjectionConfig { diff --git a/src/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionMap.as b/src/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionMap.as similarity index 79% rename from src/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionMap.as rename to src/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionMap.as index 35ae6ad3..163e3053 100644 --- a/src/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionMap.as +++ b/src/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionMap.as @@ -1,45 +1,45 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewInjectionMap.impl +package robotlegs.bender.extensions.viewInjectionMap.impl { import flash.display.DisplayObject; import flash.events.EventDispatcher; import flash.events.IEventDispatcher; - - import org.robotlegs.v2.core.api.ITypeFilter; - import org.robotlegs.v2.core.api.ITypeMatcher; - import org.robotlegs.v2.core.impl.TypeMatcher; - import org.robotlegs.v2.extensions.viewManager.api.IViewClassInfo; - import org.robotlegs.v2.extensions.viewManager.api.IViewHandler; - import org.robotlegs.v2.extensions.viewManager.api.ViewHandlerEvent; - import org.robotlegs.v2.extensions.viewManager.api.ViewInterests; - import org.robotlegs.v2.extensions.viewMap.impl.ViewMap; + + import robotlegs.bender.core.api.ITypeFilter; + import robotlegs.bender.core.api.ITypeMatcher; + import robotlegs.bender.core.impl.TypeMatcher; + import robotlegs.bender.extensions.viewManager.api.IViewClassInfo; + import robotlegs.bender.extensions.viewManager.api.IViewHandler; + import robotlegs.bender.extensions.viewManager.api.ViewHandlerEvent; + import robotlegs.bender.extensions.viewManager.api.ViewInterests; + import robotlegs.bender.extensions.viewMap.impl.ViewMap; import org.swiftsuspenders.Injector; - + // TODO: review public class ViewInjectionMap extends EventDispatcher implements IViewHandler, IEventDispatcher { [Inject] public var injector:Injector; - + private var _viewMap:ViewMap; - + public function set viewMap(value:ViewMap):void { _viewMap = value; _viewMap.processCallback = processMapping; } - [Event(name="configurationChange", type="org.robotlegs.v2.extensions.viewManager.api.ViewHandlerEvent")] + [Event(name="configurationChange", type="robotlegs.bender.extensions.viewManager.api.ViewHandlerEvent")] public function ViewInjectionMap() { } - + public function get interests():uint { return ViewInterests.INJECTION; @@ -55,20 +55,20 @@ package org.robotlegs.v2.extensions.viewInjectionMap.impl public function releaseView(view:DisplayObject):void { - + } public function destroy():void { - + } - + public function hasMapping(viewTypeOrMatcher:*):Boolean { const mapping:ViewInjectionMapping = _viewMap.getMapping(viewTypeOrMatcher) as ViewInjectionMapping; return (mapping && mapping.hasConfigs); } - + public function getMapping(viewTypeOrMatcher:*):ViewInjectionMapping { return _viewMap.getMapping(viewTypeOrMatcher) as ViewInjectionMapping; @@ -78,27 +78,27 @@ package org.robotlegs.v2.extensions.viewInjectionMap.impl { return mapMatcher(new TypeMatcher().allOf(viewType)); } - + public function mapMatcher(typeMatcher:ITypeMatcher):ViewInjectionMapping { const typeFilter:ITypeFilter = _viewMap.getOrCreateFilterForMatcher(typeMatcher); - + const mapping:ViewInjectionMapping = new ViewInjectionMapping(typeFilter, injector); - + _viewMap.createMapping(typeFilter, mapping); return mapping; } - + public function unmap(viewType:Class):ViewInjectionMapping { return unmapMatcher(new TypeMatcher().allOf(viewType)); } - + public function unmapMatcher(typeMatcher:ITypeMatcher):ViewInjectionMapping { return _viewMap.getMapping(typeMatcher) as ViewInjectionMapping; } - + private function processMapping(view:DisplayObject, info:IViewClassInfo, filter:ITypeFilter, mapping:ViewInjectionMapping):void { _viewMap.mapViewForFilterBinding(filter, info, view); @@ -107,7 +107,7 @@ package org.robotlegs.v2.extensions.viewInjectionMap.impl _viewMap.unmapViewForFilterBinding(filter, info, view); } - - + + } } \ No newline at end of file diff --git a/src/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionMapping.as b/src/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionMapping.as similarity index 90% rename from src/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionMapping.as rename to src/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionMapping.as index 069909f9..d8b43f8f 100644 --- a/src/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionMapping.as +++ b/src/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionMapping.as @@ -1,25 +1,25 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewInjectionMap.impl +package robotlegs.bender.extensions.viewInjectionMap.impl { - import org.robotlegs.v2.core.api.ITypeFilter; + import robotlegs.bender.core.api.ITypeFilter; import flash.utils.Dictionary; import org.swiftsuspenders.Injector; import flash.display.DisplayObject; - + public class ViewInjectionMapping { private var _configsByProcessorType:Dictionary; - + private var _typeFilter:ITypeFilter; - + private var _injector:Injector; - + public function get configsByProcessorType():Dictionary { return _configsByProcessorType; @@ -31,20 +31,20 @@ package org.robotlegs.v2.extensions.viewInjectionMap.impl _typeFilter = typeFilter; _injector = injector; } - + public function toProcess(viewProcessorType:Class):ViewInjectionConfig { const config:ViewInjectionConfig = new ViewInjectionConfig(); - + _configsByProcessorType[viewProcessorType] = config; return config; } - + public function fromProcess(viewProcessorType:Class):void { delete _configsByProcessorType[viewProcessorType]; } - + public function process(view:DisplayObject):void { for (var processorClass:* in _configsByProcessorType) @@ -54,7 +54,7 @@ package org.robotlegs.v2.extensions.viewInjectionMap.impl processor.process(view); } } - + public function get hasConfigs():Boolean { for each (var item:Object in _configsByProcessorType) diff --git a/src/org/robotlegs/v2/extensions/viewInjectionMap/impl/processors/InjectInto.as b/src/robotlegs/bender/extensions/viewInjectionMap/impl/processors/InjectInto.as similarity index 85% rename from src/org/robotlegs/v2/extensions/viewInjectionMap/impl/processors/InjectInto.as rename to src/robotlegs/bender/extensions/viewInjectionMap/impl/processors/InjectInto.as index 035fff2b..6dfedb7a 100644 --- a/src/org/robotlegs/v2/extensions/viewInjectionMap/impl/processors/InjectInto.as +++ b/src/robotlegs/bender/extensions/viewInjectionMap/impl/processors/InjectInto.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewInjectionMap.impl.processors +package robotlegs.bender.extensions.viewInjectionMap.impl.processors { import org.swiftsuspenders.Injector; - + // TODO: review (naming, design) public class InjectInto { @@ -18,7 +18,7 @@ package org.robotlegs.v2.extensions.viewInjectionMap.impl.processors public function InjectInto() { } - + public function process(item:Object):void { injector.injectInto(item); diff --git a/src/org/robotlegs/v2/extensions/viewManager/AutoStageListenerExtension.as b/src/robotlegs/bender/extensions/viewManager/AutoStageListenerExtension.as similarity index 73% rename from src/org/robotlegs/v2/extensions/viewManager/AutoStageListenerExtension.as rename to src/robotlegs/bender/extensions/viewManager/AutoStageListenerExtension.as index 1d38bf37..63cf18d1 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/AutoStageListenerExtension.as +++ b/src/robotlegs/bender/extensions/viewManager/AutoStageListenerExtension.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager +package robotlegs.bender.extensions.viewManager { - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextExtension; - import org.robotlegs.v2.extensions.viewManager.api.IViewListener; - import org.robotlegs.v2.extensions.viewManager.impl.ContainerRegistry; - import org.robotlegs.v2.extensions.viewManager.impl.ViewProcessor; - import org.robotlegs.v2.extensions.viewManager.integration.listeners.AutoStageListener; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextExtension; + import robotlegs.bender.extensions.viewManager.api.IViewListener; + import robotlegs.bender.extensions.viewManager.impl.ContainerRegistry; + import robotlegs.bender.extensions.viewManager.impl.ViewProcessor; + import robotlegs.bender.extensions.viewManager.integration.listeners.AutoStageListener; public class AutoStageListenerExtension implements IContextExtension { @@ -20,7 +20,7 @@ package org.robotlegs.v2.extensions.viewManager // Really? Yes, there can be only one. private static var viewListener:IViewListener; - + private var context:IContext; public function install(context:IContext):void diff --git a/src/org/robotlegs/v2/extensions/viewManager/ConfigureViewListenerExtension.as b/src/robotlegs/bender/extensions/viewManager/ConfigureViewListenerExtension.as similarity index 73% rename from src/org/robotlegs/v2/extensions/viewManager/ConfigureViewListenerExtension.as rename to src/robotlegs/bender/extensions/viewManager/ConfigureViewListenerExtension.as index 1167f315..2b75da67 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/ConfigureViewListenerExtension.as +++ b/src/robotlegs/bender/extensions/viewManager/ConfigureViewListenerExtension.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager +package robotlegs.bender.extensions.viewManager { - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextExtension; - import org.robotlegs.v2.extensions.viewManager.api.IViewListener; - import org.robotlegs.v2.extensions.viewManager.impl.ContainerRegistry; - import org.robotlegs.v2.extensions.viewManager.impl.ViewProcessor; - import org.robotlegs.v2.extensions.viewManager.integration.listeners.ConfigureViewListener; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextExtension; + import robotlegs.bender.extensions.viewManager.api.IViewListener; + import robotlegs.bender.extensions.viewManager.impl.ContainerRegistry; + import robotlegs.bender.extensions.viewManager.impl.ViewProcessor; + import robotlegs.bender.extensions.viewManager.integration.listeners.ConfigureViewListener; public class ConfigureViewListenerExtension implements IContextExtension { @@ -20,7 +20,7 @@ package org.robotlegs.v2.extensions.viewManager // Really? Yes, there can be only one. private static var viewListener:IViewListener; - + private var context:IContext; public function install(context:IContext):void diff --git a/src/org/robotlegs/v2/extensions/viewManager/ViewManagerExtension.as b/src/robotlegs/bender/extensions/viewManager/ViewManagerExtension.as similarity index 77% rename from src/org/robotlegs/v2/extensions/viewManager/ViewManagerExtension.as rename to src/robotlegs/bender/extensions/viewManager/ViewManagerExtension.as index 08ca27f1..df86ae5b 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/ViewManagerExtension.as +++ b/src/robotlegs/bender/extensions/viewManager/ViewManagerExtension.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager +package robotlegs.bender.extensions.viewManager { - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextExtension; - import org.robotlegs.v2.extensions.viewManager.api.IViewManager; - import org.robotlegs.v2.extensions.viewManager.impl.ContainerRegistry; - import org.robotlegs.v2.extensions.viewManager.impl.ViewManager; - import org.robotlegs.v2.extensions.viewManager.impl.ViewProcessor; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextExtension; + import robotlegs.bender.extensions.viewManager.api.IViewManager; + import robotlegs.bender.extensions.viewManager.impl.ContainerRegistry; + import robotlegs.bender.extensions.viewManager.impl.ViewManager; + import robotlegs.bender.extensions.viewManager.impl.ViewProcessor; public class ViewManagerExtension implements IContextExtension { @@ -21,15 +21,15 @@ package org.robotlegs.v2.extensions.viewManager // Really? Yes, there can be only one. private static var viewProcessor:ViewProcessor; - + private var context:IContext; - + private var viewManager:IViewManager; public function install(context:IContext):void { this.context = context; - + // Just one Container Registry containerRegistry ||= new ContainerRegistry(); context.injector.map(ContainerRegistry).toValue(containerRegistry); diff --git a/src/org/robotlegs/v2/extensions/viewManager/api/IViewClassInfo.as b/src/robotlegs/bender/extensions/viewManager/api/IViewClassInfo.as similarity index 87% rename from src/org/robotlegs/v2/extensions/viewManager/api/IViewClassInfo.as rename to src/robotlegs/bender/extensions/viewManager/api/IViewClassInfo.as index 91ad8ea8..8ad0b6d9 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/api/IViewClassInfo.as +++ b/src/robotlegs/bender/extensions/viewManager/api/IViewClassInfo.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.api +package robotlegs.bender.extensions.viewManager.api { import flash.system.ApplicationDomain; diff --git a/src/org/robotlegs/v2/extensions/viewManager/api/IViewHandler.as b/src/robotlegs/bender/extensions/viewManager/api/IViewHandler.as similarity index 83% rename from src/org/robotlegs/v2/extensions/viewManager/api/IViewHandler.as rename to src/robotlegs/bender/extensions/viewManager/api/IViewHandler.as index 4ee1b5de..ac01b07a 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/api/IViewHandler.as +++ b/src/robotlegs/bender/extensions/viewManager/api/IViewHandler.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.api +package robotlegs.bender.extensions.viewManager.api { import flash.display.DisplayObject; import flash.events.IEventDispatcher; - [Event(name="configurationChange", type="org.robotlegs.v2.extensions.viewManager.api.ViewHandlerEvent")] + [Event(name="configurationChange", type="robotlegs.bender.extensions.viewManager.api.ViewHandlerEvent")] public interface IViewHandler extends IEventDispatcher { function get interests():uint; diff --git a/src/org/robotlegs/v2/extensions/viewManager/api/IViewListener.as b/src/robotlegs/bender/extensions/viewManager/api/IViewListener.as similarity index 87% rename from src/org/robotlegs/v2/extensions/viewManager/api/IViewListener.as rename to src/robotlegs/bender/extensions/viewManager/api/IViewListener.as index 7e11f329..a8e9fefd 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/api/IViewListener.as +++ b/src/robotlegs/bender/extensions/viewManager/api/IViewListener.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.api +package robotlegs.bender.extensions.viewManager.api { import flash.display.DisplayObject; diff --git a/src/org/robotlegs/v2/extensions/viewManager/api/IViewManager.as b/src/robotlegs/bender/extensions/viewManager/api/IViewManager.as similarity index 89% rename from src/org/robotlegs/v2/extensions/viewManager/api/IViewManager.as rename to src/robotlegs/bender/extensions/viewManager/api/IViewManager.as index ff3f1f4d..054c3d70 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/api/IViewManager.as +++ b/src/robotlegs/bender/extensions/viewManager/api/IViewManager.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.api +package robotlegs.bender.extensions.viewManager.api { import flash.display.DisplayObjectContainer; diff --git a/src/org/robotlegs/v2/extensions/viewManager/api/ViewHandlerEvent.as b/src/robotlegs/bender/extensions/viewManager/api/ViewHandlerEvent.as similarity index 88% rename from src/org/robotlegs/v2/extensions/viewManager/api/ViewHandlerEvent.as rename to src/robotlegs/bender/extensions/viewManager/api/ViewHandlerEvent.as index 1162b5a6..ebba21f5 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/api/ViewHandlerEvent.as +++ b/src/robotlegs/bender/extensions/viewManager/api/ViewHandlerEvent.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.api +package robotlegs.bender.extensions.viewManager.api { import flash.events.Event; diff --git a/src/org/robotlegs/v2/extensions/viewManager/api/ViewInterests.as b/src/robotlegs/bender/extensions/viewManager/api/ViewInterests.as similarity index 93% rename from src/org/robotlegs/v2/extensions/viewManager/api/ViewInterests.as rename to src/robotlegs/bender/extensions/viewManager/api/ViewInterests.as index 8bb9e06f..67acaeaf 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/api/ViewInterests.as +++ b/src/robotlegs/bender/extensions/viewManager/api/ViewInterests.as @@ -1,57 +1,57 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.api +package robotlegs.bender.extensions.viewManager.api { public class ViewInterests { public static const MISCELLANEOUS:uint = 1; // blocking isn't a valid response with none - + public static const MEDIATION:uint = 4; public static const MEDIATION_BLOCK:uint = 8; - + public static const INJECTION:uint = 16; public static const INJECTION_BLOCK:uint = 32; - + public static const SKINNING:uint = 64; public static const SKINNING_BLOCK:uint = 128; - + public static const LOCALISATION:uint = 256; public static const LOCALISATION_BLOCK:uint = 512; - + public static const LOGGING:uint = 1024; public static const LOGGING_BLOCK:uint = 2048; - + public static const PRESENTATION:uint = 4096; public static const PRESENTATION_BLOCK:uint = 8192; public static const ROBOTLEGS_8:uint = 16384; public static const ROBOTLEGS_8_BLOCK:uint = 32768; - + public static const CHANNEL_9:uint = 65536; public static const CHANNEL_9_BLOCK:uint = 131072; - + public static const CHANNEL_10:uint = 262144; public static const CHANNEL_10_BLOCK:uint = 524288; - + public static const CHANNEL_11:uint = 1048576; public static const CHANNEL_11_BLOCK:uint = 2097152; - + public static const CHANNEL_12:uint = 4194304; public static const CHANNEL_12_BLOCK:uint = 8388608; - + public static const CHANNEL_13:uint = 16777216; public static const CHANNEL_13_BLOCK:uint = 33554432; - + public static const CHANNEL_14:uint = 67108864; public static const CHANNEL_14_BLOCK:uint = 134217728; - + public static const CHANNEL_15:uint = 268435456; public static const CHANNEL_15_BLOCK:uint = 536870912; diff --git a/src/org/robotlegs/v2/extensions/viewManager/impl/ContainerBinding.as b/src/robotlegs/bender/extensions/viewManager/impl/ContainerBinding.as similarity index 90% rename from src/org/robotlegs/v2/extensions/viewManager/impl/ContainerBinding.as rename to src/robotlegs/bender/extensions/viewManager/impl/ContainerBinding.as index a3d9933b..d8eacdd8 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/impl/ContainerBinding.as +++ b/src/robotlegs/bender/extensions/viewManager/impl/ContainerBinding.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl +package robotlegs.bender.extensions.viewManager.impl { import flash.display.DisplayObjectContainer; - import org.robotlegs.v2.extensions.viewManager.api.IViewHandler; + import robotlegs.bender.extensions.viewManager.api.IViewHandler; public class ContainerBinding { diff --git a/src/org/robotlegs/v2/extensions/viewManager/impl/ContainerExistenceEvent.as b/src/robotlegs/bender/extensions/viewManager/impl/ContainerExistenceEvent.as similarity index 92% rename from src/org/robotlegs/v2/extensions/viewManager/impl/ContainerExistenceEvent.as rename to src/robotlegs/bender/extensions/viewManager/impl/ContainerExistenceEvent.as index 04c58a7c..8a4a1942 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/impl/ContainerExistenceEvent.as +++ b/src/robotlegs/bender/extensions/viewManager/impl/ContainerExistenceEvent.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl +package robotlegs.bender.extensions.viewManager.impl { import flash.display.DisplayObjectContainer; import flash.events.Event; diff --git a/src/org/robotlegs/v2/extensions/viewManager/impl/ContainerRegistry.as b/src/robotlegs/bender/extensions/viewManager/impl/ContainerRegistry.as similarity index 92% rename from src/org/robotlegs/v2/extensions/viewManager/impl/ContainerRegistry.as rename to src/robotlegs/bender/extensions/viewManager/impl/ContainerRegistry.as index 807a485a..6cb0b000 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/impl/ContainerRegistry.as +++ b/src/robotlegs/bender/extensions/viewManager/impl/ContainerRegistry.as @@ -1,21 +1,21 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl +package robotlegs.bender.extensions.viewManager.impl { import flash.display.DisplayObject; import flash.display.DisplayObjectContainer; import flash.events.EventDispatcher; import flash.utils.Dictionary; - [Event(name="containerAdd", type="org.robotlegs.v2.extensions.viewManager.impl.ContainerExistenceEvent")] - [Event(name="containerRemove", type="org.robotlegs.v2.extensions.viewManager.impl.ContainerExistenceEvent")] - [Event(name="rootContainerAdd", type="org.robotlegs.v2.extensions.viewManager.impl.ContainerExistenceEvent")] - [Event(name="rootContainerRemove", type="org.robotlegs.v2.extensions.viewManager.impl.ContainerExistenceEvent")] + [Event(name="containerAdd", type="robotlegs.bender.extensions.viewManager.impl.ContainerExistenceEvent")] + [Event(name="containerRemove", type="robotlegs.bender.extensions.viewManager.impl.ContainerExistenceEvent")] + [Event(name="rootContainerAdd", type="robotlegs.bender.extensions.viewManager.impl.ContainerExistenceEvent")] + [Event(name="rootContainerRemove", type="robotlegs.bender.extensions.viewManager.impl.ContainerExistenceEvent")] public class ContainerRegistry extends EventDispatcher { private const _bindings:Vector. = new Vector.; diff --git a/src/org/robotlegs/v2/extensions/viewManager/impl/ViewClassInfo.as b/src/robotlegs/bender/extensions/viewManager/impl/ViewClassInfo.as similarity index 88% rename from src/org/robotlegs/v2/extensions/viewManager/impl/ViewClassInfo.as rename to src/robotlegs/bender/extensions/viewManager/impl/ViewClassInfo.as index 262d0483..f66dd9a0 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/impl/ViewClassInfo.as +++ b/src/robotlegs/bender/extensions/viewManager/impl/ViewClassInfo.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl +package robotlegs.bender.extensions.viewManager.impl { import flash.system.ApplicationDomain; - import org.robotlegs.v2.extensions.viewManager.api.IViewClassInfo; + import robotlegs.bender.extensions.viewManager.api.IViewClassInfo; public class ViewClassInfo implements IViewClassInfo { diff --git a/src/org/robotlegs/v2/extensions/viewManager/impl/ViewManager.as b/src/robotlegs/bender/extensions/viewManager/impl/ViewManager.as similarity index 90% rename from src/org/robotlegs/v2/extensions/viewManager/impl/ViewManager.as rename to src/robotlegs/bender/extensions/viewManager/impl/ViewManager.as index 898d9080..16e873e7 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/impl/ViewManager.as +++ b/src/robotlegs/bender/extensions/viewManager/impl/ViewManager.as @@ -1,15 +1,15 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl +package robotlegs.bender.extensions.viewManager.impl { import flash.display.DisplayObjectContainer; - import org.robotlegs.v2.extensions.viewManager.api.IViewHandler; - import org.robotlegs.v2.extensions.viewManager.api.IViewManager; + import robotlegs.bender.extensions.viewManager.api.IViewHandler; + import robotlegs.bender.extensions.viewManager.api.IViewManager; public class ViewManager implements IViewManager { diff --git a/src/org/robotlegs/v2/extensions/viewManager/impl/ViewProcessor.as b/src/robotlegs/bender/extensions/viewManager/impl/ViewProcessor.as similarity index 95% rename from src/org/robotlegs/v2/extensions/viewManager/impl/ViewProcessor.as rename to src/robotlegs/bender/extensions/viewManager/impl/ViewProcessor.as index c34dcb36..64b4ce42 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/impl/ViewProcessor.as +++ b/src/robotlegs/bender/extensions/viewManager/impl/ViewProcessor.as @@ -1,21 +1,21 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl +package robotlegs.bender.extensions.viewManager.impl { import flash.display.DisplayObject; import flash.display.DisplayObjectContainer; import flash.system.ApplicationDomain; import flash.utils.Dictionary; import flash.utils.getQualifiedClassName; - import org.robotlegs.v2.extensions.viewManager.api.IViewClassInfo; - import org.robotlegs.v2.extensions.viewManager.api.IViewHandler; - import org.robotlegs.v2.extensions.viewManager.api.IViewListener; - import org.robotlegs.v2.extensions.viewManager.api.ViewHandlerEvent; + import robotlegs.bender.extensions.viewManager.api.IViewClassInfo; + import robotlegs.bender.extensions.viewManager.api.IViewHandler; + import robotlegs.bender.extensions.viewManager.api.IViewListener; + import robotlegs.bender.extensions.viewManager.api.ViewHandlerEvent; public class ViewProcessor { diff --git a/src/org/robotlegs/v2/extensions/viewManager/integration/listeners/AutoStageListener.as b/src/robotlegs/bender/extensions/viewManager/integration/listeners/AutoStageListener.as similarity index 88% rename from src/org/robotlegs/v2/extensions/viewManager/integration/listeners/AutoStageListener.as rename to src/robotlegs/bender/extensions/viewManager/integration/listeners/AutoStageListener.as index a7c63e4e..b1297ef4 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/integration/listeners/AutoStageListener.as +++ b/src/robotlegs/bender/extensions/viewManager/integration/listeners/AutoStageListener.as @@ -1,20 +1,20 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.integration.listeners +package robotlegs.bender.extensions.viewManager.integration.listeners { import flash.display.DisplayObject; import flash.display.DisplayObjectContainer; import flash.events.Event; - import org.robotlegs.v2.extensions.viewManager.api.IViewListener; - import org.robotlegs.v2.extensions.viewManager.impl.ContainerBinding; - import org.robotlegs.v2.extensions.viewManager.impl.ContainerExistenceEvent; - import org.robotlegs.v2.extensions.viewManager.impl.ContainerRegistry; - import org.robotlegs.v2.extensions.viewManager.impl.ViewProcessor; + import robotlegs.bender.extensions.viewManager.api.IViewListener; + import robotlegs.bender.extensions.viewManager.impl.ContainerBinding; + import robotlegs.bender.extensions.viewManager.impl.ContainerExistenceEvent; + import robotlegs.bender.extensions.viewManager.impl.ContainerRegistry; + import robotlegs.bender.extensions.viewManager.impl.ViewProcessor; public class AutoStageListener implements IViewListener { diff --git a/src/org/robotlegs/v2/extensions/viewManager/integration/listeners/ConfigureViewEvent.as b/src/robotlegs/bender/extensions/viewManager/integration/listeners/ConfigureViewEvent.as similarity index 89% rename from src/org/robotlegs/v2/extensions/viewManager/integration/listeners/ConfigureViewEvent.as rename to src/robotlegs/bender/extensions/viewManager/integration/listeners/ConfigureViewEvent.as index 2550298a..c8a018db 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/integration/listeners/ConfigureViewEvent.as +++ b/src/robotlegs/bender/extensions/viewManager/integration/listeners/ConfigureViewEvent.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.integration.listeners +package robotlegs.bender.extensions.viewManager.integration.listeners { import flash.display.DisplayObject; import flash.events.Event; diff --git a/src/org/robotlegs/v2/extensions/viewManager/integration/listeners/ConfigureViewListener.as b/src/robotlegs/bender/extensions/viewManager/integration/listeners/ConfigureViewListener.as similarity index 88% rename from src/org/robotlegs/v2/extensions/viewManager/integration/listeners/ConfigureViewListener.as rename to src/robotlegs/bender/extensions/viewManager/integration/listeners/ConfigureViewListener.as index ee28fc65..6c461567 100644 --- a/src/org/robotlegs/v2/extensions/viewManager/integration/listeners/ConfigureViewListener.as +++ b/src/robotlegs/bender/extensions/viewManager/integration/listeners/ConfigureViewListener.as @@ -1,20 +1,20 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.integration.listeners +package robotlegs.bender.extensions.viewManager.integration.listeners { import flash.display.DisplayObject; import flash.display.DisplayObjectContainer; import flash.events.Event; - import org.robotlegs.v2.extensions.viewManager.api.IViewListener; - import org.robotlegs.v2.extensions.viewManager.impl.ContainerBinding; - import org.robotlegs.v2.extensions.viewManager.impl.ContainerExistenceEvent; - import org.robotlegs.v2.extensions.viewManager.impl.ContainerRegistry; - import org.robotlegs.v2.extensions.viewManager.impl.ViewProcessor; + import robotlegs.bender.extensions.viewManager.api.IViewListener; + import robotlegs.bender.extensions.viewManager.impl.ContainerBinding; + import robotlegs.bender.extensions.viewManager.impl.ContainerExistenceEvent; + import robotlegs.bender.extensions.viewManager.impl.ContainerRegistry; + import robotlegs.bender.extensions.viewManager.impl.ViewProcessor; public class ConfigureViewListener implements IViewListener { diff --git a/src/org/robotlegs/v2/extensions/viewMap/impl/ViewMap.as b/src/robotlegs/bender/extensions/viewMap/impl/ViewMap.as similarity index 90% rename from src/org/robotlegs/v2/extensions/viewMap/impl/ViewMap.as rename to src/robotlegs/bender/extensions/viewMap/impl/ViewMap.as index add7d3b4..5db1f28e 100644 --- a/src/org/robotlegs/v2/extensions/viewMap/impl/ViewMap.as +++ b/src/robotlegs/bender/extensions/viewMap/impl/ViewMap.as @@ -1,21 +1,21 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewMap.impl +package robotlegs.bender.extensions.viewMap.impl { import flash.display.DisplayObject; import flash.utils.Dictionary; - import org.robotlegs.v2.core.api.ITypeFilter; - import org.robotlegs.v2.extensions.viewManager.api.IViewClassInfo; + import robotlegs.bender.core.api.ITypeFilter; + import robotlegs.bender.extensions.viewManager.api.IViewClassInfo; import org.swiftsuspenders.Injector; - import org.robotlegs.v2.core.api.ITypeMatcher; - import org.robotlegs.v2.core.impl.TypeMatcher; + import robotlegs.bender.core.api.ITypeMatcher; + import robotlegs.bender.core.impl.TypeMatcher; import flash.utils.getQualifiedClassName; - import org.robotlegs.v2.extensions.viewManager.impl.ViewClassInfo; + import robotlegs.bender.extensions.viewManager.impl.ViewClassInfo; // TODO: review public class ViewMap @@ -26,10 +26,10 @@ package org.robotlegs.v2.extensions.viewMap.impl private const _filtersByDescription:Dictionary = new Dictionary(); private const _mappingsByTypeFilter:Dictionary = new Dictionary(); - + // TODO: avoid this callback private var _processCallback:Function; - + public function set processCallback(value:Function):void { _processCallback = value; @@ -42,11 +42,11 @@ package org.robotlegs.v2.extensions.viewMap.impl { info = createViewClassInfo(view); } - + var interested:Boolean = false; for (var filter:* in _mappingsByTypeFilter) - { + { if ((filter as ITypeFilter).matches(view) && (_mappingsByTypeFilter[filter].hasConfigs)) { interested = true; @@ -64,11 +64,11 @@ package org.robotlegs.v2.extensions.viewMap.impl { viewTypeOrMatcher = new TypeMatcher().allOf(viewTypeOrMatcher); } - + const typeFilter:ITypeFilter = getOrCreateFilterForMatcher(viewTypeOrMatcher as ITypeMatcher); return _mappingsByTypeFilter[typeFilter]; } - + public function hasMapping(viewTypeOrMatcher:*):Boolean { return (getMapping(viewTypeOrMatcher) != null); @@ -83,31 +83,31 @@ package org.robotlegs.v2.extensions.viewMap.impl { delete _mappingsByTypeFilter[typeFilter]; } - + public function cleanUpMapping(typeFilter:ITypeFilter):void { delete _mappingsByTypeFilter[typeFilter]; } - + public function getOrCreateFilterForMatcher(typeMatcher:ITypeMatcher):ITypeFilter { const typeFilter:ITypeFilter = typeMatcher.createTypeFilter(); const descriptor:String = typeFilter.descriptor; - + if(_filtersByDescription[descriptor]) { return _filtersByDescription[descriptor]; } - + _filtersByDescription[descriptor] = typeFilter; return typeFilter; } - + public function mapViewForFilterBinding(filter:ITypeFilter, info:IViewClassInfo, view:DisplayObject):void { var requiredType:Class; const requiredTypes:Vector. = filter.allOfTypes.concat(filter.anyOfTypes); - + if(requiredTypes.indexOf(info.type) == -1) { requiredTypes.push(info.type); @@ -123,7 +123,7 @@ package org.robotlegs.v2.extensions.viewMap.impl { var requiredType:Class; const requiredTypes:Vector. = filter.allOfTypes.concat(filter.anyOfTypes); - + if(requiredTypes.indexOf(info.type) == -1) { requiredTypes.push(info.type); @@ -135,7 +135,7 @@ package org.robotlegs.v2.extensions.viewMap.impl injector.unmap(requiredType); } } - + private function createViewClassInfo(view:DisplayObject):ViewClassInfo { const type:Class = view['constructor']; diff --git a/src/org/robotlegs/v2/flex/mxml/ContextBuilderTag.as b/src/robotlegs/bender/mxml/ContextBuilderTag.as similarity index 90% rename from src/org/robotlegs/v2/flex/mxml/ContextBuilderTag.as rename to src/robotlegs/bender/mxml/ContextBuilderTag.as index cb3f6005..713b7701 100644 --- a/src/org/robotlegs/v2/flex/mxml/ContextBuilderTag.as +++ b/src/robotlegs/bender/mxml/ContextBuilderTag.as @@ -1,17 +1,17 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.flex.mxml +package robotlegs.bender.mxml { import flash.display.DisplayObjectContainer; import flash.utils.setTimeout; import mx.core.IMXMLObject; - import org.robotlegs.v2.core.api.IContextBuilderBundle; - import org.robotlegs.v2.core.impl.ContextBuilder; + import robotlegs.bender.core.api.IContextBuilderBundle; + import robotlegs.bender.core.impl.ContextBuilder; [DefaultProperty("configs")] public class ContextBuilderTag extends ContextBuilder implements IMXMLObject diff --git a/test/AllTests.as b/test/AllTests.as index 91ac2e25..bb25ccb5 100644 --- a/test/AllTests.as +++ b/test/AllTests.as @@ -7,54 +7,54 @@ package { */ import asunit.framework.TestSuite; - import org.robotlegs.v2.core.impl.TypeFilterTest; - import org.robotlegs.v2.core.impl.TypeFilterUsageTest; - import org.robotlegs.v2.core.impl.TypeMatcherTest; - import org.robotlegs.v2.core.utilities.RunningInFlexUtilFunctionTest; - import org.robotlegs.v2.extensions.eventMap.api.IEventMapTest; - import org.robotlegs.v2.extensions.eventMap.impl.EventMapTest; - import org.robotlegs.v2.extensions.guardsAndHooks.impl.GuardsProcessorTest; - import org.robotlegs.v2.extensions.guardsAndHooks.impl.HooksProcessorTest; - import org.robotlegs.v2.extensions.mediatorMap.configs.RL2MediatorsConfigTest; - import org.robotlegs.v2.extensions.mediatorMap.impl.MediatorTest; - import org.robotlegs.v2.extensions.mediatorMap.MediatorMapExtensionTest; - import org.robotlegs.v2.extensions.mediatorMap.MediatorMapTest; - import org.robotlegs.v2.extensions.mediatorMap.MediatorMapV1Test; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTrigger_strategiesTest; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTriggerTest; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTrigger_strategiesTest; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTriggerTest; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL1MediatorTriggerTest; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL2MediatorTrigger_strategiesTest; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL2MediatorTriggerTest; - import org.robotlegs.v2.extensions.viewHookMap.HookMapTest; - import org.robotlegs.v2.extensions.viewHookMap.ViewHookMapTest; + import robotlegs.bender.core.impl.TypeFilterTest; + import robotlegs.bender.core.impl.TypeFilterUsageTest; + import robotlegs.bender.core.impl.TypeMatcherTest; + import robotlegs.bender.core.utilities.RunningInFlexUtilFunctionTest; + import robotlegs.bender.extensions.eventMap.api.IEventMapTest; + import robotlegs.bender.extensions.eventMap.impl.EventMapTest; + import robotlegs.bender.extensions.guardsAndHooks.impl.GuardsProcessorTest; + import robotlegs.bender.extensions.guardsAndHooks.impl.HooksProcessorTest; + import robotlegs.bender.extensions.mediatorMap.configs.RL2MediatorsConfigTest; + import robotlegs.bender.extensions.mediatorMap.impl.MediatorTest; + import robotlegs.bender.extensions.mediatorMap.MediatorMapExtensionTest; + import robotlegs.bender.extensions.mediatorMap.MediatorMapTest; + import robotlegs.bender.extensions.mediatorMap.MediatorMapV1Test; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTrigger_strategiesTest; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTriggerTest; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTrigger_strategiesTest; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTriggerTest; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL1MediatorTriggerTest; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL2MediatorTrigger_strategiesTest; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL2MediatorTriggerTest; + import robotlegs.bender.extensions.viewHookMap.HookMapTest; + import robotlegs.bender.extensions.viewHookMap.ViewHookMapTest; public class AllTests extends TestSuite { public function AllTests() { - addTest(new org.robotlegs.v2.core.impl.TypeFilterTest()); - addTest(new org.robotlegs.v2.core.impl.TypeFilterUsageTest()); - addTest(new org.robotlegs.v2.core.impl.TypeMatcherTest()); - addTest(new org.robotlegs.v2.core.utilities.RunningInFlexUtilFunctionTest()); - addTest(new org.robotlegs.v2.extensions.eventMap.api.IEventMapTest()); - addTest(new org.robotlegs.v2.extensions.eventMap.impl.EventMapTest()); - addTest(new org.robotlegs.v2.extensions.guardsAndHooks.impl.GuardsProcessorTest()); - addTest(new org.robotlegs.v2.extensions.guardsAndHooks.impl.HooksProcessorTest()); - addTest(new org.robotlegs.v2.extensions.mediatorMap.configs.RL2MediatorsConfigTest()); - addTest(new org.robotlegs.v2.extensions.mediatorMap.impl.MediatorTest()); - addTest(new org.robotlegs.v2.extensions.mediatorMap.MediatorMapExtensionTest()); - addTest(new org.robotlegs.v2.extensions.mediatorMap.MediatorMapTest()); - addTest(new org.robotlegs.v2.extensions.mediatorMap.MediatorMapV1Test()); - addTest(new org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTrigger_strategiesTest()); - addTest(new org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTriggerTest()); - addTest(new org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTrigger_strategiesTest()); - addTest(new org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTriggerTest()); - addTest(new org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL1MediatorTriggerTest()); - addTest(new org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL2MediatorTrigger_strategiesTest()); - addTest(new org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL2MediatorTriggerTest()); - addTest(new org.robotlegs.v2.extensions.viewHookMap.HookMapTest()); - addTest(new org.robotlegs.v2.extensions.viewHookMap.ViewHookMapTest()); + addTest(new robotlegs.bender.core.impl.TypeFilterTest()); + addTest(new robotlegs.bender.core.impl.TypeFilterUsageTest()); + addTest(new robotlegs.bender.core.impl.TypeMatcherTest()); + addTest(new robotlegs.bender.core.utilities.RunningInFlexUtilFunctionTest()); + addTest(new robotlegs.bender.extensions.eventMap.api.IEventMapTest()); + addTest(new robotlegs.bender.extensions.eventMap.impl.EventMapTest()); + addTest(new robotlegs.bender.extensions.guardsAndHooks.impl.GuardsProcessorTest()); + addTest(new robotlegs.bender.extensions.guardsAndHooks.impl.HooksProcessorTest()); + addTest(new robotlegs.bender.extensions.mediatorMap.configs.RL2MediatorsConfigTest()); + addTest(new robotlegs.bender.extensions.mediatorMap.impl.MediatorTest()); + addTest(new robotlegs.bender.extensions.mediatorMap.MediatorMapExtensionTest()); + addTest(new robotlegs.bender.extensions.mediatorMap.MediatorMapTest()); + addTest(new robotlegs.bender.extensions.mediatorMap.MediatorMapV1Test()); + addTest(new robotlegs.bender.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTrigger_strategiesTest()); + addTest(new robotlegs.bender.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTriggerTest()); + addTest(new robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTrigger_strategiesTest()); + addTest(new robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTriggerTest()); + addTest(new robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL1MediatorTriggerTest()); + addTest(new robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL2MediatorTrigger_strategiesTest()); + addTest(new robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL2MediatorTriggerTest()); + addTest(new robotlegs.bender.extensions.viewHookMap.HookMapTest()); + addTest(new robotlegs.bender.extensions.viewHookMap.ViewHookMapTest()); } } } diff --git a/test/org/robotlegs/v2/core/impl/ConfigManagerTests.as b/test/robotlegs/bender/core/impl/ConfigManagerTests.as similarity index 94% rename from test/org/robotlegs/v2/core/impl/ConfigManagerTests.as rename to test/robotlegs/bender/core/impl/ConfigManagerTests.as index fdbbc3a8..1c0038fc 100644 --- a/test/org/robotlegs/v2/core/impl/ConfigManagerTests.as +++ b/test/robotlegs/bender/core/impl/ConfigManagerTests.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import flash.display.Sprite; import org.hamcrest.assertThat; import org.hamcrest.object.equalTo; import org.hamcrest.object.isFalse; import org.hamcrest.object.isTrue; - import org.robotlegs.v2.core.api.IContext; + import robotlegs.bender.core.api.IContext; import org.swiftsuspenders.Injector; public class ConfigManagerTests @@ -137,9 +137,9 @@ package org.robotlegs.v2.core.impl } import flash.display.Sprite; -import org.robotlegs.v2.core.api.IContext; -import org.robotlegs.v2.core.api.IContextConfig; -import org.robotlegs.v2.core.impl.support.NullContext; +import robotlegs.bender.core.api.IContext; +import robotlegs.bender.core.api.IContextConfig; +import robotlegs.bender.core.impl.support.NullContext; import org.swiftsuspenders.Injector; class SupportContext extends NullContext diff --git a/test/org/robotlegs/v2/core/impl/ContextBuilderTests.as b/test/robotlegs/bender/core/impl/ContextBuilderTests.as similarity index 92% rename from test/org/robotlegs/v2/core/impl/ContextBuilderTests.as rename to test/robotlegs/bender/core/impl/ContextBuilderTests.as index 109fdc32..c4bfbd35 100644 --- a/test/org/robotlegs/v2/core/impl/ContextBuilderTests.as +++ b/test/robotlegs/bender/core/impl/ContextBuilderTests.as @@ -1,19 +1,19 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import flash.display.DisplayObjectContainer; import flash.display.Sprite; import flash.events.EventDispatcher; import flash.events.IEventDispatcher; import org.flexunit.asserts.assertEquals; - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextBuilder; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextBuilder; import org.swiftsuspenders.Injector; public class ContextBuilderTests diff --git a/test/org/robotlegs/v2/core/impl/ContextLoggerTests.as b/test/robotlegs/bender/core/impl/ContextLoggerTests.as similarity index 88% rename from test/org/robotlegs/v2/core/impl/ContextLoggerTests.as rename to test/robotlegs/bender/core/impl/ContextLoggerTests.as index c6414804..f93c1bc2 100644 --- a/test/org/robotlegs/v2/core/impl/ContextLoggerTests.as +++ b/test/robotlegs/bender/core/impl/ContextLoggerTests.as @@ -1,19 +1,19 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import org.hamcrest.assertThat; import org.hamcrest.object.equalTo; - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextLogTarget; - import org.robotlegs.v2.core.api.IContextLogger; - import org.robotlegs.v2.core.impl.support.CallbackLogTarget; - import org.robotlegs.v2.core.impl.support.NullContext; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextLogTarget; + import robotlegs.bender.core.api.IContextLogger; + import robotlegs.bender.core.impl.support.CallbackLogTarget; + import robotlegs.bender.core.impl.support.NullContext; public class ContextLoggerTests { @@ -107,7 +107,7 @@ package org.robotlegs.v2.core.impl } } -import org.robotlegs.v2.core.api.IContext; +import robotlegs.bender.core.api.IContext; class LogInfo { diff --git a/test/org/robotlegs/v2/core/impl/ContextTests.as b/test/robotlegs/bender/core/impl/ContextTests.as similarity index 97% rename from test/org/robotlegs/v2/core/impl/ContextTests.as rename to test/robotlegs/bender/core/impl/ContextTests.as index cb509e00..22283c57 100644 --- a/test/org/robotlegs/v2/core/impl/ContextTests.as +++ b/test/robotlegs/bender/core/impl/ContextTests.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import flash.display.DisplayObjectContainer; import flash.events.EventDispatcher; @@ -15,7 +15,7 @@ package org.robotlegs.v2.core.impl import org.fluint.uiImpersonation.UIImpersonator; import org.hamcrest.object.notNullValue; import org.hamcrest.object.strictlyEqualTo; - import org.robotlegs.v2.core.api.IContext; + import robotlegs.bender.core.api.IContext; import org.swiftsuspenders.Injector; public class ContextTests diff --git a/test/org/robotlegs/v2/core/impl/ContextViewRegistryTests.as b/test/robotlegs/bender/core/impl/ContextViewRegistryTests.as similarity index 90% rename from test/org/robotlegs/v2/core/impl/ContextViewRegistryTests.as rename to test/robotlegs/bender/core/impl/ContextViewRegistryTests.as index 7cd48e84..7338f7fc 100644 --- a/test/org/robotlegs/v2/core/impl/ContextViewRegistryTests.as +++ b/test/robotlegs/bender/core/impl/ContextViewRegistryTests.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import org.flexunit.assertThat; import org.hamcrest.object.isTrue; diff --git a/test/org/robotlegs/v2/core/impl/ExtensionManagerTests.as b/test/robotlegs/bender/core/impl/ExtensionManagerTests.as similarity index 96% rename from test/org/robotlegs/v2/core/impl/ExtensionManagerTests.as rename to test/robotlegs/bender/core/impl/ExtensionManagerTests.as index 1b040c78..8ec05640 100644 --- a/test/org/robotlegs/v2/core/impl/ExtensionManagerTests.as +++ b/test/robotlegs/bender/core/impl/ExtensionManagerTests.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import org.hamcrest.assertThat; import org.hamcrest.collection.array; import org.hamcrest.object.equalTo; import org.hamcrest.object.isFalse; import org.hamcrest.object.isTrue; - import org.robotlegs.v2.core.api.IContext; + import robotlegs.bender.core.api.IContext; import org.swiftsuspenders.Injector; public class ExtensionManagerTests @@ -265,10 +265,10 @@ package org.robotlegs.v2.core.impl } } -import org.robotlegs.v2.core.api.IContext; -import org.robotlegs.v2.core.api.IContextExtension; -import org.robotlegs.v2.core.api.IContextPreProcessor; -import org.robotlegs.v2.core.impl.support.NullContext; +import robotlegs.bender.core.api.IContext; +import robotlegs.bender.core.api.IContextExtension; +import robotlegs.bender.core.api.IContextPreProcessor; +import robotlegs.bender.core.impl.support.NullContext; import org.swiftsuspenders.Injector; class SupportContext extends NullContext diff --git a/test/org/robotlegs/v2/core/impl/PackageFilter_descriptorTest.as b/test/robotlegs/bender/core/impl/PackageFilter_descriptorTest.as similarity index 90% rename from test/org/robotlegs/v2/core/impl/PackageFilter_descriptorTest.as rename to test/robotlegs/bender/core/impl/PackageFilter_descriptorTest.as index b117e2d6..9b1d4f30 100644 --- a/test/org/robotlegs/v2/core/impl/PackageFilter_descriptorTest.as +++ b/test/robotlegs/bender/core/impl/PackageFilter_descriptorTest.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import org.flexunit.asserts.*; - import org.robotlegs.v2.core.impl.PackageFilter; + import robotlegs.bender.core.impl.PackageFilter; public class PackageFilter_descriptorTest { @@ -19,7 +19,7 @@ package org.robotlegs.v2.core.impl private const EMPTY_VECTOR:Vector. = new []; private const NONE_OF:Vector. = new ["f.g.h", "c.d.e"]; - + [Test] public function can_be_instantiated():void { @@ -32,7 +32,7 @@ package org.robotlegs.v2.core.impl { assertTrue("Failing test", true); } - + [Test] public function descriptor_produced_as_alphabetised_readable_list():void { @@ -40,6 +40,6 @@ package org.robotlegs.v2.core.impl var expected:String = "require: k.j, any of: a.b.c,b.c.d, none of: c.d.e,f.g.h"; assertEquals(expected, filter.descriptor); } - + } } \ No newline at end of file diff --git a/test/org/robotlegs/v2/core/impl/PackageMatchingTest.as b/test/robotlegs/bender/core/impl/PackageMatchingTest.as similarity index 87% rename from test/org/robotlegs/v2/core/impl/PackageMatchingTest.as rename to test/robotlegs/bender/core/impl/PackageMatchingTest.as index 5398b202..d32969a2 100644 --- a/test/org/robotlegs/v2/core/impl/PackageMatchingTest.as +++ b/test/robotlegs/bender/core/impl/PackageMatchingTest.as @@ -1,30 +1,30 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import org.flexunit.asserts.*; - import org.robotlegs.v2.core.impl.support.a.PackagedTypeA; - import org.robotlegs.v2.core.impl.support.b.PackagedTypeB; - import org.robotlegs.v2.core.impl.support.c.PackagedTypeC; - import org.robotlegs.v2.core.api.ITypeFilter; - import org.robotlegs.v2.core.api.ITypeMatcher; + import robotlegs.bender.core.impl.support.a.PackagedTypeA; + import robotlegs.bender.core.impl.support.b.PackagedTypeB; + import robotlegs.bender.core.impl.support.c.PackagedTypeC; + import robotlegs.bender.core.api.ITypeFilter; + import robotlegs.bender.core.api.ITypeMatcher; - public class PackageMatchingTest + public class PackageMatchingTest { private var instance:PackageMatcher; - - private const PACKAGE_A:String = "org.robotlegs.v2.core.impl.support.a"; - - private const PACKAGE_B:String = "org.robotlegs.v2.core.impl.support.b"; - private const PACKAGE_C:String = "org.robotlegs.v2.core.impl.support.c"; - - private const PARENT_PACKAGE:String = "org.robotlegs.v2.core.impl.support"; + private const PACKAGE_A:String = "robotlegs.bender.core.impl.support.a"; + + private const PACKAGE_B:String = "robotlegs.bender.core.impl.support.b"; + + private const PACKAGE_C:String = "robotlegs.bender.core.impl.support.c"; + + private const PARENT_PACKAGE:String = "robotlegs.bender.core.impl.support"; private const REQUIRE:String = PARENT_PACKAGE; @@ -39,9 +39,9 @@ package org.robotlegs.v2.core.impl private const NONE_OF:Vector. = new [PACKAGE_C]; private const NONE_OF_2:Vector. = new [PACKAGE_B]; - + private const ITEM_A:PackagedTypeA = new PackagedTypeA(); - + private const ITEM_B:PackagedTypeB = new PackagedTypeB(); private const ITEM_C:PackagedTypeC = new PackagedTypeC(); @@ -91,7 +91,7 @@ package org.robotlegs.v2.core.impl const typeFilter:ITypeFilter = instance.createTypeFilter(); assertTrue(typeFilter.matches(ITEM_B)); } - + [Test] public function doesnt_match_based_on_noneOf():void { @@ -99,7 +99,7 @@ package org.robotlegs.v2.core.impl const typeFilter:ITypeFilter = instance.createTypeFilter(); assertFalse(typeFilter.matches(ITEM_C)); } - + [Test] public function matches_based_on_noneOf_twice():void { @@ -109,7 +109,7 @@ package org.robotlegs.v2.core.impl assertFalse(typeFilter.matches(ITEM_B)); assertFalse(typeFilter.matches(ITEM_C)); } - + [Test] public function matches_based_on_anyOf_twice():void { @@ -136,14 +136,14 @@ package org.robotlegs.v2.core.impl const typeFilter:ITypeFilter = instance.createTypeFilter(); assertTrue(typeFilter.matches(ITEM_B)); } - + [Test] public function doesnt_match_subpackage_c_based_on_required_and_noneOf():void { instance.require(REQUIRE).noneOf(NONE_OF); const typeFilter:ITypeFilter = instance.createTypeFilter(); assertFalse(typeFilter.matches(ITEM_C)); - } + } [Test(expects='flash.errors.IllegalOperationError')] public function throws_IllegalOperationError_if_require_changed_after_filter_requested():void @@ -192,7 +192,7 @@ package org.robotlegs.v2.core.impl instance.lock(); instance.noneOf(NONE_OF); } - + [Test(expects='flash.errors.IllegalOperationError')] public function throws_IllegalOperationError_if_require_called_twice():void { @@ -200,7 +200,7 @@ package org.robotlegs.v2.core.impl instance.require(REQUIRE_2); } - [Test(expects='org.robotlegs.v2.core.impl.TypeMatcherError')] + [Test(expects='robotlegs.bender.core.impl.TypeMatcherError')] public function throws_TypeMatcherError_if_conditions_empty_and_filter_requested():void { var emptyInstance:PackageMatcher = new PackageMatcher(); @@ -208,7 +208,7 @@ package org.robotlegs.v2.core.impl emptyInstance.createTypeFilter(); } - [Test(expects='org.robotlegs.v2.core.impl.TypeMatcherError')] + [Test(expects='robotlegs.bender.core.impl.TypeMatcherError')] public function throws_TypeMatcherError_if_empty_and_filter_requested():void { var emptyInstance:PackageMatcher = new PackageMatcher(); diff --git a/test/org/robotlegs/v2/core/impl/TypeFilterTest.as b/test/robotlegs/bender/core/impl/TypeFilterTest.as similarity index 93% rename from test/org/robotlegs/v2/core/impl/TypeFilterTest.as rename to test/robotlegs/bender/core/impl/TypeFilterTest.as index d4ae124c..a18cef68 100644 --- a/test/org/robotlegs/v2/core/impl/TypeFilterTest.as +++ b/test/robotlegs/bender/core/impl/TypeFilterTest.as @@ -1,17 +1,17 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import flash.display.Sprite; import flash.events.IEventDispatcher; import org.flexunit.asserts.*; - import org.robotlegs.v2.core.api.ITypeFilter; - import org.robotlegs.v2.core.impl.support.*; + import robotlegs.bender.core.api.ITypeFilter; + import robotlegs.bender.core.impl.support.*; public class TypeFilterTest { diff --git a/test/org/robotlegs/v2/core/impl/TypeFilterUsageTest.as b/test/robotlegs/bender/core/impl/TypeFilterUsageTest.as similarity index 93% rename from test/org/robotlegs/v2/core/impl/TypeFilterUsageTest.as rename to test/robotlegs/bender/core/impl/TypeFilterUsageTest.as index 20f1a2ad..34d8a363 100644 --- a/test/org/robotlegs/v2/core/impl/TypeFilterUsageTest.as +++ b/test/robotlegs/bender/core/impl/TypeFilterUsageTest.as @@ -1,15 +1,15 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import org.flexunit.asserts.*; - import org.robotlegs.v2.core.api.ITypeFilter; - import org.robotlegs.v2.core.impl.support.*; + import robotlegs.bender.core.api.ITypeFilter; + import robotlegs.bender.core.impl.support.*; public class TypeFilterUsageTest { diff --git a/test/org/robotlegs/v2/core/impl/TypeMatcherTest.as b/test/robotlegs/bender/core/impl/TypeMatcherTest.as similarity index 95% rename from test/org/robotlegs/v2/core/impl/TypeMatcherTest.as rename to test/robotlegs/bender/core/impl/TypeMatcherTest.as index 1045831d..cd28985f 100644 --- a/test/org/robotlegs/v2/core/impl/TypeMatcherTest.as +++ b/test/robotlegs/bender/core/impl/TypeMatcherTest.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl +package robotlegs.bender.core.impl { import flash.display.DisplayObject; import flash.display.MovieClip; @@ -15,9 +15,9 @@ package org.robotlegs.v2.core.impl import flash.utils.ByteArray; import flash.utils.IDataInput; import org.flexunit.asserts.*; - import org.robotlegs.v2.core.api.ITypeFilter; - import org.robotlegs.v2.core.api.ITypeMatcher; - import org.robotlegs.v2.core.impl.support.*; + import robotlegs.bender.core.api.ITypeFilter; + import robotlegs.bender.core.api.ITypeMatcher; + import robotlegs.bender.core.impl.support.*; public class TypeMatcherTest { @@ -200,7 +200,7 @@ package org.robotlegs.v2.core.impl instance.noneOf(ALL_OF); } - [Test(expects='org.robotlegs.v2.core.impl.TypeMatcherError')] + [Test(expects='robotlegs.bender.core.impl.TypeMatcherError')] public function throws_TypeMatcherError_if_conditions_empty_and_filter_requested():void { var emptyInstance:TypeMatcher = new TypeMatcher(); @@ -209,7 +209,7 @@ package org.robotlegs.v2.core.impl emptyInstance.createTypeFilter(); } - [Test(expects='org.robotlegs.v2.core.impl.TypeMatcherError')] + [Test(expects='robotlegs.bender.core.impl.TypeMatcherError')] public function throws_TypeMatcherError_if_empty_and_filter_requested():void { var emptyInstance:TypeMatcher = new TypeMatcher(); diff --git a/test/org/robotlegs/v2/core/impl/support/CallbackLogTarget.as b/test/robotlegs/bender/core/impl/support/CallbackLogTarget.as similarity index 84% rename from test/org/robotlegs/v2/core/impl/support/CallbackLogTarget.as rename to test/robotlegs/bender/core/impl/support/CallbackLogTarget.as index 21cdc52a..d370ba38 100644 --- a/test/org/robotlegs/v2/core/impl/support/CallbackLogTarget.as +++ b/test/robotlegs/bender/core/impl/support/CallbackLogTarget.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support +package robotlegs.bender.core.impl.support { - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextLogTarget; + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextLogTarget; public class CallbackLogTarget implements IContextLogTarget { diff --git a/test/org/robotlegs/v2/core/impl/support/IType1.as b/test/robotlegs/bender/core/impl/support/IType1.as similarity index 83% rename from test/org/robotlegs/v2/core/impl/support/IType1.as rename to test/robotlegs/bender/core/impl/support/IType1.as index cf212b58..2b48cb68 100644 --- a/test/org/robotlegs/v2/core/impl/support/IType1.as +++ b/test/robotlegs/bender/core/impl/support/IType1.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support +package robotlegs.bender.core.impl.support { public interface IType1 diff --git a/test/org/robotlegs/v2/core/impl/support/IType2.as b/test/robotlegs/bender/core/impl/support/IType2.as similarity index 83% rename from test/org/robotlegs/v2/core/impl/support/IType2.as rename to test/robotlegs/bender/core/impl/support/IType2.as index 7dcfcb1c..4b5cad93 100644 --- a/test/org/robotlegs/v2/core/impl/support/IType2.as +++ b/test/robotlegs/bender/core/impl/support/IType2.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support +package robotlegs.bender.core.impl.support { public interface IType2 diff --git a/test/org/robotlegs/v2/core/impl/support/ITypeX.as b/test/robotlegs/bender/core/impl/support/ITypeX.as similarity index 83% rename from test/org/robotlegs/v2/core/impl/support/ITypeX.as rename to test/robotlegs/bender/core/impl/support/ITypeX.as index 3a208f40..3c401629 100644 --- a/test/org/robotlegs/v2/core/impl/support/ITypeX.as +++ b/test/robotlegs/bender/core/impl/support/ITypeX.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support +package robotlegs.bender.core.impl.support { public interface ITypeX diff --git a/test/org/robotlegs/v2/core/impl/support/ITypeY.as b/test/robotlegs/bender/core/impl/support/ITypeY.as similarity index 83% rename from test/org/robotlegs/v2/core/impl/support/ITypeY.as rename to test/robotlegs/bender/core/impl/support/ITypeY.as index 278d5196..f4ada5ec 100644 --- a/test/org/robotlegs/v2/core/impl/support/ITypeY.as +++ b/test/robotlegs/bender/core/impl/support/ITypeY.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support +package robotlegs.bender.core.impl.support { public interface ITypeY diff --git a/test/org/robotlegs/v2/core/impl/support/NullContext.as b/test/robotlegs/bender/core/impl/support/NullContext.as similarity index 90% rename from test/org/robotlegs/v2/core/impl/support/NullContext.as rename to test/robotlegs/bender/core/impl/support/NullContext.as index 7bf6cd3e..7731b2a8 100644 --- a/test/org/robotlegs/v2/core/impl/support/NullContext.as +++ b/test/robotlegs/bender/core/impl/support/NullContext.as @@ -1,19 +1,19 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support +package robotlegs.bender.core.impl.support { import flash.display.DisplayObjectContainer; import flash.events.IEventDispatcher; import flash.system.ApplicationDomain; - - import org.robotlegs.v2.core.api.IContext; - import org.robotlegs.v2.core.api.IContextLogger; - import org.robotlegs.v2.core.impl.ContextLogger; + + import robotlegs.bender.core.api.IContext; + import robotlegs.bender.core.api.IContextLogger; + import robotlegs.bender.core.impl.ContextLogger; import org.swiftsuspenders.Injector; public class NullContext implements IContext diff --git a/test/org/robotlegs/v2/core/impl/support/TreeSpriteSupport.as b/test/robotlegs/bender/core/impl/support/TreeSpriteSupport.as similarity index 92% rename from test/org/robotlegs/v2/core/impl/support/TreeSpriteSupport.as rename to test/robotlegs/bender/core/impl/support/TreeSpriteSupport.as index 68bd2a73..d4484c69 100644 --- a/test/org/robotlegs/v2/core/impl/support/TreeSpriteSupport.as +++ b/test/robotlegs/bender/core/impl/support/TreeSpriteSupport.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support +package robotlegs.bender.core.impl.support { import flash.display.Sprite; diff --git a/test/org/robotlegs/v2/core/impl/support/TypeA.as b/test/robotlegs/bender/core/impl/support/TypeA.as similarity index 84% rename from test/org/robotlegs/v2/core/impl/support/TypeA.as rename to test/robotlegs/bender/core/impl/support/TypeA.as index 2861038d..8f1b9fb1 100644 --- a/test/org/robotlegs/v2/core/impl/support/TypeA.as +++ b/test/robotlegs/bender/core/impl/support/TypeA.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support +package robotlegs.bender.core.impl.support { public class TypeA extends Object diff --git a/test/org/robotlegs/v2/core/impl/support/TypeA1.as b/test/robotlegs/bender/core/impl/support/TypeA1.as similarity index 85% rename from test/org/robotlegs/v2/core/impl/support/TypeA1.as rename to test/robotlegs/bender/core/impl/support/TypeA1.as index 3b373208..eb872e06 100644 --- a/test/org/robotlegs/v2/core/impl/support/TypeA1.as +++ b/test/robotlegs/bender/core/impl/support/TypeA1.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support +package robotlegs.bender.core.impl.support { public class TypeA1 extends TypeA implements IType1 diff --git a/test/org/robotlegs/v2/core/impl/support/TypeA12.as b/test/robotlegs/bender/core/impl/support/TypeA12.as similarity index 85% rename from test/org/robotlegs/v2/core/impl/support/TypeA12.as rename to test/robotlegs/bender/core/impl/support/TypeA12.as index 3656f26a..7c73e8c2 100644 --- a/test/org/robotlegs/v2/core/impl/support/TypeA12.as +++ b/test/robotlegs/bender/core/impl/support/TypeA12.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support +package robotlegs.bender.core.impl.support { public class TypeA12 extends TypeA implements IType1, IType2 diff --git a/test/org/robotlegs/v2/core/impl/support/TypeB.as b/test/robotlegs/bender/core/impl/support/TypeB.as similarity index 84% rename from test/org/robotlegs/v2/core/impl/support/TypeB.as rename to test/robotlegs/bender/core/impl/support/TypeB.as index a8a6c8ec..ad90a047 100644 --- a/test/org/robotlegs/v2/core/impl/support/TypeB.as +++ b/test/robotlegs/bender/core/impl/support/TypeB.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support +package robotlegs.bender.core.impl.support { public class TypeB extends Object diff --git a/test/org/robotlegs/v2/core/impl/support/TypeB12.as b/test/robotlegs/bender/core/impl/support/TypeB12.as similarity index 85% rename from test/org/robotlegs/v2/core/impl/support/TypeB12.as rename to test/robotlegs/bender/core/impl/support/TypeB12.as index ba0ccf4e..d0468ae5 100644 --- a/test/org/robotlegs/v2/core/impl/support/TypeB12.as +++ b/test/robotlegs/bender/core/impl/support/TypeB12.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support +package robotlegs.bender.core.impl.support { public class TypeB12 extends TypeB implements IType1, IType2 diff --git a/test/org/robotlegs/v2/core/impl/support/TypeX1.as b/test/robotlegs/bender/core/impl/support/TypeX1.as similarity index 85% rename from test/org/robotlegs/v2/core/impl/support/TypeX1.as rename to test/robotlegs/bender/core/impl/support/TypeX1.as index 1d26571b..fabf3e8b 100644 --- a/test/org/robotlegs/v2/core/impl/support/TypeX1.as +++ b/test/robotlegs/bender/core/impl/support/TypeX1.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support +package robotlegs.bender.core.impl.support { public class TypeX1 implements ITypeX, IType1 diff --git a/test/org/robotlegs/v2/core/impl/support/TypeY2.as b/test/robotlegs/bender/core/impl/support/TypeY2.as similarity index 85% rename from test/org/robotlegs/v2/core/impl/support/TypeY2.as rename to test/robotlegs/bender/core/impl/support/TypeY2.as index 57559e7b..ac8553c2 100644 --- a/test/org/robotlegs/v2/core/impl/support/TypeY2.as +++ b/test/robotlegs/bender/core/impl/support/TypeY2.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support +package robotlegs.bender.core.impl.support { public class TypeY2 implements ITypeY, IType2 diff --git a/test/org/robotlegs/v2/core/impl/support/a/PackagedTypeA.as b/test/robotlegs/bender/core/impl/support/a/PackagedTypeA.as similarity index 84% rename from test/org/robotlegs/v2/core/impl/support/a/PackagedTypeA.as rename to test/robotlegs/bender/core/impl/support/a/PackagedTypeA.as index cffd2abd..98dbed53 100644 --- a/test/org/robotlegs/v2/core/impl/support/a/PackagedTypeA.as +++ b/test/robotlegs/bender/core/impl/support/a/PackagedTypeA.as @@ -1,21 +1,21 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support.a +package robotlegs.bender.core.impl.support.a { public class PackagedTypeA extends Object { - + public function PackagedTypeA() { super(); } - + } } diff --git a/test/org/robotlegs/v2/core/impl/support/b/PackagedTypeB.as b/test/robotlegs/bender/core/impl/support/b/PackagedTypeB.as similarity index 84% rename from test/org/robotlegs/v2/core/impl/support/b/PackagedTypeB.as rename to test/robotlegs/bender/core/impl/support/b/PackagedTypeB.as index dd3f7128..a4248bff 100644 --- a/test/org/robotlegs/v2/core/impl/support/b/PackagedTypeB.as +++ b/test/robotlegs/bender/core/impl/support/b/PackagedTypeB.as @@ -1,21 +1,21 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support.b +package robotlegs.bender.core.impl.support.b { public class PackagedTypeB extends Object { - + public function PackagedTypeB() { super(); } - + } } diff --git a/test/org/robotlegs/v2/core/impl/support/c/PackagedTypeC.as b/test/robotlegs/bender/core/impl/support/c/PackagedTypeC.as similarity index 84% rename from test/org/robotlegs/v2/core/impl/support/c/PackagedTypeC.as rename to test/robotlegs/bender/core/impl/support/c/PackagedTypeC.as index 8739637d..fdb43774 100644 --- a/test/org/robotlegs/v2/core/impl/support/c/PackagedTypeC.as +++ b/test/robotlegs/bender/core/impl/support/c/PackagedTypeC.as @@ -1,21 +1,21 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.impl.support.c +package robotlegs.bender.core.impl.support.c { public class PackagedTypeC extends Object { - + public function PackagedTypeC() { super(); } - + } } \ No newline at end of file diff --git a/test/org/robotlegs/v2/core/utilities/RunningInFlexUtilFunctionTest.as b/test/robotlegs/bender/core/utilities/RunningInFlexUtilFunctionTest.as similarity index 80% rename from test/org/robotlegs/v2/core/utilities/RunningInFlexUtilFunctionTest.as rename to test/robotlegs/bender/core/utilities/RunningInFlexUtilFunctionTest.as index 8a673690..791b6623 100644 --- a/test/org/robotlegs/v2/core/utilities/RunningInFlexUtilFunctionTest.as +++ b/test/robotlegs/bender/core/utilities/RunningInFlexUtilFunctionTest.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.core.utilities +package robotlegs.bender.core.utilities { import flash.display.Sprite; import flash.events.IEventDispatcher; import org.flexunit.asserts.*; - import org.robotlegs.v2.core.api.ITypeFilter; - import org.robotlegs.v2.core.impl.support.*; - import org.robotlegs.v2.core.utilities.checkUIComponentAvailable; + import robotlegs.bender.core.api.ITypeFilter; + import robotlegs.bender.core.impl.support.*; + import robotlegs.bender.core.utilities.checkUIComponentAvailable; //import mx.core.UIComponent; public class RunningInFlexUtilFunctionTest @@ -20,13 +20,13 @@ package org.robotlegs.v2.core.utilities // without this, we can't guarantee its availability // if flex isn't present then we'll get a compiler error not a test fail //private const uiComponentImporter:UIComponent = new UIComponent(); - + [Test] public function test_failure_seen():void { assertTrue("Failing test", true); } - + [Test] public function returns_true_when_UIComponent_present():void { diff --git a/test/org/robotlegs/v2/experimental/CommandFlowMappingTest.as b/test/robotlegs/bender/experimental/CommandFlowMappingTest.as similarity index 84% rename from test/org/robotlegs/v2/experimental/CommandFlowMappingTest.as rename to test/robotlegs/bender/experimental/CommandFlowMappingTest.as index d1a7945f..a93723b2 100644 --- a/test/org/robotlegs/v2/experimental/CommandFlowMappingTest.as +++ b/test/robotlegs/bender/experimental/CommandFlowMappingTest.as @@ -1,25 +1,25 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental +package robotlegs.bender.experimental { import org.flexunit.asserts.*; - import org.robotlegs.v2.experimental.CommandFlowStart; - import org.robotlegs.v2.experimental.ICommandFlowRule; + import robotlegs.bender.experimental.CommandFlowStart; + import robotlegs.bender.experimental.ICommandFlowRule; import flash.events.IEventDispatcher; import flash.events.EventDispatcher; import org.swiftsuspenders.Injector; - public class CommandFlowMappingTest + public class CommandFlowMappingTest { private var instance:CommandFlowMapping; - + private const FROM:Vector. = new [CommandFlowStart]; - + private var eventDispatcher:IEventDispatcher; [Before] @@ -46,15 +46,15 @@ package org.robotlegs.v2.experimental { assertTrue("Failing test", true); } - + [Test] public function test_get_from():void { assertEquals("Get from", FROM, instance.from); } - + protected function callback(rule:ICommandFlowRule):void { - + } } diff --git a/test/org/robotlegs/v2/experimental/CommandFlowRuleTest.as b/test/robotlegs/bender/experimental/CommandFlowRuleTest.as similarity index 96% rename from test/org/robotlegs/v2/experimental/CommandFlowRuleTest.as rename to test/robotlegs/bender/experimental/CommandFlowRuleTest.as index 1cf50e6e..a086ed87 100644 --- a/test/org/robotlegs/v2/experimental/CommandFlowRuleTest.as +++ b/test/robotlegs/bender/experimental/CommandFlowRuleTest.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental +package robotlegs.bender.experimental { import org.flexunit.asserts.*; import org.flexunit.assertThat; @@ -14,7 +14,7 @@ package org.robotlegs.v2.experimental import org.flexunit.asserts.assertEqualsVectorsIgnoringOrder; import org.swiftsuspenders.Injector; - public class CommandFlowRuleTest + public class CommandFlowRuleTest { private var instance:CommandFlowRule; @@ -44,35 +44,35 @@ package org.robotlegs.v2.experimental { assertTrue("Failing test", true); } - + [Test] public function execute_adds_to_commandClasses_list():void { instance.execute(SomeCommand); assertThat(instance.commandClasses, array(SomeCommand)); } - + [Test] public function executeAll_adds_all_to_commandClasses_list():void { instance.executeAll(SomeCommand, AnotherCommand); assertThat(instance.commandClasses, array(SomeCommand, AnotherCommand)); } - + [Test] public function requireOnlyRule_returns_true_if_passed_required_event():void { instance = new CommandFlowRequireOnlyRule(Event.COMPLETE, injector); assertTrue(instance.applyEvent(new Event(Event.COMPLETE))); } - + [Test] public function requireOnlyRule_returns_false_if_passed_unrequired_event():void { instance = new CommandFlowRequireOnlyRule(Event.COMPLETE, injector); assertFalse(instance.applyEvent(new Event(Event.CHANGE))); } - + [Test] public function requireOnlyRule_returns_list_of_events_received_correctly():void { @@ -81,28 +81,28 @@ package org.robotlegs.v2.experimental instance.applyEvent(evt); assertThat(instance.receivedEvents, array(evt)); } - + [Test] public function requireAnyRule_returns_true_if_passed_one_required_event():void { instance = new CommandFlowRequireAnyRule(new [Event.COMPLETE, Event.CHANGE], injector); assertTrue(instance.applyEvent(new Event(Event.COMPLETE))); } - + [Test] public function requireAnyRule_returns_true_if_passed_different_required_event():void { instance = new CommandFlowRequireAnyRule(new [Event.COMPLETE, Event.CHANGE], injector); assertTrue(instance.applyEvent(new Event(Event.CHANGE))); } - + [Test] public function requireAnyRule_returns_false_if_passed_unrequired_event():void { instance = new CommandFlowRequireAnyRule(new [Event.COMPLETE, Event.CHANGE], injector); assertFalse(instance.applyEvent(new Event(Event.CANCEL))); } - + [Test] public function requireAnyRule_returns_list_of_events_received_correctly():void { @@ -119,7 +119,7 @@ package org.robotlegs.v2.experimental assertFalse(instance.applyEvent(new Event(Event.CHANGE))); assertTrue(instance.applyEvent(new Event(Event.COMPLETE))); } - + [Test] public function requireAllRule_returns_true_only_once_passed_final_required_event_diff_circumstances():void { @@ -128,35 +128,35 @@ package org.robotlegs.v2.experimental assertFalse(instance.applyEvent(new Event(Event.COMPLETE))); assertFalse(instance.applyEvent(new Event(Event.CANCEL))); assertTrue(instance.applyEvent(new Event(Event.CHANGE))); - } - + } + [Test] public function requireAllRule_returns_last_relevant_given_events():void { instance = new CommandFlowRequireAllRule(new [Event.COMPLETE, Event.CHANGE], injector); - + var evt1:Event = new Event(Event.COMPLETE); var evt2:Event = new Event(Event.COMPLETE); var evt3:Event = new Event(Event.CANCEL); var evt4:Event = new Event(Event.CHANGE); - + instance.applyEvent(evt1); instance.applyEvent(evt2); instance.applyEvent(evt3); instance.applyEvent(evt4); - + assertEqualsVectorsIgnoringOrder(instance.receivedEvents, new [evt2, evt4]); } - + } } class SomeCommand { - + } class AnotherCommand { - + } \ No newline at end of file diff --git a/test/org/robotlegs/v2/experimental/CommandFlowTest.as b/test/robotlegs/bender/experimental/CommandFlowTest.as similarity index 95% rename from test/org/robotlegs/v2/experimental/CommandFlowTest.as rename to test/robotlegs/bender/experimental/CommandFlowTest.as index 8e87a9c3..59d43d7d 100644 --- a/test/org/robotlegs/v2/experimental/CommandFlowTest.as +++ b/test/robotlegs/bender/experimental/CommandFlowTest.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental +package robotlegs.bender.experimental { import org.flexunit.asserts.*; import org.flexunit.assertThat; @@ -15,11 +15,11 @@ package org.robotlegs.v2.experimental import flash.events.Event; import org.swiftsuspenders.Injector; import flash.utils.Dictionary; - import org.robotlegs.v2.core.utilities.pushValuesToClassVector; - import org.robotlegs.v2.experimental.CommandFlowStart; - + import robotlegs.bender.core.utilities.pushValuesToClassVector; + import robotlegs.bender.experimental.CommandFlowStart; - public class CommandFlowTest + + public class CommandFlowTest { private var instance:CommandFlow; private var eventDispatcher:EventDispatcher; @@ -37,12 +37,12 @@ package org.robotlegs.v2.experimental commandTracker = new CommandTracker(); injector = new Injector(); injector.map(CommandTracker).toValue(commandTracker); - + instance.eventDispatcher = eventDispatcher; instance.injector = injector; - + commands = new []; - + configsByEventString = new Dictionary(); } @@ -68,9 +68,9 @@ package org.robotlegs.v2.experimental { assertTrue("Failing test", true); } - + /* API SKETCH: - + after / afterAll / afterAny execute executeAll @@ -79,9 +79,9 @@ package org.robotlegs.v2.experimental initialize destroy reset - + */ - + [Test] public function start_events_arent_responded_to_until_flow_is_initialized():void { @@ -90,7 +90,7 @@ package org.robotlegs.v2.experimental eventDispatcher.dispatchEvent(new Event(Event.COMPLETE)); assertEquals(0, commandTracker.commandsReceived.length); } - + [Test] public function one_event_triggers_one_command_with_injection_from_START():void { @@ -113,7 +113,7 @@ package org.robotlegs.v2.experimental const expectedCommands:Array = [SimpleCommand, AnotherCommand]; assertThat(commandTracker.commandsReceived, array(expectedCommands)); } - + [Test] public function two_different_events_trigger_different_commands_from_START():void { @@ -123,11 +123,11 @@ package org.robotlegs.v2.experimental eventDispatcher.dispatchEvent(new Event(Event.COMPLETE)); assertThat(commandTracker.commandsReceived, array([SimpleCommand])); - + eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); assertThat(commandTracker.commandsReceived, array([SimpleCommand, AnotherCommand])); } - + [Test] public function mapping_two_commands_to_same_event_separately_and_both_fire_from_START():void { @@ -139,7 +139,7 @@ package org.robotlegs.v2.experimental const expectedCommands:Array = [SimpleCommand, AnotherCommand]; assertThat(commandTracker.commandsReceived, array(expectedCommands)); } - + [Test] public function afterAny_either_event_triggers_command_from_START_1():void { @@ -149,17 +149,17 @@ package org.robotlegs.v2.experimental eventDispatcher.dispatchEvent(new Event(Event.COMPLETE)); assertThat(commandTracker.commandsReceived, array([SimpleCommand])); } - + [Test] public function afterAny_either_event_triggers_command_from_START_2():void - { + { instance.from(CommandFlowStart).afterAny(Event.COMPLETE, Event.CHANGE).execute(SimpleCommand); instance.initialize(); eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); assertThat(commandTracker.commandsReceived, array([SimpleCommand])); } - + [Test] public function afterAll_one_event_does_NOT_trigger_command_from_START():void @@ -195,23 +195,23 @@ package org.robotlegs.v2.experimental } } -import org.robotlegs.v2.core.utilities.pushValuesToClassVector; +import robotlegs.bender.core.utilities.pushValuesToClassVector; import flash.utils.Dictionary; class CommandTracker { private var _commandsReceived:Array = []; - + public function get commandsReceived():Array { return _commandsReceived; } - + public function notify(command:Object):void { _commandsReceived.push(command); } - + public function reset():void { _commandsReceived = []; @@ -222,7 +222,7 @@ class SimpleCommand { [Inject] public var commandTracker:CommandTracker; - + public function execute():void { commandTracker.notify(SimpleCommand); @@ -233,7 +233,7 @@ class AnotherCommand { [Inject] public var commandTracker:CommandTracker; - + public function execute():void { commandTracker.notify(AnotherCommand); @@ -243,17 +243,17 @@ class AnotherCommand class CommandConfig { private const _commandClasses:Vector. = new []; - + public function get commandClasses():Vector. { return _commandClasses; } - + public function execute(commandClass:Class):void { _commandClasses.push(commandClass); } - + public function executeAll(...commandClassList):void { pushValuesToClassVector(commandClassList, _commandClasses); diff --git a/test/org/robotlegs/v2/experimental/CommandFlow_sequenceTest.as b/test/robotlegs/bender/experimental/CommandFlow_sequenceTest.as similarity index 95% rename from test/org/robotlegs/v2/experimental/CommandFlow_sequenceTest.as rename to test/robotlegs/bender/experimental/CommandFlow_sequenceTest.as index a49b6d89..4ab220ec 100644 --- a/test/org/robotlegs/v2/experimental/CommandFlow_sequenceTest.as +++ b/test/robotlegs/bender/experimental/CommandFlow_sequenceTest.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental +package robotlegs.bender.experimental { import flash.events.Event; import flash.events.EventDispatcher; @@ -14,12 +14,12 @@ package org.robotlegs.v2.experimental import org.flexunit.asserts.assertEqualsArraysIgnoringOrder; import org.flexunit.assertThat; import org.hamcrest.collection.array; - import org.robotlegs.v2.core.utilities.pushValuesToClassVector; - import org.robotlegs.v2.experimental.CommandFlow; - import org.robotlegs.v2.experimental.CommandFlowStart; + import robotlegs.bender.core.utilities.pushValuesToClassVector; + import robotlegs.bender.experimental.CommandFlow; + import robotlegs.bender.experimental.CommandFlowStart; import org.swiftsuspenders.Injector; - public class CommandFlow_sequenceTest + public class CommandFlow_sequenceTest { private var instance:CommandFlow; private var eventDispatcher:EventDispatcher; @@ -37,12 +37,12 @@ package org.robotlegs.v2.experimental commandTracker = new CommandTracker(); injector = new Injector(); injector.map(CommandTracker).toValue(commandTracker); - + instance.eventDispatcher = eventDispatcher; instance.injector = injector; - + commands = new []; - + configsByEventString = new Dictionary(); } @@ -62,7 +62,7 @@ package org.robotlegs.v2.experimental { assertTrue("Failing test", true); } - + [Test] public function two_commands_in_sequence_second_event_doesnt_trigger_command_initially():void { @@ -73,14 +73,14 @@ package org.robotlegs.v2.experimental eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); assertEquals(0, commandTracker.commandsReceived.length); } - + [Test] public function two_commands_in_sequence_first_command_fires_after_first_event():void { instance.from(CommandFlowStart).after(Event.COMPLETE).execute(CommandA); instance.from(CommandA).after(Event.CHANGE).execute(CommandB); instance.initialize(); - + eventDispatcher.dispatchEvent(new Event(Event.COMPLETE)); assertThat(commandTracker.commandsReceived, array(CommandA)); } @@ -91,24 +91,24 @@ package org.robotlegs.v2.experimental instance.from(CommandFlowStart).after(Event.COMPLETE).execute(CommandA); instance.from(CommandA).after(Event.CHANGE).execute(CommandB); instance.initialize(); - + eventDispatcher.dispatchEvent(new Event(Event.COMPLETE)); eventDispatcher.dispatchEvent(new Event(Event.COMPLETE)); assertThat(commandTracker.commandsReceived, array(CommandA)); } - + [Test] public function two_commands_in_sequence_both_commands_have_fired_after_both_events_firing():void { instance.from(CommandFlowStart).after(Event.COMPLETE).execute(CommandA); instance.from(CommandA).after(Event.CHANGE).execute(CommandB); instance.initialize(); - + eventDispatcher.dispatchEvent(new Event(Event.COMPLETE)); eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); assertThat(commandTracker.commandsReceived, array(CommandA, CommandB)); } - + [Test] public function one_step_requires_two_previous_steps_in_any_order_doesnt_fire_after_one():void { @@ -116,13 +116,13 @@ package org.robotlegs.v2.experimental instance.from(CommandFlowStart).after(Event.CHANGE).execute(CommandB); instance.fromAll(CommandA, CommandB).after(Event.CANCEL).execute(CommandC); instance.initialize(); - + eventDispatcher.dispatchEvent(new Event(Event.COMPLETE)); eventDispatcher.dispatchEvent(new Event(Event.CANCEL)); - + assertThat(commandTracker.commandsReceived, array(CommandA)); - } - + } + [Test] public function one_step_requires_two_previous_steps_in_any_order_doesnt_fire_after_one_B():void { @@ -130,13 +130,13 @@ package org.robotlegs.v2.experimental instance.from(CommandFlowStart).after(Event.CHANGE).execute(CommandB); instance.fromAll(CommandA, CommandB).after(Event.CANCEL).execute(CommandC); instance.initialize(); - + eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); eventDispatcher.dispatchEvent(new Event(Event.CANCEL)); - + assertThat(commandTracker.commandsReceived, array(CommandB)); } - + [Test] public function one_step_requires_two_previous_steps_in_any_order_fires_after_both():void { @@ -144,14 +144,14 @@ package org.robotlegs.v2.experimental instance.from(CommandFlowStart).after(Event.CHANGE).execute(CommandB); instance.fromAll(CommandA, CommandB).after(Event.CANCEL).execute(CommandC); instance.initialize(); - + eventDispatcher.dispatchEvent(new Event(Event.COMPLETE)); eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); eventDispatcher.dispatchEvent(new Event(Event.CANCEL)); - + assertThat(commandTracker.commandsReceived, array(CommandA, CommandB, CommandC)); } - + [Test] public function one_step_requires_two_previous_steps_in_any_order_fires_after_both_in_other_order():void { @@ -159,14 +159,14 @@ package org.robotlegs.v2.experimental instance.from(CommandFlowStart).after(Event.CHANGE).execute(CommandB); instance.fromAll(CommandA, CommandB).after(Event.CANCEL).execute(CommandC); instance.initialize(); - + eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); eventDispatcher.dispatchEvent(new Event(Event.COMPLETE)); eventDispatcher.dispatchEvent(new Event(Event.CANCEL)); - + assertThat(commandTracker.commandsReceived, array(CommandB, CommandA, CommandC)); } - + [Test] public function multiple_mappings_from_same_command_all_fire():void { @@ -174,14 +174,14 @@ package org.robotlegs.v2.experimental instance.from(CommandA).after(Event.CHANGE).execute(CommandB); instance.from(CommandA).after(Event.CANCEL).execute(CommandC); instance.initialize(); - + eventDispatcher.dispatchEvent(new Event(Event.COMPLETE)); eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); eventDispatcher.dispatchEvent(new Event(Event.CANCEL)); assertThat(commandTracker.commandsReceived, array(CommandA, CommandB, CommandC)); } - + [Test] public function one_step_requires_either_of_two_previous_steps_1():void { @@ -189,13 +189,13 @@ package org.robotlegs.v2.experimental instance.from(CommandFlowStart).after(Event.CHANGE).execute(CommandB); instance.fromAny(CommandA, CommandB).after(Event.CANCEL).execute(CommandC); instance.initialize(); - + eventDispatcher.dispatchEvent(new Event(Event.COMPLETE)); eventDispatcher.dispatchEvent(new Event(Event.CANCEL)); - + assertThat(commandTracker.commandsReceived, array(CommandA, CommandC)); } - + [Test] public function one_step_requires_either_of_two_previous_steps_2():void { @@ -203,10 +203,10 @@ package org.robotlegs.v2.experimental instance.from(CommandFlowStart).after(Event.CHANGE).execute(CommandB); instance.fromAny(CommandA, CommandB).after(Event.CANCEL).execute(CommandC); instance.initialize(); - + eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); eventDispatcher.dispatchEvent(new Event(Event.CANCEL)); - + assertThat(commandTracker.commandsReceived, array(CommandB, CommandC)); } @@ -218,17 +218,17 @@ import flash.utils.Dictionary; class CommandTracker { private var _commandsReceived:Array = []; - + public function get commandsReceived():Array { return _commandsReceived; } - + public function notify(command:Object):void { _commandsReceived.push(command); } - + public function reset():void { _commandsReceived = []; @@ -240,7 +240,7 @@ class CommandA { [Inject] public var commandTracker:CommandTracker; - + public function execute():void { commandTracker.notify(CommandA); @@ -251,7 +251,7 @@ class CommandB { [Inject] public var commandTracker:CommandTracker; - + public function execute():void { commandTracker.notify(CommandB); @@ -262,7 +262,7 @@ class CommandC { [Inject] public var commandTracker:CommandTracker; - + public function execute():void { commandTracker.notify(CommandC); diff --git a/test/org/robotlegs/v2/experimental/support/CommandA.as b/test/robotlegs/bender/experimental/support/CommandA.as similarity index 83% rename from test/org/robotlegs/v2/experimental/support/CommandA.as rename to test/robotlegs/bender/experimental/support/CommandA.as index 43f64c57..d7ade949 100644 --- a/test/org/robotlegs/v2/experimental/support/CommandA.as +++ b/test/robotlegs/bender/experimental/support/CommandA.as @@ -1,21 +1,21 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.experimental.support +package robotlegs.bender.experimental.support { public class CommandA { - + public function execute():void { super(); } - + } } diff --git a/test/org/robotlegs/v2/extensions/commandMap/impl/CommandMapTests.as b/test/robotlegs/bender/extensions/commandMap/impl/CommandMapTests.as similarity index 83% rename from test/org/robotlegs/v2/extensions/commandMap/impl/CommandMapTests.as rename to test/robotlegs/bender/extensions/commandMap/impl/CommandMapTests.as index ccc10857..187eefb0 100644 --- a/test/org/robotlegs/v2/extensions/commandMap/impl/CommandMapTests.as +++ b/test/robotlegs/bender/extensions/commandMap/impl/CommandMapTests.as @@ -1,22 +1,22 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.impl +package robotlegs.bender.extensions.commandMap.impl { import org.hamcrest.assertThat; import org.hamcrest.object.equalTo; import org.hamcrest.object.notNullValue; import org.hamcrest.object.nullValue; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMap; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMapping; - import org.robotlegs.v2.extensions.commandMap.api.ICommandTrigger; - import org.robotlegs.v2.extensions.commandMap.support.CallbackCommandTrigger; - import org.robotlegs.v2.extensions.commandMap.support.NullCommand; - import org.robotlegs.v2.extensions.commandMap.support.NullCommandTrigger; + import robotlegs.bender.extensions.commandMap.api.ICommandMap; + import robotlegs.bender.extensions.commandMap.api.ICommandMapping; + import robotlegs.bender.extensions.commandMap.api.ICommandTrigger; + import robotlegs.bender.extensions.commandMap.support.CallbackCommandTrigger; + import robotlegs.bender.extensions.commandMap.support.NullCommand; + import robotlegs.bender.extensions.commandMap.support.NullCommandTrigger; import org.swiftsuspenders.Injector; public class CommandMapTests diff --git a/test/org/robotlegs/v2/extensions/commandMap/support/CallbackCommand.as b/test/robotlegs/bender/extensions/commandMap/support/CallbackCommand.as similarity index 84% rename from test/org/robotlegs/v2/extensions/commandMap/support/CallbackCommand.as rename to test/robotlegs/bender/extensions/commandMap/support/CallbackCommand.as index 59c14f91..946fe6c6 100644 --- a/test/org/robotlegs/v2/extensions/commandMap/support/CallbackCommand.as +++ b/test/robotlegs/bender/extensions/commandMap/support/CallbackCommand.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.support +package robotlegs.bender.extensions.commandMap.support { public class CallbackCommand diff --git a/test/org/robotlegs/v2/extensions/commandMap/support/CallbackCommand2.as b/test/robotlegs/bender/extensions/commandMap/support/CallbackCommand2.as similarity index 82% rename from test/org/robotlegs/v2/extensions/commandMap/support/CallbackCommand2.as rename to test/robotlegs/bender/extensions/commandMap/support/CallbackCommand2.as index a604b081..5f628609 100644 --- a/test/org/robotlegs/v2/extensions/commandMap/support/CallbackCommand2.as +++ b/test/robotlegs/bender/extensions/commandMap/support/CallbackCommand2.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.support +package robotlegs.bender.extensions.commandMap.support { public class CallbackCommand2 extends CallbackCommand diff --git a/test/org/robotlegs/v2/extensions/commandMap/support/CallbackCommandTrigger.as b/test/robotlegs/bender/extensions/commandMap/support/CallbackCommandTrigger.as similarity index 90% rename from test/org/robotlegs/v2/extensions/commandMap/support/CallbackCommandTrigger.as rename to test/robotlegs/bender/extensions/commandMap/support/CallbackCommandTrigger.as index ae59c588..02de11de 100644 --- a/test/org/robotlegs/v2/extensions/commandMap/support/CallbackCommandTrigger.as +++ b/test/robotlegs/bender/extensions/commandMap/support/CallbackCommandTrigger.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.support +package robotlegs.bender.extensions.commandMap.support { - import org.robotlegs.v2.extensions.commandMap.api.ICommandMapping; - import org.robotlegs.v2.extensions.commandMap.api.ICommandTrigger; + import robotlegs.bender.extensions.commandMap.api.ICommandMapping; + import robotlegs.bender.extensions.commandMap.api.ICommandTrigger; import org.swiftsuspenders.Injector; public class CallbackCommandTrigger implements ICommandTrigger diff --git a/test/org/robotlegs/v2/extensions/commandMap/support/NullCommand.as b/test/robotlegs/bender/extensions/commandMap/support/NullCommand.as similarity index 82% rename from test/org/robotlegs/v2/extensions/commandMap/support/NullCommand.as rename to test/robotlegs/bender/extensions/commandMap/support/NullCommand.as index 3a6e46dd..e84f3cf5 100644 --- a/test/org/robotlegs/v2/extensions/commandMap/support/NullCommand.as +++ b/test/robotlegs/bender/extensions/commandMap/support/NullCommand.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.support +package robotlegs.bender.extensions.commandMap.support { public class NullCommand diff --git a/test/org/robotlegs/v2/extensions/commandMap/support/NullCommandTrigger.as b/test/robotlegs/bender/extensions/commandMap/support/NullCommandTrigger.as similarity index 87% rename from test/org/robotlegs/v2/extensions/commandMap/support/NullCommandTrigger.as rename to test/robotlegs/bender/extensions/commandMap/support/NullCommandTrigger.as index 91094f4d..79a75a45 100644 --- a/test/org/robotlegs/v2/extensions/commandMap/support/NullCommandTrigger.as +++ b/test/robotlegs/bender/extensions/commandMap/support/NullCommandTrigger.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.support +package robotlegs.bender.extensions.commandMap.support { - import org.robotlegs.v2.extensions.commandMap.api.ICommandMapping; - import org.robotlegs.v2.extensions.commandMap.api.ICommandTrigger; + import robotlegs.bender.extensions.commandMap.api.ICommandMapping; + import robotlegs.bender.extensions.commandMap.api.ICommandTrigger; import org.swiftsuspenders.Injector; public class NullCommandTrigger implements ICommandTrigger diff --git a/test/org/robotlegs/v2/extensions/commandMap/support/SelfReportingCallbackCommand.as b/test/robotlegs/bender/extensions/commandMap/support/SelfReportingCallbackCommand.as similarity index 86% rename from test/org/robotlegs/v2/extensions/commandMap/support/SelfReportingCallbackCommand.as rename to test/robotlegs/bender/extensions/commandMap/support/SelfReportingCallbackCommand.as index e186c577..0c8f8ce8 100644 --- a/test/org/robotlegs/v2/extensions/commandMap/support/SelfReportingCallbackCommand.as +++ b/test/robotlegs/bender/extensions/commandMap/support/SelfReportingCallbackCommand.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.support +package robotlegs.bender.extensions.commandMap.support { import flash.events.Event; diff --git a/test/org/robotlegs/v2/extensions/commandMap/support/SelfReportingCallbackCommand2.as b/test/robotlegs/bender/extensions/commandMap/support/SelfReportingCallbackCommand2.as similarity index 82% rename from test/org/robotlegs/v2/extensions/commandMap/support/SelfReportingCallbackCommand2.as rename to test/robotlegs/bender/extensions/commandMap/support/SelfReportingCallbackCommand2.as index 71ba751a..b954643b 100644 --- a/test/org/robotlegs/v2/extensions/commandMap/support/SelfReportingCallbackCommand2.as +++ b/test/robotlegs/bender/extensions/commandMap/support/SelfReportingCallbackCommand2.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.support +package robotlegs.bender.extensions.commandMap.support { public class SelfReportingCallbackCommand2 extends SelfReportingCallbackCommand diff --git a/test/org/robotlegs/v2/extensions/commandMap/support/SelfReportingCallbackGuard.as b/test/robotlegs/bender/extensions/commandMap/support/SelfReportingCallbackGuard.as similarity index 87% rename from test/org/robotlegs/v2/extensions/commandMap/support/SelfReportingCallbackGuard.as rename to test/robotlegs/bender/extensions/commandMap/support/SelfReportingCallbackGuard.as index d4e69529..89a2d883 100644 --- a/test/org/robotlegs/v2/extensions/commandMap/support/SelfReportingCallbackGuard.as +++ b/test/robotlegs/bender/extensions/commandMap/support/SelfReportingCallbackGuard.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.support +package robotlegs.bender.extensions.commandMap.support { import flash.events.Event; diff --git a/test/org/robotlegs/v2/extensions/commandMap/support/SelfReportingCallbackHook.as b/test/robotlegs/bender/extensions/commandMap/support/SelfReportingCallbackHook.as similarity index 86% rename from test/org/robotlegs/v2/extensions/commandMap/support/SelfReportingCallbackHook.as rename to test/robotlegs/bender/extensions/commandMap/support/SelfReportingCallbackHook.as index 953f0e5c..96c2bb71 100644 --- a/test/org/robotlegs/v2/extensions/commandMap/support/SelfReportingCallbackHook.as +++ b/test/robotlegs/bender/extensions/commandMap/support/SelfReportingCallbackHook.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.commandMap.support +package robotlegs.bender.extensions.commandMap.support { public class SelfReportingCallbackHook diff --git a/test/org/robotlegs/v2/extensions/eventCommandMap/impl/AbstractEventCommandMapTests.as b/test/robotlegs/bender/extensions/eventCommandMap/impl/AbstractEventCommandMapTests.as similarity index 78% rename from test/org/robotlegs/v2/extensions/eventCommandMap/impl/AbstractEventCommandMapTests.as rename to test/robotlegs/bender/extensions/eventCommandMap/impl/AbstractEventCommandMapTests.as index 2144d302..10154b89 100644 --- a/test/org/robotlegs/v2/extensions/eventCommandMap/impl/AbstractEventCommandMapTests.as +++ b/test/robotlegs/bender/extensions/eventCommandMap/impl/AbstractEventCommandMapTests.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventCommandMap.impl +package robotlegs.bender.extensions.eventCommandMap.impl { import flash.events.EventDispatcher; - import org.robotlegs.v2.extensions.commandMap.api.ICommandMap; - import org.robotlegs.v2.extensions.commandMap.impl.CommandMap; - import org.robotlegs.v2.extensions.eventCommandMap.api.IEventCommandMap; + import robotlegs.bender.extensions.commandMap.api.ICommandMap; + import robotlegs.bender.extensions.commandMap.impl.CommandMap; + import robotlegs.bender.extensions.eventCommandMap.api.IEventCommandMap; import org.swiftsuspenders.Injector; public class AbstractEventCommandMapTests diff --git a/test/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandMapTests.as b/test/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandMapTests.as similarity index 85% rename from test/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandMapTests.as rename to test/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandMapTests.as index 34601ec6..ca288103 100644 --- a/test/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandMapTests.as +++ b/test/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandMapTests.as @@ -1,17 +1,17 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventCommandMap.impl +package robotlegs.bender.extensions.eventCommandMap.impl { import org.hamcrest.assertThat; import org.hamcrest.object.notNullValue; import org.hamcrest.object.nullValue; - import org.robotlegs.v2.extensions.commandMap.support.NullCommand; - import org.robotlegs.v2.extensions.eventCommandMap.support.SupportEvent; + import robotlegs.bender.extensions.commandMap.support.NullCommand; + import robotlegs.bender.extensions.eventCommandMap.support.SupportEvent; public class EventCommandMapTests extends AbstractEventCommandMapTests { diff --git a/test/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandTrigger_BasicTests.as b/test/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandTrigger_BasicTests.as similarity index 94% rename from test/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandTrigger_BasicTests.as rename to test/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandTrigger_BasicTests.as index 8a944474..8f86fedb 100644 --- a/test/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandTrigger_BasicTests.as +++ b/test/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandTrigger_BasicTests.as @@ -1,21 +1,21 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventCommandMap.impl +package robotlegs.bender.extensions.eventCommandMap.impl { import flash.events.Event; import org.hamcrest.assertThat; import org.hamcrest.collection.array; import org.hamcrest.object.equalTo; - import org.robotlegs.v2.extensions.commandMap.support.CallbackCommand; - import org.robotlegs.v2.extensions.commandMap.support.CallbackCommand2; - import org.robotlegs.v2.extensions.commandMap.support.SelfReportingCallbackCommand; - import org.robotlegs.v2.extensions.commandMap.support.SelfReportingCallbackCommand2; - import org.robotlegs.v2.extensions.eventCommandMap.support.SupportEvent; + import robotlegs.bender.extensions.commandMap.support.CallbackCommand; + import robotlegs.bender.extensions.commandMap.support.CallbackCommand2; + import robotlegs.bender.extensions.commandMap.support.SelfReportingCallbackCommand; + import robotlegs.bender.extensions.commandMap.support.SelfReportingCallbackCommand2; + import robotlegs.bender.extensions.eventCommandMap.support.SupportEvent; public class EventCommandTrigger_BasicTests extends AbstractEventCommandMapTests { @@ -213,7 +213,7 @@ package org.robotlegs.v2.extensions.eventCommandMap.impl } import flash.events.Event; -import org.robotlegs.v2.extensions.eventCommandMap.support.SupportEvent; +import robotlegs.bender.extensions.eventCommandMap.support.SupportEvent; class SupportEventTriggeredSelfReportingCallbackCommand { diff --git a/test/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandTrigger_GuardTests.as b/test/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandTrigger_GuardTests.as similarity index 83% rename from test/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandTrigger_GuardTests.as rename to test/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandTrigger_GuardTests.as index 5e8184f9..eabdf604 100644 --- a/test/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandTrigger_GuardTests.as +++ b/test/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandTrigger_GuardTests.as @@ -1,21 +1,21 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventCommandMap.impl +package robotlegs.bender.extensions.eventCommandMap.impl { import flash.events.Event; import org.hamcrest.assertThat; import org.hamcrest.object.equalTo; - import org.robotlegs.v2.extensions.commandMap.support.CallbackCommand; - import org.robotlegs.v2.extensions.commandMap.support.NullCommand; - import org.robotlegs.v2.extensions.commandMap.support.SelfReportingCallbackGuard; - import org.robotlegs.v2.extensions.eventCommandMap.support.SupportEvent; - import org.robotlegs.v2.extensions.guards.support.GrumpyGuard; - import org.robotlegs.v2.extensions.guards.support.HappyGuard; + import robotlegs.bender.extensions.commandMap.support.CallbackCommand; + import robotlegs.bender.extensions.commandMap.support.NullCommand; + import robotlegs.bender.extensions.commandMap.support.SelfReportingCallbackGuard; + import robotlegs.bender.extensions.eventCommandMap.support.SupportEvent; + import robotlegs.bender.extensions.guards.support.GrumpyGuard; + import robotlegs.bender.extensions.guards.support.HappyGuard; public class EventCommandTrigger_GuardTests extends AbstractEventCommandMapTests { diff --git a/test/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandTrigger_HookTests.as b/test/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandTrigger_HookTests.as similarity index 88% rename from test/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandTrigger_HookTests.as rename to test/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandTrigger_HookTests.as index d9d3f548..5c2462b4 100644 --- a/test/org/robotlegs/v2/extensions/eventCommandMap/impl/EventCommandTrigger_HookTests.as +++ b/test/robotlegs/bender/extensions/eventCommandMap/impl/EventCommandTrigger_HookTests.as @@ -1,17 +1,17 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventCommandMap.impl +package robotlegs.bender.extensions.eventCommandMap.impl { import org.hamcrest.assertThat; import org.hamcrest.object.equalTo; - import org.robotlegs.v2.extensions.commandMap.support.SelfReportingCallbackCommand; - import org.robotlegs.v2.extensions.commandMap.support.SelfReportingCallbackHook; - import org.robotlegs.v2.extensions.eventCommandMap.support.SupportEvent; + import robotlegs.bender.extensions.commandMap.support.SelfReportingCallbackCommand; + import robotlegs.bender.extensions.commandMap.support.SelfReportingCallbackHook; + import robotlegs.bender.extensions.eventCommandMap.support.SupportEvent; public class EventCommandTrigger_HookTests extends AbstractEventCommandMapTests { diff --git a/test/org/robotlegs/v2/extensions/eventCommandMap/support/SupportEvent.as b/test/robotlegs/bender/extensions/eventCommandMap/support/SupportEvent.as similarity index 88% rename from test/org/robotlegs/v2/extensions/eventCommandMap/support/SupportEvent.as rename to test/robotlegs/bender/extensions/eventCommandMap/support/SupportEvent.as index 52d5a2a8..b040b905 100644 --- a/test/org/robotlegs/v2/extensions/eventCommandMap/support/SupportEvent.as +++ b/test/robotlegs/bender/extensions/eventCommandMap/support/SupportEvent.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventCommandMap.support +package robotlegs.bender.extensions.eventCommandMap.support { import flash.events.Event; diff --git a/test/org/robotlegs/v2/extensions/eventMap/impl/EventMapConfigTest.as b/test/robotlegs/bender/extensions/eventMap/impl/EventMapConfigTest.as similarity index 84% rename from test/org/robotlegs/v2/extensions/eventMap/impl/EventMapConfigTest.as rename to test/robotlegs/bender/extensions/eventMap/impl/EventMapConfigTest.as index a4a6abe9..93e7fa9f 100644 --- a/test/org/robotlegs/v2/extensions/eventMap/impl/EventMapConfigTest.as +++ b/test/robotlegs/bender/extensions/eventMap/impl/EventMapConfigTest.as @@ -1,20 +1,20 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventMap.impl +package robotlegs.bender.extensions.eventMap.impl { import org.flexunit.asserts.*; import flash.events.EventDispatcher; import flash.events.Event; - public class EventMapConfigTest + public class EventMapConfigTest { private var instance:EventMapConfig; - + private const DISPATCHER:EventDispatcher = new EventDispatcher(); private const EVENT_STRING:String = "event string"; private const LISTENER:Function = function():void{}; @@ -50,39 +50,39 @@ package org.robotlegs.v2.extensions.eventMap.impl { assertTrue("Failing test", true); } - + [Test] - public function get_dispatcher():void + public function get_dispatcher():void { assertEquals("Get dispatcher", DISPATCHER, instance.dispatcher); } - + [Test] - public function get_eventString():void + public function get_eventString():void { assertEquals("Get eventString", EVENT_STRING, instance.eventString); } - + [Test] - public function get_listener():void + public function get_listener():void { assertEquals("Get listener", LISTENER, instance.listener); } - + [Test] public function get_eventClass():void { assertEquals("Get eventClass", EVENT_TYPE, instance.eventClass); } - + [Test] - public function get_callback():void + public function get_callback():void { assertEquals("Get callback", CALLBACK, instance.callback); } - + [Test] - public function get_useCapture():void + public function get_useCapture():void { assertEquals("Get useCapture", USE_CAPTURE, instance.useCapture); } diff --git a/test/org/robotlegs/v2/extensions/eventMap/impl/EventMapTest.as b/test/robotlegs/bender/extensions/eventMap/impl/EventMapTest.as similarity index 95% rename from test/org/robotlegs/v2/extensions/eventMap/impl/EventMapTest.as rename to test/robotlegs/bender/extensions/eventMap/impl/EventMapTest.as index e7d679c8..4a001c8e 100644 --- a/test/org/robotlegs/v2/extensions/eventMap/impl/EventMapTest.as +++ b/test/robotlegs/bender/extensions/eventMap/impl/EventMapTest.as @@ -1,41 +1,41 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventMap.impl +package robotlegs.bender.extensions.eventMap.impl { import flash.events.Event; import flash.events.EventDispatcher; import flash.events.IEventDispatcher; - + import org.flexunit.asserts.*; - import org.robotlegs.v2.extensions.eventMap.impl.support.CustomEvent; - import org.robotlegs.v2.extensions.eventMap.api.IEventMap; - + import robotlegs.bender.extensions.eventMap.impl.support.CustomEvent; + import robotlegs.bender.extensions.eventMap.api.IEventMap; + public class EventMapTest { protected var eventDispatcher:IEventDispatcher; protected var eventMap:IEventMap; protected var listenerExecuted:Boolean; protected var listenerExecutedCount:uint; - + [Before] public function runBeforeEachTest():void { eventDispatcher = new EventDispatcher(); eventMap = new EventMap(eventDispatcher); } - + [After] public function runAfterEachTest():void { resetListenerExecuted(); resetListenerExecutedCount(); } - + [Test] public function listener_mapped_without_type_is_triggered_by_plain_Event():void { @@ -43,7 +43,7 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new Event(CustomEvent.STARTED)); assertTrue(listenerExecuted); } - + [Test] public function listener_mapped_without_type_is_triggered_by_correct_typed_event():void { @@ -51,7 +51,7 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new CustomEvent(CustomEvent.STARTED)); assertTrue(listenerExecuted); } - + [Test] public function listener_mapped_with_type_is_triggered_by_correct_typed_event():void { @@ -59,7 +59,7 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new CustomEvent(CustomEvent.STARTED)); assertTrue(listenerExecuted); } - + [Test] public function listener_mapped_with_type_is_NOT_triggered_by_plain_event():void { @@ -67,18 +67,18 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new Event(CustomEvent.STARTED)); assertFalse(listenerExecuted); } - + [Test] - public function listener_mapped_twice_only_fires_once():void + public function listener_mapped_twice_only_fires_once():void { eventMap.mapListener(eventDispatcher, CustomEvent.STARTED, listenerWithCounter, CustomEvent); eventMap.mapListener(eventDispatcher, CustomEvent.STARTED, listenerWithCounter, CustomEvent); eventDispatcher.dispatchEvent(new CustomEvent(CustomEvent.STARTED)); assertEquals(1, listenerExecutedCount); } - + [Test] - public function listener_mapped_twice_and_removed_once_doesnt_fire():void + public function listener_mapped_twice_and_removed_once_doesnt_fire():void { eventMap.mapListener(eventDispatcher, CustomEvent.STARTED, listenerWithCounter, CustomEvent); eventMap.mapListener(eventDispatcher, CustomEvent.STARTED, listenerWithCounter, CustomEvent); @@ -86,7 +86,7 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new CustomEvent(CustomEvent.STARTED)); assertEquals(0, listenerExecutedCount); } - + [Test] public function listener_mapped_and_unmapped_without_type_doesnt_fire_in_response_to_typed_or_plain_event():void { @@ -96,7 +96,7 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new CustomEvent(CustomEvent.STARTED)); assertFalse(listenerExecuted); } - + [Test] public function listener_mapped_and_unmapped_with_type_doesnt_fire_in_response_to_typed_or_plain_event():void { @@ -106,7 +106,7 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new CustomEvent(CustomEvent.STARTED)); assertFalse(listenerExecuted); } - + [Test] public function listener_mapped_with_type_and_unmapped_without_type_fires_in_response_to_typed_event():void { @@ -115,7 +115,7 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new CustomEvent(CustomEvent.STARTED)); assertTrue(listenerExecuted); } - + [Test] public function listener_mapped_without_type_and_unmapped_with_type_fires_in_response_to_plain_event():void { @@ -124,7 +124,7 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new Event(CustomEvent.STARTED)); assertTrue(listenerExecuted); } - + [Test] public function unmapListeners_causes_no_handlers_to_fire():void { @@ -137,7 +137,7 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); assertFalse(listenerExecuted); } - + [Test] public function suspend_causes_no_handlers_to_fire():void { @@ -150,7 +150,7 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); assertFalse(listenerExecuted); } - + [Test] public function suspend_then_resume_restores_handlers_to_fire():void { @@ -164,7 +164,7 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); assertEquals(3, listenerExecutedCount); } - + [Test] public function listeners_added_while_suspended_dont_fire():void { @@ -177,7 +177,7 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); assertFalse(listenerExecuted); } - + [Test] public function listeners_added_while_suspended_fire_after_resume():void { @@ -191,7 +191,7 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); assertEquals(2, listenerExecutedCount); } - + [Test] public function listeners_can_be_unmapped_while_suspended():void { @@ -206,7 +206,7 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); assertEquals(2, listenerExecutedCount); } - + [Test] public function all_listeners_can_be_unmapped_while_suspended():void { @@ -221,23 +221,23 @@ package org.robotlegs.v2.extensions.eventMap.impl eventDispatcher.dispatchEvent(new Event(Event.CHANGE)); assertFalse(listenerExecuted); } - + // Helpers protected function listener(e:Event):void { listenerExecuted = true; } - + protected function resetListenerExecuted():void { listenerExecuted = false; } - - protected function listenerWithCounter(e:Event):void + + protected function listenerWithCounter(e:Event):void { listenerExecutedCount++; } - protected function resetListenerExecutedCount():void + protected function resetListenerExecutedCount():void { listenerExecutedCount = 0; } diff --git a/test/org/robotlegs/v2/extensions/eventMap/impl/support/CustomEvent.as b/test/robotlegs/bender/extensions/eventMap/impl/support/CustomEvent.as similarity index 89% rename from test/org/robotlegs/v2/extensions/eventMap/impl/support/CustomEvent.as rename to test/robotlegs/bender/extensions/eventMap/impl/support/CustomEvent.as index 983f91ad..e694026c 100644 --- a/test/org/robotlegs/v2/extensions/eventMap/impl/support/CustomEvent.as +++ b/test/robotlegs/bender/extensions/eventMap/impl/support/CustomEvent.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.eventMap.impl.support +package robotlegs.bender.extensions.eventMap.impl.support { import flash.events.Event; @@ -17,12 +17,12 @@ package org.robotlegs.v2.extensions.eventMap.impl.support public static const EVENT1:String = 'event1'; public static const EVENT2:String = 'event2'; public static const EVENT3:String = 'event3'; - + public function CustomEvent(type:String) { super(type); } - + override public function clone():Event { return new CustomEvent(type); diff --git a/test/org/robotlegs/v2/extensions/guards/impl/GuardGroupTests.as b/test/robotlegs/bender/extensions/guards/impl/GuardGroupTests.as similarity index 84% rename from test/org/robotlegs/v2/extensions/guards/impl/GuardGroupTests.as rename to test/robotlegs/bender/extensions/guards/impl/GuardGroupTests.as index 20ff0669..13212c6f 100644 --- a/test/org/robotlegs/v2/extensions/guards/impl/GuardGroupTests.as +++ b/test/robotlegs/bender/extensions/guards/impl/GuardGroupTests.as @@ -1,23 +1,23 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.guards.impl +package robotlegs.bender.extensions.guards.impl { import org.hamcrest.assertThat; import org.hamcrest.object.equalTo; import org.hamcrest.object.instanceOf; import org.hamcrest.object.isFalse; import org.hamcrest.object.isTrue; - import org.robotlegs.v2.extensions.guards.api.IGuardGroup; - import org.robotlegs.v2.extensions.guards.support.BossGuard; - import org.robotlegs.v2.extensions.guards.support.CallbackGuard; - import org.robotlegs.v2.extensions.guards.support.GrumpyGuard; - import org.robotlegs.v2.extensions.guards.support.HappyGuard; - import org.robotlegs.v2.extensions.guards.support.JustTheMiddleManGuard; + import robotlegs.bender.extensions.guards.api.IGuardGroup; + import robotlegs.bender.extensions.guards.support.BossGuard; + import robotlegs.bender.extensions.guards.support.CallbackGuard; + import robotlegs.bender.extensions.guards.support.GrumpyGuard; + import robotlegs.bender.extensions.guards.support.HappyGuard; + import robotlegs.bender.extensions.guards.support.JustTheMiddleManGuard; import org.swiftsuspenders.Injector; public class GuardGroupTests diff --git a/test/org/robotlegs/v2/extensions/guards/support/BossGuard.as b/test/robotlegs/bender/extensions/guards/support/BossGuard.as similarity index 86% rename from test/org/robotlegs/v2/extensions/guards/support/BossGuard.as rename to test/robotlegs/bender/extensions/guards/support/BossGuard.as index 6e298435..d2c9c1de 100644 --- a/test/org/robotlegs/v2/extensions/guards/support/BossGuard.as +++ b/test/robotlegs/bender/extensions/guards/support/BossGuard.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.guards.support +package robotlegs.bender.extensions.guards.support { public class BossGuard diff --git a/test/org/robotlegs/v2/extensions/guards/support/CallbackGuard.as b/test/robotlegs/bender/extensions/guards/support/CallbackGuard.as similarity index 85% rename from test/org/robotlegs/v2/extensions/guards/support/CallbackGuard.as rename to test/robotlegs/bender/extensions/guards/support/CallbackGuard.as index f32772fc..6dd0f381 100644 --- a/test/org/robotlegs/v2/extensions/guards/support/CallbackGuard.as +++ b/test/robotlegs/bender/extensions/guards/support/CallbackGuard.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.guards.support +package robotlegs.bender.extensions.guards.support { public class CallbackGuard diff --git a/test/org/robotlegs/v2/extensions/guards/support/GrumpyGuard.as b/test/robotlegs/bender/extensions/guards/support/GrumpyGuard.as similarity index 83% rename from test/org/robotlegs/v2/extensions/guards/support/GrumpyGuard.as rename to test/robotlegs/bender/extensions/guards/support/GrumpyGuard.as index 451571f2..2703412d 100644 --- a/test/org/robotlegs/v2/extensions/guards/support/GrumpyGuard.as +++ b/test/robotlegs/bender/extensions/guards/support/GrumpyGuard.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.guards.support +package robotlegs.bender.extensions.guards.support { public class GrumpyGuard diff --git a/test/org/robotlegs/v2/extensions/guards/support/HappyGuard.as b/test/robotlegs/bender/extensions/guards/support/HappyGuard.as similarity index 83% rename from test/org/robotlegs/v2/extensions/guards/support/HappyGuard.as rename to test/robotlegs/bender/extensions/guards/support/HappyGuard.as index 302d918d..af37db5a 100644 --- a/test/org/robotlegs/v2/extensions/guards/support/HappyGuard.as +++ b/test/robotlegs/bender/extensions/guards/support/HappyGuard.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.guards.support +package robotlegs.bender.extensions.guards.support { public class HappyGuard diff --git a/test/org/robotlegs/v2/extensions/guards/support/JustTheMiddleManGuard.as b/test/robotlegs/bender/extensions/guards/support/JustTheMiddleManGuard.as similarity index 85% rename from test/org/robotlegs/v2/extensions/guards/support/JustTheMiddleManGuard.as rename to test/robotlegs/bender/extensions/guards/support/JustTheMiddleManGuard.as index f9f30872..ab98e108 100644 --- a/test/org/robotlegs/v2/extensions/guards/support/JustTheMiddleManGuard.as +++ b/test/robotlegs/bender/extensions/guards/support/JustTheMiddleManGuard.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.guards.support +package robotlegs.bender.extensions.guards.support { public class JustTheMiddleManGuard diff --git a/test/org/robotlegs/v2/extensions/hooks/impl/HookGroupTests.as b/test/robotlegs/bender/extensions/hooks/impl/HookGroupTests.as similarity index 79% rename from test/org/robotlegs/v2/extensions/hooks/impl/HookGroupTests.as rename to test/robotlegs/bender/extensions/hooks/impl/HookGroupTests.as index 804f680c..9e274d71 100644 --- a/test/org/robotlegs/v2/extensions/hooks/impl/HookGroupTests.as +++ b/test/robotlegs/bender/extensions/hooks/impl/HookGroupTests.as @@ -1,23 +1,23 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.hooks.impl +package robotlegs.bender.extensions.hooks.impl { import org.flexunit.asserts.assertEqualsVectorsIgnoringOrder; import org.hamcrest.assertThat; import org.hamcrest.object.equalTo; import org.hamcrest.object.instanceOf; - import org.robotlegs.v2.extensions.hooks.api.IHookGroup; - import org.robotlegs.v2.extensions.hooks.support.CallbackHook; - import org.robotlegs.v2.extensions.hooks.support.HookTracker; - import org.robotlegs.v2.extensions.hooks.support.NonHook; - import org.robotlegs.v2.extensions.hooks.support.NullHook; - import org.robotlegs.v2.extensions.hooks.support.TrackableHook1; - import org.robotlegs.v2.extensions.hooks.support.TrackableHook2; + import robotlegs.bender.extensions.hooks.api.IHookGroup; + import robotlegs.bender.extensions.hooks.support.CallbackHook; + import robotlegs.bender.extensions.hooks.support.HookTracker; + import robotlegs.bender.extensions.hooks.support.NonHook; + import robotlegs.bender.extensions.hooks.support.NullHook; + import robotlegs.bender.extensions.hooks.support.TrackableHook1; + import robotlegs.bender.extensions.hooks.support.TrackableHook2; import org.swiftsuspenders.Injector; public class HookGroupTests @@ -65,7 +65,7 @@ package org.robotlegs.v2.extensions.hooks.impl const expectedHooksConfirmed:Vector. = new ['TrackableHook1', 'TrackableHook2']; assertEqualsVectorsIgnoringOrder('both hooks have run', expectedHooksConfirmed, hookTracker.hooksConfirmed); } - + [Test] public function removed_hook_should_not_run():void { diff --git a/test/org/robotlegs/v2/extensions/hooks/support/CallbackHook.as b/test/robotlegs/bender/extensions/hooks/support/CallbackHook.as similarity index 85% rename from test/org/robotlegs/v2/extensions/hooks/support/CallbackHook.as rename to test/robotlegs/bender/extensions/hooks/support/CallbackHook.as index 1e489159..8ce1a30f 100644 --- a/test/org/robotlegs/v2/extensions/hooks/support/CallbackHook.as +++ b/test/robotlegs/bender/extensions/hooks/support/CallbackHook.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.hooks.support +package robotlegs.bender.extensions.hooks.support { public class CallbackHook diff --git a/test/org/robotlegs/v2/extensions/hooks/support/HookTracker.as b/test/robotlegs/bender/extensions/hooks/support/HookTracker.as similarity index 87% rename from test/org/robotlegs/v2/extensions/hooks/support/HookTracker.as rename to test/robotlegs/bender/extensions/hooks/support/HookTracker.as index 271e124c..069c8536 100644 --- a/test/org/robotlegs/v2/extensions/hooks/support/HookTracker.as +++ b/test/robotlegs/bender/extensions/hooks/support/HookTracker.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.hooks.support +package robotlegs.bender.extensions.hooks.support { public class HookTracker diff --git a/test/org/robotlegs/v2/extensions/hooks/support/NonHook.as b/test/robotlegs/bender/extensions/hooks/support/NonHook.as similarity index 85% rename from test/org/robotlegs/v2/extensions/hooks/support/NonHook.as rename to test/robotlegs/bender/extensions/hooks/support/NonHook.as index 7509050a..cd340c53 100644 --- a/test/org/robotlegs/v2/extensions/hooks/support/NonHook.as +++ b/test/robotlegs/bender/extensions/hooks/support/NonHook.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.hooks.support +package robotlegs.bender.extensions.hooks.support { public class NonHook diff --git a/test/org/robotlegs/v2/extensions/hooks/support/NullHook.as b/test/robotlegs/bender/extensions/hooks/support/NullHook.as similarity index 83% rename from test/org/robotlegs/v2/extensions/hooks/support/NullHook.as rename to test/robotlegs/bender/extensions/hooks/support/NullHook.as index 353bb6e4..6d0c4961 100644 --- a/test/org/robotlegs/v2/extensions/hooks/support/NullHook.as +++ b/test/robotlegs/bender/extensions/hooks/support/NullHook.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.hooks.support +package robotlegs.bender.extensions.hooks.support { public class NullHook diff --git a/test/org/robotlegs/v2/extensions/hooks/support/TrackableHook1.as b/test/robotlegs/bender/extensions/hooks/support/TrackableHook1.as similarity index 85% rename from test/org/robotlegs/v2/extensions/hooks/support/TrackableHook1.as rename to test/robotlegs/bender/extensions/hooks/support/TrackableHook1.as index a5c9e7a6..fca980ca 100644 --- a/test/org/robotlegs/v2/extensions/hooks/support/TrackableHook1.as +++ b/test/robotlegs/bender/extensions/hooks/support/TrackableHook1.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.hooks.support +package robotlegs.bender.extensions.hooks.support { public class TrackableHook1 diff --git a/test/org/robotlegs/v2/extensions/hooks/support/TrackableHook2.as b/test/robotlegs/bender/extensions/hooks/support/TrackableHook2.as similarity index 85% rename from test/org/robotlegs/v2/extensions/hooks/support/TrackableHook2.as rename to test/robotlegs/bender/extensions/hooks/support/TrackableHook2.as index 41e8b62c..6ee30ee7 100644 --- a/test/org/robotlegs/v2/extensions/hooks/support/TrackableHook2.as +++ b/test/robotlegs/bender/extensions/hooks/support/TrackableHook2.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.hooks.support +package robotlegs.bender.extensions.hooks.support { public class TrackableHook2 diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/MediatorMapExtensionTest.as b/test/robotlegs/bender/extensions/mediatorMap/MediatorMapExtensionTest.as similarity index 84% rename from test/org/robotlegs/v2/extensions/mediatorMap/MediatorMapExtensionTest.as rename to test/robotlegs/bender/extensions/mediatorMap/MediatorMapExtensionTest.as index 33a0acb2..e3008855 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/MediatorMapExtensionTest.as +++ b/test/robotlegs/bender/extensions/mediatorMap/MediatorMapExtensionTest.as @@ -1,39 +1,39 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap +package robotlegs.bender.extensions.mediatorMap { import org.flexunit.asserts.*; - import org.robotlegs.v2.extensions.mediatorMap.support.MicroAppWithMediator; + import robotlegs.bender.extensions.mediatorMap.support.MicroAppWithMediator; import flash.display.MovieClip; import mx.core.UIComponent; import mx.core.FlexGlobals; import org.fluint.uiImpersonation.UIImpersonator; import flash.events.Event; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.MediatorWatcher; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediator; + import robotlegs.bender.extensions.mediatorMap.impl.support.MediatorWatcher; + import robotlegs.bender.extensions.mediatorMap.api.IMediator; import org.robotlegs.core.IMediator; - import org.robotlegs.v2.extensions.mediatorMap.support.MicroAppWithMixedMediators; - import org.robotlegs.v2.extensions.mediatorMap.support.MicroAppWithV1Mediators; + import robotlegs.bender.extensions.mediatorMap.support.MicroAppWithMixedMediators; + import robotlegs.bender.extensions.mediatorMap.support.MicroAppWithV1Mediators; - public class MediatorMapExtensionTest + public class MediatorMapExtensionTest { private var instance:MediatorMapExtension; - + private var microApp:MicroAppWithMediator; - + private var microAppWithMixedMediators:MicroAppWithMixedMediators; - + private var microAppWithV1Mediators:MicroAppWithV1Mediators; - + private var mediatorWatcher:MediatorWatcher; - + private var view:MovieClip; - + [Before] public function setUp():void { @@ -62,7 +62,7 @@ package org.robotlegs.v2.extensions.mediatorMap { assertTrue("Failing test", true); } - + [Test(async,ui)] public function micro_app_with_mediator_notifies_mediator_watcher_and_mediator_contains_view():void { @@ -70,21 +70,21 @@ package org.robotlegs.v2.extensions.mediatorMap var group:UIComponent = new UIComponent(); group.addChild(microApp); UIImpersonator.addChild(group); - + microApp.buildContext(buildCompleteHandler, mediatorWatcher); - + const reportedMediators:Array = mediatorWatcher.trackedMediators; - - const reportedMediator:org.robotlegs.v2.extensions.mediatorMap.api.IMediator = reportedMediators[0]; - + + const reportedMediator:robotlegs.bender.extensions.mediatorMap.api.IMediator = reportedMediators[0]; + assertEquals(view, reportedMediator.getViewComponent()); } - + protected function buildCompleteHandler(e:Event):void { microApp.addChild(view); } - + [Test(async,ui)] public function two_mediators_can_live_along_side_each_other_happily():void { @@ -92,25 +92,25 @@ package org.robotlegs.v2.extensions.mediatorMap var group:UIComponent = new UIComponent(); group.addChild(microAppWithMixedMediators); UIImpersonator.addChild(group); - + microAppWithMixedMediators.buildContext(buildCompleteHandlerForMixedMediators, mediatorWatcher); - + const reportedMediators:Array = mediatorWatcher.trackedMediators; - + assertEquals(2, reportedMediators.length) - + assertEquals(view, reportedMediators[0].getViewComponent()); assertEquals(view, reportedMediators[1].getViewComponent()); - - assertTrue(reportedMediators[0] is org.robotlegs.v2.extensions.mediatorMap.api.IMediator); + + assertTrue(reportedMediators[0] is robotlegs.bender.extensions.mediatorMap.api.IMediator); assertTrue(reportedMediators[1] is org.robotlegs.core.IMediator); } - + protected function buildCompleteHandlerForMixedMediators(e:Event):void { microAppWithMixedMediators.addChild(view); } - + [Test(async,ui)] public function micro_app_with_v1_mediator_notifies_mediator_watcher():void { @@ -118,16 +118,16 @@ package org.robotlegs.v2.extensions.mediatorMap var group:UIComponent = new UIComponent(); group.addChild(microAppWithV1Mediators); UIImpersonator.addChild(group); - + microAppWithV1Mediators.buildContext(buildCompleteHandlerForV1Mediators, mediatorWatcher); - + const reportedMediators:Array = mediatorWatcher.trackedMediators; - + const reportedMediator:org.robotlegs.core.IMediator = reportedMediators[0]; - + assertEquals(view, reportedMediator.getViewComponent()); } - + protected function buildCompleteHandlerForV1Mediators(e:Event):void { microAppWithV1Mediators.addChild(view); diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/MediatorMapRemovalAndReparentingTests.as b/test/robotlegs/bender/extensions/mediatorMap/MediatorMapRemovalAndReparentingTests.as similarity index 90% rename from test/org/robotlegs/v2/extensions/mediatorMap/MediatorMapRemovalAndReparentingTests.as rename to test/robotlegs/bender/extensions/mediatorMap/MediatorMapRemovalAndReparentingTests.as index cb0f387d..9c5ba0ef 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/MediatorMapRemovalAndReparentingTests.as +++ b/test/robotlegs/bender/extensions/mediatorMap/MediatorMapRemovalAndReparentingTests.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap +package robotlegs.bender.extensions.mediatorMap { import flash.display.DisplayObject; import flash.display.Sprite; @@ -14,16 +14,16 @@ package org.robotlegs.v2.extensions.mediatorMap import mockolate.runner.MockolateRule; import org.flexunit.asserts.*; import org.hamcrest.assertThat; - import org.robotlegs.v2.extensions.mediatorMap.impl.MediatorMap; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.support.RL2Mediator; + import robotlegs.bender.extensions.mediatorMap.impl.MediatorMap; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.support.RL2Mediator; import org.swiftsuspenders.Injector; import flash.events.EventDispatcher; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL1MediatorTrigger; - import org.robotlegs.v2.extensions.eventMap.impl.EventMap; - import org.robotlegs.v2.extensions.eventMap.api.IEventMap; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL1MediatorTrigger; + import robotlegs.bender.extensions.eventMap.impl.EventMap; + import robotlegs.bender.extensions.eventMap.api.IEventMap; import flash.events.IEventDispatcher; - import org.robotlegs.v2.extensions.viewMap.impl.ViewMap; - + import robotlegs.bender.extensions.viewMap.impl.ViewMap; + public class MediatorMapRemovalAndReparentingTests { @@ -55,17 +55,17 @@ package org.robotlegs.v2.extensions.mediatorMap const eventDispatcher:IEventDispatcher = new EventDispatcher(); injector = new Injector(); - + const viewMap:ViewMap = new ViewMap(); viewMap.injector = injector; - + injector.map(IEventMap).toValue(new EventMap(eventDispatcher)); injector.map(IEventDispatcher).toValue(eventDispatcher); instance = new MediatorMap(); instance.injector = injector; instance.viewMap = viewMap; - + instance.loadTrigger(trigger); instance.map(Sprite).toMediator(RL2Mediator); diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/MediatorMapTest.as b/test/robotlegs/bender/extensions/mediatorMap/MediatorMapTest.as similarity index 94% rename from test/org/robotlegs/v2/extensions/mediatorMap/MediatorMapTest.as rename to test/robotlegs/bender/extensions/mediatorMap/MediatorMapTest.as index 711096b0..451a1b20 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/MediatorMapTest.as +++ b/test/robotlegs/bender/extensions/mediatorMap/MediatorMapTest.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap +package robotlegs.bender.extensions.mediatorMap { import flash.display.DisplayObject; import flash.display.MovieClip; @@ -17,15 +17,15 @@ package org.robotlegs.v2.extensions.mediatorMap import org.flexunit.asserts.*; import org.flexunit.asserts.assertEqualsVectorsIgnoringOrder; import org.flexunit.async.Async; - import org.robotlegs.v2.core.impl.TypeMatcher; - import org.robotlegs.v2.extensions.mediatorMap.impl.MediatorMap; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.MediatorWatcher; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTrigger; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL2MediatorTrigger; - import org.robotlegs.v2.extensions.viewManager.api.IViewHandler; - import org.robotlegs.v2.extensions.viewManager.api.ViewHandlerEvent; + import robotlegs.bender.core.impl.TypeMatcher; + import robotlegs.bender.extensions.mediatorMap.impl.MediatorMap; + import robotlegs.bender.extensions.mediatorMap.impl.support.MediatorWatcher; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTrigger; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL2MediatorTrigger; + import robotlegs.bender.extensions.viewManager.api.IViewHandler; + import robotlegs.bender.extensions.viewManager.api.ViewHandlerEvent; import org.swiftsuspenders.Injector; - import org.robotlegs.v2.extensions.viewMap.impl.ViewMap; + import robotlegs.bender.extensions.viewMap.impl.ViewMap; public class MediatorMapTest { @@ -43,12 +43,12 @@ package org.robotlegs.v2.extensions.mediatorMap instance = new MediatorMap(); instance.injector = injector; - + const viewMap:ViewMap = new ViewMap(); viewMap.injector = injector; - + instance.viewMap = viewMap; - + instance.loadTrigger(new DuckTypedMediatorTrigger(false)); mediatorWatcher = new MediatorWatcher(); @@ -202,7 +202,7 @@ package org.robotlegs.v2.extensions.mediatorMap var interest:uint = instance.processView(new Sprite(), null); assertEquals(0, interest); } - + [Test] public function is_not_interested_if_mapping_is_unmapped_for_matcher():void { @@ -347,7 +347,7 @@ package org.robotlegs.v2.extensions.mediatorMap var expectedNotifications:Vector. = new ['ExampleMediator', 'ExampleMediator destroy']; assertEqualsVectorsIgnoringOrder(expectedNotifications, mediatorWatcher.notifications); } - + [Test(expects="flash.errors.IllegalOperationError")] public function loadTrigger_can_only_be_run_once():void { @@ -369,7 +369,7 @@ package org.robotlegs.v2.extensions.mediatorMap import flash.display.DisplayObject; import flash.display.Sprite; import flash.geom.Rectangle; -import org.robotlegs.v2.extensions.mediatorMap.impl.support.MediatorWatcher; +import robotlegs.bender.extensions.mediatorMap.impl.support.MediatorWatcher; class ExampleMediator { diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/MediatorMapV1Test.as b/test/robotlegs/bender/extensions/mediatorMap/MediatorMapV1Test.as similarity index 90% rename from test/org/robotlegs/v2/extensions/mediatorMap/MediatorMapV1Test.as rename to test/robotlegs/bender/extensions/mediatorMap/MediatorMapV1Test.as index 16f73e75..2d912be2 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/MediatorMapV1Test.as +++ b/test/robotlegs/bender/extensions/mediatorMap/MediatorMapV1Test.as @@ -1,24 +1,24 @@ /* * Copyright (c) 2009 the original author or authors - * - * Permission is hereby granted to use, modify, and distribute this file + * + * Permission is hereby granted to use, modify, and distribute this file * in accordance with the terms of the license agreement accompanying it. */ -package org.robotlegs.v2.extensions.mediatorMap +package robotlegs.bender.extensions.mediatorMap { import flash.display.DisplayObjectContainer; import flash.events.Event; import flash.events.EventDispatcher; import flash.events.IEventDispatcher; - + import mx.core.UIComponent; - + import org.flexunit.Assert; import org.flexunit.async.Async; import org.fluint.uiImpersonation.UIImpersonator; import org.swiftsuspenders.Injector; - + import org.flexunit.asserts.*; import org.flexunit.assertThat; import org.hamcrest.collection.array; @@ -26,50 +26,50 @@ package org.robotlegs.v2.extensions.mediatorMap import org.hamcrest.object.instanceOf; import org.hamcrest.object.hasProperty; import org.hamcrest.object.hasProperties; - + import org.robotlegs.core.IMediator; import org.robotlegs.core.IMediatorMap; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.TestContextView; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.TestContextViewMediator; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.ViewComponent; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.ViewComponentAdvanced; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.ViewMediator; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.ViewMediatorAdvanced; - - import org.robotlegs.v2.extensions.mediatorMap.impl.MediatorMap; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL1MediatorTrigger; - import org.robotlegs.v2.extensions.viewMap.impl.ViewMap; - import org.robotlegs.v2.extensions.mediatorMap.impl.RL1MediatorMapAdapter; + import robotlegs.bender.extensions.mediatorMap.impl.support.TestContextView; + import robotlegs.bender.extensions.mediatorMap.impl.support.TestContextViewMediator; + import robotlegs.bender.extensions.mediatorMap.impl.support.ViewComponent; + import robotlegs.bender.extensions.mediatorMap.impl.support.ViewComponentAdvanced; + import robotlegs.bender.extensions.mediatorMap.impl.support.ViewMediator; + import robotlegs.bender.extensions.mediatorMap.impl.support.ViewMediatorAdvanced; + + import robotlegs.bender.extensions.mediatorMap.impl.MediatorMap; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL1MediatorTrigger; + import robotlegs.bender.extensions.viewMap.impl.ViewMap; + import robotlegs.bender.extensions.mediatorMap.impl.RL1MediatorMapAdapter; import flash.display.DisplayObject; import ArgumentError; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.support.RL1Mediator; - + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.support.RL1Mediator; + public class MediatorMapV1Test { public static const TEST_EVENT:String = 'testEvent'; - + protected var contextView:DisplayObjectContainer; protected var eventDispatcher:IEventDispatcher; protected var commandExecuted:Boolean; protected var mediatorMap:RL1MediatorMapAdapter; protected var injector:Injector; protected var rl2MediatorMap:MediatorMap; - + protected var registeredMediators:Array; protected var removedMediators:Array; - + [Before(ui)] public function runBeforeEachTest():void { contextView = new TestContextView(); UIImpersonator.addChild(contextView); - + contextView.addEventListener(Event.ADDED_TO_STAGE, forwardAddedViewToMediatorMap, true); contextView.addEventListener(Event.REMOVED_FROM_STAGE, forwardRemovedViewToMediatorMap, true); - + eventDispatcher = new EventDispatcher(); injector = new Injector(); - + registeredMediators = new Array(); removedMediators = new Array(); @@ -79,71 +79,71 @@ package org.robotlegs.v2.extensions.mediatorMap injector.map(ViewMap).asSingleton(); injector.map(Array, 'registered').toValue(registeredMediators); injector.map(Array, 'removed').toValue(removedMediators); - + rl2MediatorMap = injector.getInstance(MediatorMap); rl2MediatorMap.loadTrigger(new RL1MediatorTrigger(false)); - + injector.map(MediatorMap).toValue(rl2MediatorMap); - + mediatorMap = injector.getInstance(RL1MediatorMapAdapter); - + injector.map(IMediatorMap).toValue(mediatorMap); - + } - + [After(ui)] public function runAfterEachTest():void { UIImpersonator.removeAllChildren(); } - + [Test] public function get_contextView():void { assertEquals(contextView, mediatorMap.contextView); } - + [Test(async, timeout='100') ] public function mediator_is_created_for_mapped_view():void { mediatorMap.mapView(ViewComponent, ViewMediator, null); var viewComponent:ViewComponent = new ViewComponent(); contextView.addChild(viewComponent); - + Async.handleEvent(this, contextView, Event.ENTER_FRAME, verifyMediatorCreation, 500, {view: viewComponent}); } - + [Test(async, timeout='100') ] public function injectViewAs_sameclass_mediator_is_created_and_views_injected():void { mediatorMap.mapView(ViewComponent, ViewMediator, ViewComponent); var viewComponent:ViewComponent = new ViewComponent(); contextView.addChild(viewComponent); - + Async.handleEvent(this, contextView, Event.ENTER_FRAME, verifyMediatorCreation, 500, {view: viewComponent}); } - + [Test(async, timeout='100') ] public function injectViewAs_array_of_sameclass_mediator_is_created_and_views_injected():void { mediatorMap.mapView(ViewComponent, ViewMediator, [ViewComponent]); var viewComponent:ViewComponent = new ViewComponent(); contextView.addChild(viewComponent); - + Async.handleEvent(this, contextView, Event.ENTER_FRAME, verifyMediatorCreation, 500, {view: viewComponent}); } - + [Test(async, timeout='100') ] public function injectViewAs_array_of_related_classes_mediator_is_created_and_views_injected():void { mediatorMap.mapView(ViewComponentAdvanced, ViewMediatorAdvanced, [ViewComponent, ViewComponentAdvanced]); var viewComponentAdvanced:ViewComponentAdvanced = new ViewComponentAdvanced(); contextView.addChild(viewComponentAdvanced); - - const expectedProperties:Object = { 'view':viewComponentAdvanced, + + const expectedProperties:Object = { 'view':viewComponentAdvanced, 'viewAdvanced':viewComponentAdvanced }; - + Async.handleEvent(this, contextView, Event.ENTER_FRAME, verifyMediatorCreation, 500, expectedProperties); - + } - + [Test(async, timeout='100') ] public function mediator_is_removed():void { @@ -152,108 +152,108 @@ package org.robotlegs.v2.extensions.mediatorMap mediatorMap.mapView(ViewComponent, ViewMediator, null); contextView.addChild(viewComponent); contextView.removeChild(viewComponent); - + Async.handleEvent(this, contextView, Event.ENTER_FRAME, verifyMediatorRemoval, 500, {view: viewComponent}); } - + [Test(async, timeout='100') ] public function createMediator_creates_mediator():void { var viewComponent:ViewComponent = new ViewComponent(); - + contextView.removeEventListener(Event.ADDED_TO_STAGE, forwardAddedViewToMediatorMap, true); - + mediatorMap.mapView(ViewComponent, ViewMediator, null); - + contextView.addChild(viewComponent); - + mediatorMap.createMediator(viewComponent); - + Async.handleEvent(this, contextView, Event.ENTER_FRAME, verifyMediatorCreation, 500, {view: viewComponent}); } - + [Test(async, timeout='100') ] public function removeMediator_removes_mediator():void { var viewComponent:ViewComponent = new ViewComponent(); - + contextView.removeEventListener(Event.ADDED_TO_STAGE, forwardAddedViewToMediatorMap, true); contextView.removeEventListener(Event.REMOVED_FROM_STAGE, forwardRemovedViewToMediatorMap, true); - + mediatorMap.mapView(ViewComponent, ViewMediator, null); contextView.addChild(viewComponent); - + mediatorMap.createMediator(viewComponent); - + contextView.removeChild(viewComponent); - + mediatorMap.removeMediatorByView(viewComponent); Async.handleEvent(this, contextView, Event.ENTER_FRAME, verifyMediatorRemoval, 500, {view: viewComponent}); } - + [Test] public function create_mediator_returns_correct_mediator():void { var viewComponent:ViewComponent = new ViewComponent(); - + contextView.removeEventListener(Event.ADDED_TO_STAGE, forwardAddedViewToMediatorMap, true); contextView.removeEventListener(Event.REMOVED_FROM_STAGE, forwardRemovedViewToMediatorMap, true); - + mediatorMap.mapView(ViewComponent, ViewMediator, null); contextView.addChild(viewComponent); - + const mediator:IMediator = mediatorMap.createMediator(viewComponent); assertThat(mediator.getViewComponent, viewComponent); } - + [Test] public function remove_by_view_returns_correct_mediator():void { var viewComponent:ViewComponent = new ViewComponent(); - + contextView.removeEventListener(Event.ADDED_TO_STAGE, forwardAddedViewToMediatorMap, true); contextView.removeEventListener(Event.REMOVED_FROM_STAGE, forwardRemovedViewToMediatorMap, true); - + mediatorMap.mapView(ViewComponent, ViewMediator, null); contextView.addChild(viewComponent); - + mediatorMap.createMediator(viewComponent); - + contextView.removeChild(viewComponent); - + const mediator:IMediator = mediatorMap.removeMediatorByView(viewComponent); assertThat(mediator.getViewComponent, viewComponent); } - + [Test(expects='ArgumentError')] public function mapping_with_autocreate_false_throws_error():void { mediatorMap.mapView(ViewComponent, ViewMediator, null, false, true); } - + [Test(expects='ArgumentError')] public function mapping_with_autoremove_false_throws_error():void { mediatorMap.mapView(ViewComponent, ViewMediator, null, true, false); } - + [Test(async, timeout='100') ] public function contextView_mediator_is_created_immediately_when_mapped():void { mediatorMap.mapView( TestContextView, TestContextViewMediator ); Async.handleEvent(this, contextView, Event.ENTER_FRAME, verifyMediatorCreation, 500, {view: contextView}); } - + [Test] public function after_mapView_hasMapping_is_true():void { mediatorMap.mapView(ViewComponent, ViewMediator); assertTrue(mediatorMap.hasMapping(ViewComponent)); } - + [Test] public function after_map_and_unmapView_hasMapping_is_false():void { @@ -261,7 +261,7 @@ package org.robotlegs.v2.extensions.mediatorMap mediatorMap.unmapView(ViewComponent); assertFalse(mediatorMap.hasMapping(ViewComponent)); } - + [Test(async, timeout='100') ] public function after_unmapView_mediator_is_not_created():void { @@ -269,54 +269,54 @@ package org.robotlegs.v2.extensions.mediatorMap mediatorMap.unmapView(ViewComponent); var viewComponent:ViewComponent = new ViewComponent(); contextView.addChild(viewComponent); - + Async.handleEvent(this, contextView, Event.ENTER_FRAME, verifyNoMediatorCreation, 500, {}); } - + // REPEAT TESTS USING STRING INSTEAD OF CLASS - + [Test(async, timeout='100') ] public function using_string_mapping_mediator_is_created_for_mapped_view():void { - mediatorMap.mapView('org.robotlegs.v2.extensions.mediatorMap.impl.support.ViewComponent', ViewMediator, null); + mediatorMap.mapView('robotlegs.bender.extensions.mediatorMap.impl.support.ViewComponent', ViewMediator, null); var viewComponent:ViewComponent = new ViewComponent(); contextView.addChild(viewComponent); - + Async.handleEvent(this, contextView, Event.ENTER_FRAME, verifyMediatorCreation, 500, {view: viewComponent}); } - + [Test(async, timeout='100') ] public function using_string_mapping_mediator_is_removed():void { var viewComponent:ViewComponent = new ViewComponent(); - mediatorMap.mapView('org.robotlegs.v2.extensions.mediatorMap.impl.support.ViewComponent', ViewMediator, null); + mediatorMap.mapView('robotlegs.bender.extensions.mediatorMap.impl.support.ViewComponent', ViewMediator, null); contextView.addChild(viewComponent); contextView.removeChild(viewComponent); - + Async.handleEvent(this, contextView, Event.ENTER_FRAME, verifyMediatorRemoval, 500, {view: viewComponent}); } - + [Test(async, timeout='100') ] public function using_string_after_unmapView_mediator_is_not_created():void { - mediatorMap.mapView('org.robotlegs.v2.extensions.mediatorMap.impl.support.ViewComponent', ViewMediator); - mediatorMap.unmapView('org.robotlegs.v2.extensions.mediatorMap.impl.support.ViewComponent'); + mediatorMap.mapView('robotlegs.bender.extensions.mediatorMap.impl.support.ViewComponent', ViewMediator); + mediatorMap.unmapView('robotlegs.bender.extensions.mediatorMap.impl.support.ViewComponent'); var viewComponent:ViewComponent = new ViewComponent(); contextView.addChild(viewComponent); - + Async.handleEvent(this, contextView, Event.ENTER_FRAME, verifyNoMediatorCreation, 500, {}); } - + [Test] public function using_string_after_mapView_hasMapping_is_true():void { mediatorMap.mapView(ViewComponent, ViewMediator); - assertTrue(mediatorMap.hasMapping('org.robotlegs.v2.extensions.mediatorMap.impl.support.ViewComponent')); + assertTrue(mediatorMap.hasMapping('robotlegs.bender.extensions.mediatorMap.impl.support.ViewComponent')); } - + // TESTS FOR METHODS THAT RETURN AN INSTANCE - + [Test] public function retrieveMediator_gets_correct_mediator_if_there_is_only_one():void { @@ -327,7 +327,7 @@ package org.robotlegs.v2.extensions.mediatorMap assertThat(mediatorMap.retrieveMediator(viewComponent), instanceOf(ViewMediator) ); } - + [Test] public function hasMediatorForView_is_true_for_mediated_view_instance():void { @@ -338,7 +338,7 @@ package org.robotlegs.v2.extensions.mediatorMap assertTrue(mediatorMap.hasMediatorForView(viewComponent)); } - + [Test] public function hasMediatorForView_is_false_for_unmediated_view_instance():void { @@ -346,12 +346,12 @@ package org.robotlegs.v2.extensions.mediatorMap var viewComponent:ViewComponent = new ViewComponent(); contextView.addChild(viewComponent); - + var otherViewComponent:ViewComponent = new ViewComponent(); assertFalse(mediatorMap.hasMediatorForView(otherViewComponent)); } - + [Test] public function hasMediator_is_true_for_mediated_view_instance():void { @@ -359,12 +359,12 @@ package org.robotlegs.v2.extensions.mediatorMap var viewComponent:ViewComponent = new ViewComponent(); contextView.addChild(viewComponent); - + var mediator:IMediator = mediatorMap.retrieveMediator(viewComponent) as IMediator; assertTrue(mediatorMap.hasMediator(mediator)); } - + [Test] public function hasMediator_is_false_for_unmediated_view_instance():void { @@ -372,14 +372,14 @@ package org.robotlegs.v2.extensions.mediatorMap var viewComponent:ViewComponent = new ViewComponent(); contextView.addChild(viewComponent); - + var mediator:IMediator = new RL1Mediator(); assertFalse(mediatorMap.hasMediator(mediator)); - } - + } + // ERRORS WHERE METHODS RETURN AMBIGUOUS RESULTS - + [Test(expects='Error')] public function retrieveMediator_thows_error_if_there_is_more_than_one_mediator():void { @@ -391,25 +391,25 @@ package org.robotlegs.v2.extensions.mediatorMap mediatorMap.retrieveMediator(viewComponent); } - + [Test(expects='Error')] public function registerMediator_throws_error():void { mediatorMap.registerMediator(new ViewComponent(), new ViewMediator()); } - + [Test(expects='Error')] public function removeMediator_throws_error():void { mediatorMap.removeMediator(new ViewMediator()); } - + [Test(expects="ArgumentError")] public function setting_enabled_to_false_throws_error():void { mediatorMap.enabled = false; } - + [Test] public function enabled_always_returns_true():void { @@ -417,37 +417,37 @@ package org.robotlegs.v2.extensions.mediatorMap try { mediatorMap.enabled = false; - } + } catch (e:Error) { - + } assertTrue(mediatorMap.enabled); } - + // PRIVATE - + private function verifyMediatorCreation(event:Event, data:Object):void { assertThat(registeredMediators, array(hasProperties(data)) ); } - + private function verifyNoMediatorCreation(event:Event, data:Object):void { assertEquals(0, registeredMediators.length); } - + private function verifyMediatorRemoval(event:Event, data:Object):void { assertThat(removedMediators, array(hasProperties(data)) ); } - + protected function forwardAddedViewToMediatorMap(e:Event):void { var view:DisplayObject = e.target as DisplayObject; rl2MediatorMap.processView(view, null); - } - + } + protected function forwardRemovedViewToMediatorMap(e:Event):void { var view:DisplayObject = e.target as DisplayObject; diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/configs/RL2MediatorsConfigTest.as b/test/robotlegs/bender/extensions/mediatorMap/configs/RL2MediatorsConfigTest.as similarity index 86% rename from test/org/robotlegs/v2/extensions/mediatorMap/configs/RL2MediatorsConfigTest.as rename to test/robotlegs/bender/extensions/mediatorMap/configs/RL2MediatorsConfigTest.as index 42070711..399a5b84 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/configs/RL2MediatorsConfigTest.as +++ b/test/robotlegs/bender/extensions/mediatorMap/configs/RL2MediatorsConfigTest.as @@ -1,15 +1,15 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.configs +package robotlegs.bender.extensions.mediatorMap.configs { import org.flexunit.asserts.*; - public class RL2MediatorsConfigTest + public class RL2MediatorsConfigTest { private var instance:RL2MediatorsConfig; diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorSugarTest.as b/test/robotlegs/bender/extensions/mediatorMap/impl/MediatorSugarTest.as similarity index 77% rename from test/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorSugarTest.as rename to test/robotlegs/bender/extensions/mediatorMap/impl/MediatorSugarTest.as index 166eeed1..ac04ea6d 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorSugarTest.as +++ b/test/robotlegs/bender/extensions/mediatorMap/impl/MediatorSugarTest.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl +package robotlegs.bender.extensions.mediatorMap.impl { import mockolate.runner.MockolateRule; import mockolate.runner.MockolateRunner; @@ -13,17 +13,17 @@ package org.robotlegs.v2.extensions.mediatorMap.impl import org.flexunit.asserts.*; import org.hamcrest.assertThat; import org.hamcrest.object.strictlyEqualTo; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.MediatorWatcher; - import org.robotlegs.v2.extensions.eventMap.api.IEventMap; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.SugaryMediator; + import robotlegs.bender.extensions.mediatorMap.impl.support.MediatorWatcher; + import robotlegs.bender.extensions.eventMap.api.IEventMap; + import robotlegs.bender.extensions.mediatorMap.impl.support.SugaryMediator; import flash.display.Sprite; import flash.events.EventDispatcher; import flash.events.IEventDispatcher; - import org.robotlegs.v2.extensions.eventMap.impl.support.CustomEvent; + import robotlegs.bender.extensions.eventMap.impl.support.CustomEvent; import flash.display.DisplayObject; import flash.events.Event; import org.flexunit.async.Async; - + public class MediatorSugarTest { [Rule] @@ -35,14 +35,14 @@ package org.robotlegs.v2.extensions.mediatorMap.impl private var instance:SugaryMediator; private var mediatorWatcher:MediatorWatcher; - + private var eventDispatcher:IEventDispatcher = new EventDispatcher(); - + private const VIEW:Sprite = new Sprite(); private const EVENT_STRING:String = "event string"; private const CALLBACK:Function = function():void{}; private const EVENT_CLASS:Class = CustomEvent; - + private var view:DisplayObject; [Before] @@ -62,61 +62,61 @@ package org.robotlegs.v2.extensions.mediatorMap.impl instance = null; mediatorWatcher = null; } - + [Test] public function addViewListener_passes_vars_to_the_eventMap():void { instance.try_addViewListener(EVENT_STRING, CALLBACK, EVENT_CLASS); assertThat(eventMap, received().method('mapListener') - .args( strictlyEqualTo(view), - strictlyEqualTo(EVENT_STRING), - strictlyEqualTo(CALLBACK), + .args( strictlyEqualTo(view), + strictlyEqualTo(EVENT_STRING), + strictlyEqualTo(CALLBACK), strictlyEqualTo(EVENT_CLASS))); } - + [Test] public function addContextListener_passes_vars_to_the_eventMap():void { instance.try_addContextListener(EVENT_STRING, CALLBACK, EVENT_CLASS); assertThat(eventMap, received().method('mapListener') - .args( strictlyEqualTo(eventDispatcher), - strictlyEqualTo(EVENT_STRING), - strictlyEqualTo(CALLBACK), + .args( strictlyEqualTo(eventDispatcher), + strictlyEqualTo(EVENT_STRING), + strictlyEqualTo(CALLBACK), strictlyEqualTo(EVENT_CLASS))); } - + [Test] public function removeViewListener_passes_vars_to_the_eventMap():void { instance.try_removeViewListener(EVENT_STRING, CALLBACK, EVENT_CLASS); assertThat(eventMap, received().method('unmapListener') - .args( strictlyEqualTo(view), - strictlyEqualTo(EVENT_STRING), - strictlyEqualTo(CALLBACK), + .args( strictlyEqualTo(view), + strictlyEqualTo(EVENT_STRING), + strictlyEqualTo(CALLBACK), strictlyEqualTo(EVENT_CLASS))); } - + [Test] public function removeContextListener_passes_vars_to_the_eventMap():void { instance.try_removeContextListener(EVENT_STRING, CALLBACK, EVENT_CLASS); assertThat(eventMap, received().method('unmapListener') - .args( strictlyEqualTo(eventDispatcher), - strictlyEqualTo(EVENT_STRING), - strictlyEqualTo(CALLBACK), + .args( strictlyEqualTo(eventDispatcher), + strictlyEqualTo(EVENT_STRING), + strictlyEqualTo(CALLBACK), strictlyEqualTo(EVENT_CLASS))); } - + [Test(async, timeout="50")] public function dispatch_dispatchesEvent_on_the_eventDisaptcher():void { Async.handleEvent(this, eventDispatcher, Event.COMPLETE, benignHandler); instance.try_dispatch(new Event(Event.COMPLETE)); } - + protected function benignHandler(e:Event, o:Object):void { - + } } } \ No newline at end of file diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorTest.as b/test/robotlegs/bender/extensions/mediatorMap/impl/MediatorTest.as similarity index 84% rename from test/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorTest.as rename to test/robotlegs/bender/extensions/mediatorMap/impl/MediatorTest.as index c3d33d78..9b5d25d4 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/impl/MediatorTest.as +++ b/test/robotlegs/bender/extensions/mediatorMap/impl/MediatorTest.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl +package robotlegs.bender.extensions.mediatorMap.impl { import flash.display.Sprite; import flash.events.Event; @@ -19,13 +19,13 @@ package org.robotlegs.v2.extensions.mediatorMap.impl import org.hamcrest.assertThat; import org.hamcrest.object.strictlyEqualTo; import org.robotlegs.base.EventMap; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediator; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.MediatorWatcher; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.TrackingMediator; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.TrackingMediatorWaitsForGiven; - import org.robotlegs.v2.extensions.eventMap.api.IEventMap; + import robotlegs.bender.extensions.mediatorMap.api.IMediator; + import robotlegs.bender.extensions.mediatorMap.impl.support.MediatorWatcher; + import robotlegs.bender.extensions.mediatorMap.impl.support.TrackingMediator; + import robotlegs.bender.extensions.mediatorMap.impl.support.TrackingMediatorWaitsForGiven; + import robotlegs.bender.extensions.eventMap.api.IEventMap; import flash.display.DisplayObject; - + public class MediatorTest { [Rule] @@ -39,7 +39,7 @@ package org.robotlegs.v2.extensions.mediatorMap.impl private var mediatorWatcher:MediatorWatcher; private var trackingMediator:TrackingMediator; - + [Before] public function setUp():void { @@ -82,46 +82,46 @@ package org.robotlegs.v2.extensions.mediatorMap.impl { assertFalse(instance.destroyed); } - + [Test] - public function get_set_destroyed_to_true():void + public function get_set_destroyed_to_true():void { instance.destroyed = true; assertTrue(instance.destroyed); } [Test] - public function get_set_destroyed_to_false():void + public function get_set_destroyed_to_false():void { instance.destroyed = true; instance.destroyed = false; assertFalse(instance.destroyed); } - + [Test] public function test_failure_seen():void { assertTrue("Failing test", true); } - + [Test] public function mediator_suspends_eventMap_on_view_removed():void { const view:DisplayObject = new Sprite(); - + instance.setViewComponent(view); - + view.dispatchEvent(new Event(Event.REMOVED_FROM_STAGE)); assertThat(eventMap, received().method('suspend').once()); } - + [Test] public function mediator_resumes_eventMap_on_view_removed():void { const view:DisplayObject = new Sprite(); - + instance.setViewComponent(view); - + view.dispatchEvent(new Event(Event.REMOVED_FROM_STAGE)); view.dispatchEvent(new Event(Event.ADDED_TO_STAGE)); assertThat(eventMap, received().method('resume').once()); diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/impl/RL1MediatorMapAdapterTest.as b/test/robotlegs/bender/extensions/mediatorMap/impl/RL1MediatorMapAdapterTest.as similarity index 86% rename from test/org/robotlegs/v2/extensions/mediatorMap/impl/RL1MediatorMapAdapterTest.as rename to test/robotlegs/bender/extensions/mediatorMap/impl/RL1MediatorMapAdapterTest.as index d5cd70c2..9a9604cc 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/impl/RL1MediatorMapAdapterTest.as +++ b/test/robotlegs/bender/extensions/mediatorMap/impl/RL1MediatorMapAdapterTest.as @@ -1,15 +1,15 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl +package robotlegs.bender.extensions.mediatorMap.impl { import org.flexunit.asserts.*; - public class RL1MediatorMapAdapterTest + public class RL1MediatorMapAdapterTest { private var instance:RL1MediatorMapAdapter; diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/MediatorWatcher.as b/test/robotlegs/bender/extensions/mediatorMap/impl/support/MediatorWatcher.as similarity index 89% rename from test/org/robotlegs/v2/extensions/mediatorMap/impl/support/MediatorWatcher.as rename to test/robotlegs/bender/extensions/mediatorMap/impl/support/MediatorWatcher.as index 7f332676..9cfd4648 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/MediatorWatcher.as +++ b/test/robotlegs/bender/extensions/mediatorMap/impl/support/MediatorWatcher.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl.support +package robotlegs.bender.extensions.mediatorMap.impl.support { public class MediatorWatcher { protected const _notifications:Vector. = new Vector.(); - + protected const _mediatorsReceived:Array = []; public function get notifications():Vector. @@ -24,12 +24,12 @@ package org.robotlegs.v2.extensions.mediatorMap.impl.support { _notifications.push(message); } - + public function trackMediator(mediator:*):void { _mediatorsReceived.push(mediator); } - + public function get trackedMediators():Array { return _mediatorsReceived; diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/SugaryMediator.as b/test/robotlegs/bender/extensions/mediatorMap/impl/support/SugaryMediator.as similarity index 87% rename from test/org/robotlegs/v2/extensions/mediatorMap/impl/support/SugaryMediator.as rename to test/robotlegs/bender/extensions/mediatorMap/impl/support/SugaryMediator.as index 5a63696e..266ddac3 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/SugaryMediator.as +++ b/test/robotlegs/bender/extensions/mediatorMap/impl/support/SugaryMediator.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl.support +package robotlegs.bender.extensions.mediatorMap.impl.support { - import org.robotlegs.v2.extensions.mediatorMap.impl.Mediator; + import robotlegs.bender.extensions.mediatorMap.impl.Mediator; import flash.events.Event; public class SugaryMediator extends Mediator @@ -24,27 +24,27 @@ package org.robotlegs.v2.extensions.mediatorMap.impl.support { addViewListener(eventString, callback, eventClass); } - + public function try_addContextListener(eventString:String, callback:Function, eventClass:Class):void { addContextListener(eventString, callback, eventClass); } - + public function try_removeViewListener(eventString:String, callback:Function, eventClass:Class):void { removeViewListener(eventString, callback, eventClass); } - + public function try_removeContextListener(eventString:String, callback:Function, eventClass:Class):void { removeContextListener(eventString, callback, eventClass); } - + public function try_dispatch(e:Event):void { dispatch(e); } - + } } \ No newline at end of file diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/TestContextView.as b/test/robotlegs/bender/extensions/mediatorMap/impl/support/TestContextView.as similarity index 81% rename from test/org/robotlegs/v2/extensions/mediatorMap/impl/support/TestContextView.as rename to test/robotlegs/bender/extensions/mediatorMap/impl/support/TestContextView.as index 24d7c6db..307f5f1f 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/TestContextView.as +++ b/test/robotlegs/bender/extensions/mediatorMap/impl/support/TestContextView.as @@ -1,10 +1,10 @@ /* * Copyright (c) 2009 the original author or authors - * - * Permission is hereby granted to use, modify, and distribute this file + * + * Permission is hereby granted to use, modify, and distribute this file * in accordance with the terms of the license agreement accompanying it. */ -package org.robotlegs.v2.extensions.mediatorMap.impl.support +package robotlegs.bender.extensions.mediatorMap.impl.support { import mx.containers.Canvas; diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/TestContextViewMediator.as b/test/robotlegs/bender/extensions/mediatorMap/impl/support/TestContextViewMediator.as similarity index 90% rename from test/org/robotlegs/v2/extensions/mediatorMap/impl/support/TestContextViewMediator.as rename to test/robotlegs/bender/extensions/mediatorMap/impl/support/TestContextViewMediator.as index a79cd7ca..ba29d3fd 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/TestContextViewMediator.as +++ b/test/robotlegs/bender/extensions/mediatorMap/impl/support/TestContextViewMediator.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl.support +package robotlegs.bender.extensions.mediatorMap.impl.support { import flash.events.Event; - + import org.robotlegs.mvcs.Mediator; - + public class TestContextViewMediator extends Mediator { public static const MEDIATOR_IS_REGISTERED:String = "MediatorIsRegistered"; @@ -23,26 +23,26 @@ package org.robotlegs.v2.extensions.mediatorMap.impl.support [Inject(name='removed')] public var removedMediators:Array; - + public function TestContextViewMediator() { super(); } - + /*override public function onRegister() : void { eventDispatcher.dispatchEvent(new Event(MEDIATOR_IS_REGISTERED)); }*/ - + override public function onRegister():void { registeredMediators.push(this); } - + override public function onRemove():void { removedMediators.push(this); } - + } } \ No newline at end of file diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/TrackingMediator.as b/test/robotlegs/bender/extensions/mediatorMap/impl/support/TrackingMediator.as similarity index 84% rename from test/org/robotlegs/v2/extensions/mediatorMap/impl/support/TrackingMediator.as rename to test/robotlegs/bender/extensions/mediatorMap/impl/support/TrackingMediator.as index da38d196..8641e209 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/TrackingMediator.as +++ b/test/robotlegs/bender/extensions/mediatorMap/impl/support/TrackingMediator.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl.support +package robotlegs.bender.extensions.mediatorMap.impl.support { - import org.robotlegs.v2.extensions.mediatorMap.impl.Mediator; + import robotlegs.bender.extensions.mediatorMap.impl.Mediator; public class TrackingMediator extends Mediator { diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/TrackingMediatorWaitsForGiven.as b/test/robotlegs/bender/extensions/mediatorMap/impl/support/TrackingMediatorWaitsForGiven.as similarity index 87% rename from test/org/robotlegs/v2/extensions/mediatorMap/impl/support/TrackingMediatorWaitsForGiven.as rename to test/robotlegs/bender/extensions/mediatorMap/impl/support/TrackingMediatorWaitsForGiven.as index b0177c42..490687d0 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/TrackingMediatorWaitsForGiven.as +++ b/test/robotlegs/bender/extensions/mediatorMap/impl/support/TrackingMediatorWaitsForGiven.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl.support +package robotlegs.bender.extensions.mediatorMap.impl.support { - import org.robotlegs.v2.extensions.mediatorMap.impl.Mediator; + import robotlegs.bender.extensions.mediatorMap.impl.Mediator; public class TrackingMediatorWaitsForGiven extends Mediator { diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/ViewComponent.as b/test/robotlegs/bender/extensions/mediatorMap/impl/support/ViewComponent.as similarity index 81% rename from test/org/robotlegs/v2/extensions/mediatorMap/impl/support/ViewComponent.as rename to test/robotlegs/bender/extensions/mediatorMap/impl/support/ViewComponent.as index 662160cc..09f35c16 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/ViewComponent.as +++ b/test/robotlegs/bender/extensions/mediatorMap/impl/support/ViewComponent.as @@ -1,11 +1,11 @@ /* * Copyright (c) 2009 the original author or authors - * - * Permission is hereby granted to use, modify, and distribute this file + * + * Permission is hereby granted to use, modify, and distribute this file * in accordance with the terms of the license agreement accompanying it. */ -package org.robotlegs.v2.extensions.mediatorMap.impl.support +package robotlegs.bender.extensions.mediatorMap.impl.support { import mx.core.UIComponent; diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/ViewComponentAdvanced.as b/test/robotlegs/bender/extensions/mediatorMap/impl/support/ViewComponentAdvanced.as similarity index 82% rename from test/org/robotlegs/v2/extensions/mediatorMap/impl/support/ViewComponentAdvanced.as rename to test/robotlegs/bender/extensions/mediatorMap/impl/support/ViewComponentAdvanced.as index e96a9979..e97a3406 100755 --- a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/ViewComponentAdvanced.as +++ b/test/robotlegs/bender/extensions/mediatorMap/impl/support/ViewComponentAdvanced.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl.support +package robotlegs.bender.extensions.mediatorMap.impl.support { public class ViewComponentAdvanced extends ViewComponent { @@ -13,6 +13,6 @@ package org.robotlegs.v2.extensions.mediatorMap.impl.support { super(); } - + } } \ No newline at end of file diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/ViewMediator.as b/test/robotlegs/bender/extensions/mediatorMap/impl/support/ViewMediator.as similarity index 88% rename from test/org/robotlegs/v2/extensions/mediatorMap/impl/support/ViewMediator.as rename to test/robotlegs/bender/extensions/mediatorMap/impl/support/ViewMediator.as index 3353b909..de323950 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/ViewMediator.as +++ b/test/robotlegs/bender/extensions/mediatorMap/impl/support/ViewMediator.as @@ -1,35 +1,35 @@ /* * Copyright (c) 2009 the original author or authors - * - * Permission is hereby granted to use, modify, and distribute this file + * + * Permission is hereby granted to use, modify, and distribute this file * in accordance with the terms of the license agreement accompanying it. */ -package org.robotlegs.v2.extensions.mediatorMap.impl.support +package robotlegs.bender.extensions.mediatorMap.impl.support { import org.robotlegs.mvcs.Mediator; - + public class ViewMediator extends Mediator { [Inject] public var view:ViewComponent; - + [Inject(name='registered')] public var registeredMediators:Array; [Inject(name='removed')] public var removedMediators:Array; - + public function ViewMediator() { } - + override public function onRegister():void { registeredMediators.push(this); } - + override public function onRemove():void { removedMediators.push(this); diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/ViewMediatorAdvanced.as b/test/robotlegs/bender/extensions/mediatorMap/impl/support/ViewMediatorAdvanced.as similarity index 83% rename from test/org/robotlegs/v2/extensions/mediatorMap/impl/support/ViewMediatorAdvanced.as rename to test/robotlegs/bender/extensions/mediatorMap/impl/support/ViewMediatorAdvanced.as index 3562ddac..3eb865c8 100755 --- a/test/org/robotlegs/v2/extensions/mediatorMap/impl/support/ViewMediatorAdvanced.as +++ b/test/robotlegs/bender/extensions/mediatorMap/impl/support/ViewMediatorAdvanced.as @@ -1,21 +1,21 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.impl.support +package robotlegs.bender.extensions.mediatorMap.impl.support { public class ViewMediatorAdvanced extends ViewMediator { [Inject] public var viewAdvanced:ViewComponentAdvanced; - + public function ViewMediatorAdvanced() { super(); } - + } } \ No newline at end of file diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/support/DuckTypedRL1MediatorTrigger.as b/test/robotlegs/bender/extensions/mediatorMap/support/DuckTypedRL1MediatorTrigger.as similarity index 85% rename from test/org/robotlegs/v2/extensions/mediatorMap/support/DuckTypedRL1MediatorTrigger.as rename to test/robotlegs/bender/extensions/mediatorMap/support/DuckTypedRL1MediatorTrigger.as index 9057ce99..cc96977c 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/support/DuckTypedRL1MediatorTrigger.as +++ b/test/robotlegs/bender/extensions/mediatorMap/support/DuckTypedRL1MediatorTrigger.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.support +package robotlegs.bender.extensions.mediatorMap.support { import flash.display.DisplayObject; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorTrigger; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorTrigger; public class DuckTypedRL1MediatorTrigger implements IMediatorTrigger { diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/support/MicroAppWithMediator.as b/test/robotlegs/bender/extensions/mediatorMap/support/MicroAppWithMediator.as similarity index 75% rename from test/org/robotlegs/v2/extensions/mediatorMap/support/MicroAppWithMediator.as rename to test/robotlegs/bender/extensions/mediatorMap/support/MicroAppWithMediator.as index 3e4444d6..cbcc8a09 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/support/MicroAppWithMediator.as +++ b/test/robotlegs/bender/extensions/mediatorMap/support/MicroAppWithMediator.as @@ -1,50 +1,50 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.support +package robotlegs.bender.extensions.mediatorMap.support { - import org.robotlegs.v2.core.impl.ContextBuilder; + import robotlegs.bender.core.impl.ContextBuilder; import flash.display.Sprite; import org.swiftsuspenders.Injector; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; import flash.display.MovieClip; - import org.robotlegs.v2.extensions.mediatorMap.support.TracingMediator; - import org.robotlegs.v2.core.api.ContextBuilderEvent; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.MediatorWatcher; - import org.robotlegs.v2.extensions.mediatorMap.bundles.RL2MediatorsMediatorMapBundle; + import robotlegs.bender.extensions.mediatorMap.support.TracingMediator; + import robotlegs.bender.core.api.ContextBuilderEvent; + import robotlegs.bender.extensions.mediatorMap.impl.support.MediatorWatcher; + import robotlegs.bender.extensions.mediatorMap.bundles.RL2MediatorsMediatorMapBundle; public class MicroAppWithMediator extends Sprite { - + protected var _mediatorWatcher:MediatorWatcher; - + public function buildContext(completeHandler:Function, mediatorWatcher:MediatorWatcher):void { _mediatorWatcher = mediatorWatcher; - + const contextBuilder:ContextBuilder = new ContextBuilder(); contextBuilder.addEventListener(ContextBuilderEvent.CONTEXT_BUILD_COMPLETE, addMappings); contextBuilder.addEventListener(ContextBuilderEvent.CONTEXT_BUILD_COMPLETE, completeHandler); - + // eventually this would be done with a bundle - + contextBuilder.withContextView(this) .withDispatcher(this) .withInjector(new Injector()) .withBundle(RL2MediatorsMediatorMapBundle) .build(); - } + } protected function addMappings(e:ContextBuilderEvent):void { const mediatorMap:IMediatorMap = e.context.injector.getInstance(IMediatorMap); mediatorMap.map(MovieClip).toMediator(TracingMediator); - + e.context.injector.map(MediatorWatcher).toValue(_mediatorWatcher); } } diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/support/MicroAppWithMixedMediators.as b/test/robotlegs/bender/extensions/mediatorMap/support/MicroAppWithMixedMediators.as similarity index 74% rename from test/org/robotlegs/v2/extensions/mediatorMap/support/MicroAppWithMixedMediators.as rename to test/robotlegs/bender/extensions/mediatorMap/support/MicroAppWithMixedMediators.as index 87c64012..e44297cf 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/support/MicroAppWithMixedMediators.as +++ b/test/robotlegs/bender/extensions/mediatorMap/support/MicroAppWithMixedMediators.as @@ -1,52 +1,52 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.support +package robotlegs.bender.extensions.mediatorMap.support { - import org.robotlegs.v2.core.impl.ContextBuilder; + import robotlegs.bender.core.impl.ContextBuilder; import flash.display.Sprite; import org.swiftsuspenders.Injector; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; import flash.display.MovieClip; - import org.robotlegs.v2.extensions.mediatorMap.support.TracingMediator; - import org.robotlegs.v2.core.api.ContextBuilderEvent; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.MediatorWatcher; - import org.robotlegs.v2.extensions.mediatorMap.support.TracingV1Mediator; - import org.robotlegs.v2.extensions.mediatorMap.bundles.RL1AndRL2MediatorsMediatorMapBundle; + import robotlegs.bender.extensions.mediatorMap.support.TracingMediator; + import robotlegs.bender.core.api.ContextBuilderEvent; + import robotlegs.bender.extensions.mediatorMap.impl.support.MediatorWatcher; + import robotlegs.bender.extensions.mediatorMap.support.TracingV1Mediator; + import robotlegs.bender.extensions.mediatorMap.bundles.RL1AndRL2MediatorsMediatorMapBundle; public class MicroAppWithMixedMediators extends Sprite { - + protected var _mediatorWatcher:MediatorWatcher; - + public function buildContext(completeHandler:Function, mediatorWatcher:MediatorWatcher):void { _mediatorWatcher = mediatorWatcher; - + const contextBuilder:ContextBuilder = new ContextBuilder(); contextBuilder.addEventListener(ContextBuilderEvent.CONTEXT_BUILD_COMPLETE, addMappings); contextBuilder.addEventListener(ContextBuilderEvent.CONTEXT_BUILD_COMPLETE, completeHandler); - + // eventually this would be done with a bundle - + contextBuilder.withContextView(this) .withDispatcher(this) .withInjector(new Injector()) .withBundle(RL1AndRL2MediatorsMediatorMapBundle) .build(); - } + } protected function addMappings(e:ContextBuilderEvent):void { const mediatorMap:IMediatorMap = e.context.injector.getInstance(IMediatorMap); mediatorMap.map(MovieClip).toMediator(TracingMediator); mediatorMap.map(MovieClip).toMediator(TracingV1Mediator); - + e.context.injector.map(MediatorWatcher).toValue(_mediatorWatcher); } } diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/support/MicroAppWithV1Mediators.as b/test/robotlegs/bender/extensions/mediatorMap/support/MicroAppWithV1Mediators.as similarity index 76% rename from test/org/robotlegs/v2/extensions/mediatorMap/support/MicroAppWithV1Mediators.as rename to test/robotlegs/bender/extensions/mediatorMap/support/MicroAppWithV1Mediators.as index a757a9e1..c3b57b3f 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/support/MicroAppWithV1Mediators.as +++ b/test/robotlegs/bender/extensions/mediatorMap/support/MicroAppWithV1Mediators.as @@ -1,50 +1,50 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.support +package robotlegs.bender.extensions.mediatorMap.support { - import org.robotlegs.v2.core.impl.ContextBuilder; + import robotlegs.bender.core.impl.ContextBuilder; import flash.display.Sprite; import org.swiftsuspenders.Injector; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediatorMap; + import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; import flash.display.MovieClip; - import org.robotlegs.v2.core.api.ContextBuilderEvent; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.MediatorWatcher; - import org.robotlegs.v2.extensions.mediatorMap.bundles.RL1MediatorsMediatorMapBundle; - import org.robotlegs.v2.extensions.mediatorMap.support.TracingV1Mediator; + import robotlegs.bender.core.api.ContextBuilderEvent; + import robotlegs.bender.extensions.mediatorMap.impl.support.MediatorWatcher; + import robotlegs.bender.extensions.mediatorMap.bundles.RL1MediatorsMediatorMapBundle; + import robotlegs.bender.extensions.mediatorMap.support.TracingV1Mediator; public class MicroAppWithV1Mediators extends Sprite { - + protected var _mediatorWatcher:MediatorWatcher; - + public function buildContext(completeHandler:Function, mediatorWatcher:MediatorWatcher):void { _mediatorWatcher = mediatorWatcher; - + const contextBuilder:ContextBuilder = new ContextBuilder(); contextBuilder.addEventListener(ContextBuilderEvent.CONTEXT_BUILD_COMPLETE, addMappings); contextBuilder.addEventListener(ContextBuilderEvent.CONTEXT_BUILD_COMPLETE, completeHandler); - + // eventually this would be done with a bundle - + contextBuilder.withContextView(this) .withDispatcher(this) .withInjector(new Injector()) .withBundle(RL1MediatorsMediatorMapBundle) .build(); - } + } protected function addMappings(e:ContextBuilderEvent):void { const mediatorMap:IMediatorMap = e.context.injector.getInstance(IMediatorMap); mediatorMap.map(MovieClip).toMediator(TracingV1Mediator); - + e.context.injector.map(MediatorWatcher).toValue(_mediatorWatcher); } } diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/support/TracingMediator.as b/test/robotlegs/bender/extensions/mediatorMap/support/TracingMediator.as similarity index 54% rename from test/org/robotlegs/v2/extensions/mediatorMap/support/TracingMediator.as rename to test/robotlegs/bender/extensions/mediatorMap/support/TracingMediator.as index d1c6183b..54ffac99 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/support/TracingMediator.as +++ b/test/robotlegs/bender/extensions/mediatorMap/support/TracingMediator.as @@ -1,19 +1,19 @@ -package org.robotlegs.v2.extensions.mediatorMap.support +package robotlegs.bender.extensions.mediatorMap.support { - import org.robotlegs.v2.extensions.mediatorMap.impl.Mediator; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.MediatorWatcher; + import robotlegs.bender.extensions.mediatorMap.impl.Mediator; + import robotlegs.bender.extensions.mediatorMap.impl.support.MediatorWatcher; public class TracingMediator extends Mediator { - + [Inject] public var mediatorWatcher:MediatorWatcher; - + override public function initialize():void { mediatorWatcher.trackMediator(this); } - + } } \ No newline at end of file diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/support/TracingV1Mediator.as b/test/robotlegs/bender/extensions/mediatorMap/support/TracingV1Mediator.as similarity index 67% rename from test/org/robotlegs/v2/extensions/mediatorMap/support/TracingV1Mediator.as rename to test/robotlegs/bender/extensions/mediatorMap/support/TracingV1Mediator.as index 4c9a4a14..c4996913 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/support/TracingV1Mediator.as +++ b/test/robotlegs/bender/extensions/mediatorMap/support/TracingV1Mediator.as @@ -1,19 +1,19 @@ -package org.robotlegs.v2.extensions.mediatorMap.support +package robotlegs.bender.extensions.mediatorMap.support { import org.robotlegs.mvcs.Mediator; - import org.robotlegs.v2.extensions.mediatorMap.impl.support.MediatorWatcher; + import robotlegs.bender.extensions.mediatorMap.impl.support.MediatorWatcher; public class TracingV1Mediator extends Mediator { - + [Inject] public var mediatorWatcher:MediatorWatcher; - + override public function onRegister():void { mediatorWatcher.trackMediator(this); } - + } } \ No newline at end of file diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTriggerTest.as b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTriggerTest.as similarity index 95% rename from test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTriggerTest.as rename to test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTriggerTest.as index 9c084e94..fca0ea5d 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTriggerTest.as +++ b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTriggerTest.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers +package robotlegs.bender.extensions.mediatorMap.utilities.triggers { import flash.display.DisplayObject; import flash.display.Sprite; @@ -15,7 +15,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers import org.flexunit.asserts.*; import org.hamcrest.assertThat; import org.hamcrest.object.strictlyEqualTo; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediator; + import robotlegs.bender.extensions.mediatorMap.api.IMediator; import flash.errors.IllegalOperationError; public class DuckTypedMediatorTriggerTest @@ -28,7 +28,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers public var notAMediator:Object; [Mock] - public var rl2Mediator:org.robotlegs.v2.extensions.mediatorMap.api.IMediator; + public var rl2Mediator:robotlegs.bender.extensions.mediatorMap.api.IMediator; private const VIEW:DisplayObject = new Sprite(); diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTrigger_strategiesTest.as b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTrigger_strategiesTest.as similarity index 89% rename from test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTrigger_strategiesTest.as rename to test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTrigger_strategiesTest.as index 853d6d1d..9ff76a4c 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTrigger_strategiesTest.as +++ b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/DuckTypedMediatorTrigger_strategiesTest.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers +package robotlegs.bender.extensions.mediatorMap.utilities.triggers { import flash.display.DisplayObject; import flash.display.MovieClip; @@ -20,13 +20,13 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers import org.hamcrest.assertThat; import org.hamcrest.object.strictlyEqualTo; import org.robotlegs.core.IMediator; - import org.robotlegs.v2.core.impl.TypeMatcher; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediator; - import org.robotlegs.v2.extensions.mediatorMap.utilities.strategies.NoWaitStrategy; - import org.robotlegs.v2.extensions.mediatorMap.utilities.strategies.WaitForCompleteStrategy; - import org.robotlegs.v2.extensions.mediatorMap.utilities.strategies.WaitForCreationCompleteStrategy; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.support.DuckTypedRL2Mediator; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.support.RL1Mediator; + import robotlegs.bender.core.impl.TypeMatcher; + import robotlegs.bender.extensions.mediatorMap.api.IMediator; + import robotlegs.bender.extensions.mediatorMap.utilities.strategies.NoWaitStrategy; + import robotlegs.bender.extensions.mediatorMap.utilities.strategies.WaitForCompleteStrategy; + import robotlegs.bender.extensions.mediatorMap.utilities.strategies.WaitForCreationCompleteStrategy; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.support.DuckTypedRL2Mediator; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.support.RL1Mediator; public class DuckTypedMediatorTrigger_strategiesTest { @@ -35,8 +35,8 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers public var mocks:MockolateRule = new MockolateRule(); [Mock] - public var rl2Mediator:org.robotlegs.v2.extensions.mediatorMap.api.IMediator; - + public var rl2Mediator:robotlegs.bender.extensions.mediatorMap.api.IMediator; + [Mock] public var rl1Mediator:RL1Mediator; @@ -60,15 +60,15 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers { strictInstance = null; } - + [Test] public function startup_calls_initialize_immediately_if_no_strategy_added():void { strictInstance.addStartupStrategy(NoWaitStrategy, new TypeMatcher().allOf(Sprite)); strictInstance.startup(rl2Mediator, SPRITE); assertThat(rl2Mediator, received().method('initialize')); - } - + } + [Test] public function startup_doesnt_call_initialize_immediately_on_MovieClip_when_matched_to_waitForComplete_strategy():void { @@ -76,7 +76,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers strictInstance.startup(rl2Mediator, MOVIE_CLIP); assertThat(rl2Mediator, received().method('initialize').never()); } - + [Test] public function startup_calls_initialize_after_MovieClip_dispatches_complete_when_matched_to_waitForComplete_strategy():void { @@ -85,7 +85,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers MOVIE_CLIP.dispatchEvent(new Event(Event.COMPLETE)); assertThat(rl2Mediator, received().method('initialize').once()); } - + [Test] public function startup_does_NOT_call_initialize_after_MovieClip_dispatches_complete_if_shutdown_has_run_between():void { @@ -96,7 +96,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers MOVIE_CLIP.dispatchEvent(new Event(Event.COMPLETE)); assertThat(rl2Mediator, received().method('initialize').never()); } - + [Test] public function startup_doesnt_call_initialize_immediately_on_unready_UIComponent_when_matched_to_waitForCreationComplete_strategy():void { @@ -104,7 +104,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers strictInstance.startup(rl2Mediator, UI_COMPONENT); assertThat(rl2Mediator, received().method('initialize').never()); } - + [Test] public function startup_calls_initialize_after_UIComponent_dispatches_creationComplete_when_matched_to_waitForCreationComplete_strategy():void { @@ -113,7 +113,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers UI_COMPONENT.dispatchEvent(new Event('creationComplete')); assertThat(rl2Mediator, received().method('initialize').once()); } - + [Test] public function startup_calls_initialize_immediately_if_UIComponent_is_already_initialised():void { @@ -122,7 +122,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers strictInstance.startup(rl2Mediator, UI_COMPONENT); assertThat(rl2Mediator, received().method('initialize').once()); } - + [Test] public function startup_does_not_call_initialize_after_creationComplete_if_UIComponent_destroyed_is_true():void { @@ -132,22 +132,22 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers stub(rl2Mediator).getter("destroyed").returns(true); assertThat(rl2Mediator, received().method('initialize').never()); } - + [Test] public function startup_calls_preRegister_on_RL1_Mediator_immediately_even_if_UIComponent_is_mapped_to_creationComplete():void { strictInstance.addStartupStrategy(WaitForCreationCompleteStrategy, new TypeMatcher().allOf(UIComponent)); strictInstance.startup(rl1Mediator, UI_COMPONENT); assertThat(rl1Mediator, received().method('preRegister').once()); - } + } [Test] public function test_failure_seen():void { assertTrue("Failing test", true); } - - + + protected function benignCallback(mediator:*, view:DisplayObject):void { // do nothing diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTriggerTest.as b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTriggerTest.as similarity index 95% rename from test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTriggerTest.as rename to test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTriggerTest.as index 500fb069..19b55cfa 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTriggerTest.as +++ b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTriggerTest.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers +package robotlegs.bender.extensions.mediatorMap.utilities.triggers { import flash.display.DisplayObject; import flash.display.Sprite; @@ -17,8 +17,8 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers import org.hamcrest.object.strictlyEqualTo; import org.hamcrest.object.equalTo; import org.robotlegs.core.IMediator; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.support.DuckTypedRL1Mediator; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediator; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.support.DuckTypedRL1Mediator; + import robotlegs.bender.extensions.mediatorMap.api.IMediator; public class RL1AndRL2MediatorTriggerTest { @@ -28,17 +28,17 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers [Mock] public var rl1Mediator:org.robotlegs.core.IMediator; - + [Mock] - public var rl2Mediator:org.robotlegs.v2.extensions.mediatorMap.api.IMediator; + public var rl2Mediator:robotlegs.bender.extensions.mediatorMap.api.IMediator; private var strictInstance:RL1AndRL2MediatorTrigger; private var notStrictInstance:RL1AndRL2MediatorTrigger; - + private const VIEW:DisplayObject = new Sprite(); private var _callbackRun:Function; - + private const duckMediator:DuckTypedRL1Mediator = new DuckTypedRL1Mediator(); [Before] @@ -66,37 +66,37 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers { assertTrue("Failing test", true); } - + [Test(expects="Error")] public function startup_throws_error_in_strict_mode_when_passed_a_duckTyped_mediator():void { strictInstance.startup(duckMediator,new Sprite()); } - + [Test(expects="Error")] public function shutdown_throws_error_in_strict_mode_when_passed_a_duckTyped_mediator():void { strictInstance.shutdown(duckMediator,new Sprite(), benignCallback); } - + [Test] public function startup_throws_no_error_in_not_strict_mode_when_passed_a_duckTyped_mediator():void { notStrictInstance.startup(duckMediator,new Sprite()); } - + [Test] public function shutdown_throws_no_error_in_not_strict_mode_when_passed_a_duckTyped_mediator():void { notStrictInstance.shutdown(duckMediator,new Sprite(), benignCallback); } - + /* ------------------------- RL1 Style mediators - + ---------------------------*/ - + [Test] public function shutdown_calls_callback_in_nonStrictMode_with_RL1Mediator():void { @@ -152,13 +152,13 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers strictInstance.startup(rl1Mediator, VIEW); assertThat(rl1Mediator, received().method('setViewComponent').args(strictlyEqualTo(VIEW))); } - + /* ------------------------- RL2 Style mediators - + ---------------------------*/ - + [Test] public function shutdown_calls_callback_in_nonStrictMode_with_RL2Mediator():void { @@ -187,7 +187,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers assertThat(rl2Mediator, received().method('destroy')); } - + [Test] public function startup_calls_initialize_on_RL2Mediator_in_not_strict_mode():void { @@ -222,14 +222,14 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers strictInstance.startup(rl2Mediator, VIEW); assertThat(rl2Mediator, received().setter("destroyed").args(equalTo(false))); } - + [Test] public function shutdown_sets_destroyed_to_true_on_RL2Mediator():void { strictInstance.shutdown(rl2Mediator, VIEW, benignCallback); assertThat(rl2Mediator, received().setter("destroyed").args(equalTo(true))); } - + /* PROTECTED FUNCS */ @@ -244,13 +244,13 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers assertEquals(rl1Mediator, mediator); _callbackRun = expectantCallbackForRL1Mediator; } - + protected function expectantCallbackForRL2Mediator(mediator:*, view:DisplayObject):void { assertEquals(VIEW, view); assertEquals(rl2Mediator, mediator); _callbackRun = expectantCallbackForRL2Mediator; } - + } } \ No newline at end of file diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTrigger_strategiesTest.as b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTrigger_strategiesTest.as similarity index 88% rename from test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTrigger_strategiesTest.as rename to test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTrigger_strategiesTest.as index 42def052..b640af29 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTrigger_strategiesTest.as +++ b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1AndRL2MediatorTrigger_strategiesTest.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers +package robotlegs.bender.extensions.mediatorMap.utilities.triggers { import flash.display.DisplayObject; import flash.display.Sprite; @@ -17,16 +17,16 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers import org.hamcrest.assertThat; import org.hamcrest.object.strictlyEqualTo; import org.robotlegs.core.IMediator; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediator; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.support.DuckTypedRL2Mediator; + import robotlegs.bender.extensions.mediatorMap.api.IMediator; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.support.DuckTypedRL2Mediator; import mx.core.UIComponent; - import org.robotlegs.v2.extensions.mediatorMap.utilities.strategies.NoWaitStrategy; - import org.robotlegs.v2.core.impl.TypeMatcher; - import org.robotlegs.v2.extensions.mediatorMap.utilities.strategies.WaitForCompleteStrategy; + import robotlegs.bender.extensions.mediatorMap.utilities.strategies.NoWaitStrategy; + import robotlegs.bender.core.impl.TypeMatcher; + import robotlegs.bender.extensions.mediatorMap.utilities.strategies.WaitForCompleteStrategy; import flash.events.Event; import flash.display.MovieClip; - import org.robotlegs.v2.extensions.mediatorMap.utilities.strategies.WaitForCreationCompleteStrategy; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTrigger; + import robotlegs.bender.extensions.mediatorMap.utilities.strategies.WaitForCreationCompleteStrategy; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTrigger; public class RL1AndRL2MediatorTrigger_strategiesTest { @@ -35,7 +35,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers public var mocks:MockolateRule = new MockolateRule(); [Mock] - public var rl2Mediator:org.robotlegs.v2.extensions.mediatorMap.api.IMediator; + public var rl2Mediator:robotlegs.bender.extensions.mediatorMap.api.IMediator; private const SPRITE:Sprite = new Sprite(); private const UI_COMPONENT:UIComponent = new UIComponent(); @@ -57,15 +57,15 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers { strictInstance = null; } - + [Test] public function startup_calls_initialize_immediately_if_no_strategy_added():void { strictInstance.addStartupStrategy(NoWaitStrategy, new TypeMatcher().allOf(Sprite)); strictInstance.startup(rl2Mediator, SPRITE); assertThat(rl2Mediator, received().method('initialize')); - } - + } + [Test] public function startup_doesnt_call_initialize_immediately_on_MovieClip_when_matched_to_waitForComplete_strategy():void { @@ -73,7 +73,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers strictInstance.startup(rl2Mediator, MOVIE_CLIP); assertThat(rl2Mediator, received().method('initialize').never()); } - + [Test] public function startup_calls_initialize_after_MovieClip_dispatches_complete_when_matched_to_waitForComplete_strategy():void { @@ -82,7 +82,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers MOVIE_CLIP.dispatchEvent(new Event(Event.COMPLETE)); assertThat(rl2Mediator, received().method('initialize').once()); } - + [Test] public function startup_does_NOT_call_initialize_after_MovieClip_dispatches_complete_if_shutdown_has_run_between():void { @@ -93,7 +93,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers MOVIE_CLIP.dispatchEvent(new Event(Event.COMPLETE)); assertThat(rl2Mediator, received().method('initialize').never()); } - + [Test] public function startup_doesnt_call_initialize_immediately_on_unready_UIComponent_when_matched_to_waitForCreationComplete_strategy():void { @@ -101,7 +101,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers strictInstance.startup(rl2Mediator, UI_COMPONENT); assertThat(rl2Mediator, received().method('initialize').never()); } - + [Test] public function startup_calls_initialize_after_UIComponent_dispatches_creationComplete_when_matched_to_waitForCreationComplete_strategy():void { @@ -110,7 +110,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers UI_COMPONENT.dispatchEvent(new Event('creationComplete')); assertThat(rl2Mediator, received().method('initialize').once()); } - + [Test] public function startup_calls_initialize_immediately_if_UIComponent_is_already_initialised():void { @@ -119,7 +119,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers strictInstance.startup(rl2Mediator, UI_COMPONENT); assertThat(rl2Mediator, received().method('initialize').once()); } - + [Test] public function startup_does_not_call_initialize_after_creationComplete_if_UIComponent_destroyed_is_true():void { @@ -128,15 +128,15 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers strictInstance.shutdown(rl2Mediator, UI_COMPONENT, benignCallback); stub(rl2Mediator).getter("destroyed").returns(true); assertThat(rl2Mediator, received().method('initialize').never()); - } + } [Test] public function test_failure_seen():void { assertTrue("Failing test", true); } - - + + protected function benignCallback(mediator:*, view:DisplayObject):void { // do nothing diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1MediatorTriggerTest.as b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1MediatorTriggerTest.as similarity index 97% rename from test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1MediatorTriggerTest.as rename to test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1MediatorTriggerTest.as index 95aaef36..c8fa8bea 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL1MediatorTriggerTest.as +++ b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL1MediatorTriggerTest.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers +package robotlegs.bender.extensions.mediatorMap.utilities.triggers { import flash.display.DisplayObject; import flash.display.Sprite; @@ -16,7 +16,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers import org.hamcrest.assertThat; import org.hamcrest.object.strictlyEqualTo; import org.robotlegs.core.IMediator; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.support.DuckTypedRL1Mediator; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.support.DuckTypedRL1Mediator; public class RL1MediatorTriggerTest { @@ -175,7 +175,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers { strictInstance.startup(not_a_mediator, VIEW); } - + [Test] public function test_failure_seen():void { diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL2MediatorTriggerTest.as b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL2MediatorTriggerTest.as similarity index 95% rename from test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL2MediatorTriggerTest.as rename to test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL2MediatorTriggerTest.as index 2efb66cf..8081e5d8 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL2MediatorTriggerTest.as +++ b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL2MediatorTriggerTest.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers +package robotlegs.bender.extensions.mediatorMap.utilities.triggers { import flash.display.DisplayObject; import flash.display.Sprite; @@ -17,8 +17,8 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers import org.hamcrest.object.strictlyEqualTo; import org.hamcrest.object.equalTo; import org.robotlegs.core.IMediator; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediator; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.support.DuckTypedRL2Mediator; + import robotlegs.bender.extensions.mediatorMap.api.IMediator; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.support.DuckTypedRL2Mediator; public class RL2MediatorTriggerTest { @@ -33,7 +33,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers public var not_a_mediator:Object; [Mock] - public var rl2Mediator:org.robotlegs.v2.extensions.mediatorMap.api.IMediator; + public var rl2Mediator:robotlegs.bender.extensions.mediatorMap.api.IMediator; private const VIEW:DisplayObject = new Sprite(); @@ -177,21 +177,21 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers { strictInstance.startup(not_a_mediator, VIEW); } - + [Test] public function startup_sets_destroyed_to_false_on_mediator():void { strictInstance.startup(rl2Mediator, VIEW); assertThat(rl2Mediator, received().setter("destroyed").args(equalTo(false))); } - + [Test] public function shutdown_sets_destroyed_to_true_on_mediator():void { strictInstance.shutdown(rl2Mediator, VIEW, benignCallback); assertThat(rl2Mediator, received().setter("destroyed").args(equalTo(true))); } - + [Test] public function test_failure_seen():void { diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL2MediatorTrigger_strategiesTest.as b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL2MediatorTrigger_strategiesTest.as similarity index 89% rename from test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL2MediatorTrigger_strategiesTest.as rename to test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL2MediatorTrigger_strategiesTest.as index 49e0810c..304385e6 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/RL2MediatorTrigger_strategiesTest.as +++ b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/RL2MediatorTrigger_strategiesTest.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers +package robotlegs.bender.extensions.mediatorMap.utilities.triggers { import flash.display.DisplayObject; import flash.display.Sprite; @@ -17,15 +17,15 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers import org.hamcrest.assertThat; import org.hamcrest.object.strictlyEqualTo; import org.robotlegs.core.IMediator; - import org.robotlegs.v2.extensions.mediatorMap.api.IMediator; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.support.DuckTypedRL2Mediator; + import robotlegs.bender.extensions.mediatorMap.api.IMediator; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.support.DuckTypedRL2Mediator; import mx.core.UIComponent; - import org.robotlegs.v2.extensions.mediatorMap.utilities.strategies.NoWaitStrategy; - import org.robotlegs.v2.core.impl.TypeMatcher; - import org.robotlegs.v2.extensions.mediatorMap.utilities.strategies.WaitForCompleteStrategy; + import robotlegs.bender.extensions.mediatorMap.utilities.strategies.NoWaitStrategy; + import robotlegs.bender.core.impl.TypeMatcher; + import robotlegs.bender.extensions.mediatorMap.utilities.strategies.WaitForCompleteStrategy; import flash.events.Event; import flash.display.MovieClip; - import org.robotlegs.v2.extensions.mediatorMap.utilities.strategies.WaitForCreationCompleteStrategy; + import robotlegs.bender.extensions.mediatorMap.utilities.strategies.WaitForCreationCompleteStrategy; public class RL2MediatorTrigger_strategiesTest { @@ -34,7 +34,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers public var mocks:MockolateRule = new MockolateRule(); [Mock] - public var rl2Mediator:org.robotlegs.v2.extensions.mediatorMap.api.IMediator; + public var rl2Mediator:robotlegs.bender.extensions.mediatorMap.api.IMediator; private const SPRITE:Sprite = new Sprite(); private const UI_COMPONENT:UIComponent = new UIComponent(); @@ -56,15 +56,15 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers { strictInstance = null; } - + [Test] public function startup_calls_initialize_immediately_if_no_strategy_added():void { strictInstance.addStartupStrategy(NoWaitStrategy, new TypeMatcher().allOf(Sprite)); strictInstance.startup(rl2Mediator, SPRITE); assertThat(rl2Mediator, received().method('initialize')); - } - + } + [Test] public function startup_doesnt_call_initialize_immediately_on_MovieClip_when_matched_to_waitForComplete_strategy():void { @@ -72,7 +72,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers strictInstance.startup(rl2Mediator, MOVIE_CLIP); assertThat(rl2Mediator, received().method('initialize').never()); } - + [Test] public function startup_calls_initialize_after_MovieClip_dispatches_complete_when_matched_to_waitForComplete_strategy():void { @@ -81,7 +81,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers MOVIE_CLIP.dispatchEvent(new Event(Event.COMPLETE)); assertThat(rl2Mediator, received().method('initialize').once()); } - + [Test] public function startup_does_NOT_call_initialize_after_MovieClip_dispatches_complete_if_shutdown_has_run_between():void { @@ -92,7 +92,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers MOVIE_CLIP.dispatchEvent(new Event(Event.COMPLETE)); assertThat(rl2Mediator, received().method('initialize').never()); } - + [Test] public function startup_doesnt_call_initialize_immediately_on_unready_UIComponent_when_matched_to_waitForCreationComplete_strategy():void { @@ -100,7 +100,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers strictInstance.startup(rl2Mediator, UI_COMPONENT); assertThat(rl2Mediator, received().method('initialize').never()); } - + [Test] public function startup_calls_initialize_after_UIComponent_dispatches_creationComplete_when_matched_to_waitForCreationComplete_strategy():void { @@ -109,7 +109,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers UI_COMPONENT.dispatchEvent(new Event('creationComplete')); assertThat(rl2Mediator, received().method('initialize').once()); } - + [Test] public function startup_calls_initialize_immediately_if_UIComponent_is_already_initialised():void { @@ -118,7 +118,7 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers strictInstance.startup(rl2Mediator, UI_COMPONENT); assertThat(rl2Mediator, received().method('initialize').once()); } - + [Test] public function startup_does_not_call_initialize_after_creationComplete_if_UIComponent_destroyed_is_true():void { @@ -127,15 +127,15 @@ package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers strictInstance.shutdown(rl2Mediator, UI_COMPONENT, benignCallback); stub(rl2Mediator).getter("destroyed").returns(true); assertThat(rl2Mediator, received().method('initialize').never()); - } + } [Test] public function test_failure_seen():void { assertTrue("Failing test", true); } - - + + protected function benignCallback(mediator:*, view:DisplayObject):void { // do nothing diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/support/DuckTypedRL1Mediator.as b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/support/DuckTypedRL1Mediator.as similarity index 83% rename from test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/support/DuckTypedRL1Mediator.as rename to test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/support/DuckTypedRL1Mediator.as index bb4a4fbc..a772da1d 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/support/DuckTypedRL1Mediator.as +++ b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/support/DuckTypedRL1Mediator.as @@ -1,34 +1,34 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.support +package robotlegs.bender.extensions.mediatorMap.utilities.triggers.support { public class DuckTypedRL1Mediator { - + public function DuckTypedRL1Mediator() { super(); } - + public function preRegister():void { - + } - + public function preRemove():void { - + } - + public function setViewComponent(value:Object):void { - + } } } \ No newline at end of file diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/support/DuckTypedRL2Mediator.as b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/support/DuckTypedRL2Mediator.as similarity index 87% rename from test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/support/DuckTypedRL2Mediator.as rename to test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/support/DuckTypedRL2Mediator.as index 67220e78..e3a8e3ad 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/support/DuckTypedRL2Mediator.as +++ b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/support/DuckTypedRL2Mediator.as @@ -1,36 +1,36 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.support +package robotlegs.bender.extensions.mediatorMap.utilities.triggers.support { public class DuckTypedRL2Mediator { - + public function DuckTypedRL2Mediator() { super(); } - + public function initialize():void { - + } - + public function destroy():void { - + } - + public function setViewComponent(value:Object):void { - + } - + protected var _destroyed:Boolean; public function get destroyed():Boolean diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/support/RL1Mediator.as b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/support/RL1Mediator.as similarity index 82% rename from test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/support/RL1Mediator.as rename to test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/support/RL1Mediator.as index 627e88d4..4a27bc0d 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/support/RL1Mediator.as +++ b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/support/RL1Mediator.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.support +package robotlegs.bender.extensions.mediatorMap.utilities.triggers.support { import org.robotlegs.mvcs.Mediator; diff --git a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/support/RL2Mediator.as b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/support/RL2Mediator.as similarity index 71% rename from test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/support/RL2Mediator.as rename to test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/support/RL2Mediator.as index 57a342ed..6dc7e14d 100644 --- a/test/org/robotlegs/v2/extensions/mediatorMap/utilities/triggers/support/RL2Mediator.as +++ b/test/robotlegs/bender/extensions/mediatorMap/utilities/triggers/support/RL2Mediator.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.support +package robotlegs.bender.extensions.mediatorMap.utilities.triggers.support { - import org.robotlegs.v2.extensions.mediatorMap.impl.Mediator; + import robotlegs.bender.extensions.mediatorMap.impl.Mediator; public class RL2Mediator extends Mediator { diff --git a/test/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionConfigTest.as b/test/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionConfigTest.as similarity index 86% rename from test/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionConfigTest.as rename to test/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionConfigTest.as index db2a9f1c..570fde81 100644 --- a/test/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionConfigTest.as +++ b/test/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionConfigTest.as @@ -1,15 +1,15 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewInjectionMap.impl +package robotlegs.bender.extensions.viewInjectionMap.impl { import org.flexunit.asserts.*; - public class ViewInjectionConfigTest + public class ViewInjectionConfigTest { private var instance:ViewInjectionConfig; diff --git a/test/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionMapTest.as b/test/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionMapTest.as similarity index 89% rename from test/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionMapTest.as rename to test/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionMapTest.as index a6439111..9f85078c 100644 --- a/test/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionMapTest.as +++ b/test/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionMapTest.as @@ -1,20 +1,20 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewInjectionMap.impl +package robotlegs.bender.extensions.viewInjectionMap.impl { import org.flexunit.asserts.*; import org.swiftsuspenders.Injector; import flash.display.Sprite; - import org.robotlegs.v2.extensions.viewInjectionMap.impl.processors.InjectInto; - import org.robotlegs.v2.extensions.viewMap.impl.ViewMap; - import org.robotlegs.v2.core.impl.TypeMatcher; + import robotlegs.bender.extensions.viewInjectionMap.impl.processors.InjectInto; + import robotlegs.bender.extensions.viewMap.impl.ViewMap; + import robotlegs.bender.core.impl.TypeMatcher; - public class ViewInjectionMapTest + public class ViewInjectionMapTest { private var instance:ViewInjectionMap; private var injector:Injector; @@ -49,87 +49,87 @@ package org.robotlegs.v2.extensions.viewInjectionMap.impl { assertTrue("Failing test", true); } - + [Test] public function view_is_injected_into():void { const injectionTracker:InjectionTracker = new InjectionTracker(); - + injector.map(InjectionTracker).toValue(injectionTracker); - + instance.map(Sprite).toProcess(InjectInto); - + const view:ViewWithInjections = new ViewWithInjections(); - + instance.processView(view, null) - + assertEquals(injectionTracker, view.injectedItem); } - + [Test] public function view_mapped_by_typeMatcher_is_injected_into():void { const injectionTracker:InjectionTracker = new InjectionTracker(); - + injector.map(InjectionTracker).toValue(injectionTracker); - + instance.mapMatcher(new TypeMatcher().allOf(Sprite)).toProcess(InjectInto); - + const view:ViewWithInjections = new ViewWithInjections(); - + instance.processView(view, null) - + assertEquals(injectionTracker, view.injectedItem); } - + [Test] public function view_mapped_and_unmapped_by_typeMatcher_is_not_injected_into():void { const injectionTracker:InjectionTracker = new InjectionTracker(); - + injector.map(InjectionTracker).toValue(injectionTracker); - + instance.mapMatcher(new TypeMatcher().allOf(Sprite)).toProcess(InjectInto); instance.unmapMatcher(new TypeMatcher().allOf(Sprite)).fromProcess(InjectInto); - + const view:ViewWithInjections = new ViewWithInjections(); - + instance.processView(view, null) - + assertEquals(null, view.injectedItem); } - + [Test] public function view_mapped_and_unmapped_by_viewClass_is_not_injected_into():void { const injectionTracker:InjectionTracker = new InjectionTracker(); - + injector.map(InjectionTracker).toValue(injectionTracker); - + instance.map(Sprite).toProcess(InjectInto); instance.unmap(Sprite).fromProcess(InjectInto); - + const view:ViewWithInjections = new ViewWithInjections(); - + instance.processView(view, null) - + assertEquals(null, view.injectedItem); } - + [Test] public function after_view_mapped_and_unmapped_hasMapping_is_false():void { instance.map(Sprite).toProcess(InjectInto); instance.unmap(Sprite).fromProcess(InjectInto); - + assertFalse(instance.hasMapping(Sprite)); } - + [Test] public function after_view_mapped_hasMapping_is_true():void { instance.map(Sprite).toProcess(InjectInto); - + assertTrue(instance.hasMapping(Sprite)); } @@ -146,5 +146,5 @@ class ViewWithInjections extends Sprite class InjectionTracker { - + } \ No newline at end of file diff --git a/test/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionMappingTest.as b/test/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionMappingTest.as similarity index 86% rename from test/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionMappingTest.as rename to test/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionMappingTest.as index 050f2833..abbcde0a 100644 --- a/test/org/robotlegs/v2/extensions/viewInjectionMap/impl/ViewInjectionMappingTest.as +++ b/test/robotlegs/bender/extensions/viewInjectionMap/impl/ViewInjectionMappingTest.as @@ -1,15 +1,15 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewInjectionMap.impl +package robotlegs.bender.extensions.viewInjectionMap.impl { import org.flexunit.asserts.*; - public class ViewInjectionMappingTest + public class ViewInjectionMappingTest { private var instance:ViewInjectionMapping; diff --git a/test/org/robotlegs/v2/extensions/viewInjectionMap/impl/processors/InjectIntoTest.as b/test/robotlegs/bender/extensions/viewInjectionMap/impl/processors/InjectIntoTest.as similarity index 85% rename from test/org/robotlegs/v2/extensions/viewInjectionMap/impl/processors/InjectIntoTest.as rename to test/robotlegs/bender/extensions/viewInjectionMap/impl/processors/InjectIntoTest.as index 67b82af7..dbe8cc41 100644 --- a/test/org/robotlegs/v2/extensions/viewInjectionMap/impl/processors/InjectIntoTest.as +++ b/test/robotlegs/bender/extensions/viewInjectionMap/impl/processors/InjectIntoTest.as @@ -1,15 +1,15 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewInjectionMap.impl.processors +package robotlegs.bender.extensions.viewInjectionMap.impl.processors { import org.flexunit.asserts.*; - public class InjectIntoTest + public class InjectIntoTest { private var instance:InjectInto; diff --git a/test/org/robotlegs/v2/extensions/viewManager/api/ViewInterestsTest.as b/test/robotlegs/bender/extensions/viewManager/api/ViewInterestsTest.as similarity index 93% rename from test/org/robotlegs/v2/extensions/viewManager/api/ViewInterestsTest.as rename to test/robotlegs/bender/extensions/viewManager/api/ViewInterestsTest.as index 700d9aff..bbe5fcaf 100644 --- a/test/org/robotlegs/v2/extensions/viewManager/api/ViewInterestsTest.as +++ b/test/robotlegs/bender/extensions/viewManager/api/ViewInterestsTest.as @@ -1,15 +1,15 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.api +package robotlegs.bender.extensions.viewManager.api { import org.flexunit.assertThat; import org.hamcrest.object.equalTo; - import org.robotlegs.v2.extensions.viewManager.api.ViewInterests; + import robotlegs.bender.extensions.viewManager.api.ViewInterests; public class ViewInterestsTest { @@ -21,28 +21,28 @@ package org.robotlegs.v2.extensions.viewManager.api // pow 1 is not used because misc tasks are non blocking assertThat(ViewInterests.MEDIATION, equalTo(Math.pow(2,2))); assertThat(ViewInterests.MEDIATION_BLOCK, equalTo(Math.pow(2,3))); - + assertThat(ViewInterests.INJECTION, equalTo(Math.pow(2,4))); assertThat(ViewInterests.INJECTION_BLOCK, equalTo(Math.pow(2,5))); - + assertThat(ViewInterests.SKINNING, equalTo(Math.pow(2,6))); assertThat(ViewInterests.SKINNING_BLOCK, equalTo(Math.pow(2,7))); - + assertThat(ViewInterests.LOCALISATION, equalTo(Math.pow(2,8))); assertThat(ViewInterests.LOCALISATION_BLOCK, equalTo(Math.pow(2,9))); - + assertThat(ViewInterests.LOGGING, equalTo(Math.pow(2,10))); assertThat(ViewInterests.LOGGING_BLOCK, equalTo(Math.pow(2,11))); - + assertThat(ViewInterests.PRESENTATION, equalTo(Math.pow(2,12))); assertThat(ViewInterests.PRESENTATION_BLOCK, equalTo(Math.pow(2,13))); - + assertThat(ViewInterests.ROBOTLEGS_8, equalTo(Math.pow(2,14))); assertThat(ViewInterests.ROBOTLEGS_8_BLOCK, equalTo(Math.pow(2,15))); - + assertThat(ViewInterests.CHANNEL_9, equalTo(Math.pow(2,16))); assertThat(ViewInterests.CHANNEL_9_BLOCK, equalTo(Math.pow(2,17))); - + assertThat(ViewInterests.CHANNEL_10, equalTo(Math.pow(2,18))); assertThat(ViewInterests.CHANNEL_10_BLOCK, equalTo(Math.pow(2,19))); diff --git a/test/org/robotlegs/v2/extensions/viewManager/impl/ContainerBindingTest.as b/test/robotlegs/bender/extensions/viewManager/impl/ContainerBindingTest.as similarity index 90% rename from test/org/robotlegs/v2/extensions/viewManager/impl/ContainerBindingTest.as rename to test/robotlegs/bender/extensions/viewManager/impl/ContainerBindingTest.as index 9281f17f..5f7a7bb0 100644 --- a/test/org/robotlegs/v2/extensions/viewManager/impl/ContainerBindingTest.as +++ b/test/robotlegs/bender/extensions/viewManager/impl/ContainerBindingTest.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl +package robotlegs.bender.extensions.viewManager.impl { import flash.display.DisplayObjectContainer; import flash.display.Sprite; import org.flexunit.assertThat; import org.hamcrest.object.equalTo; - import org.robotlegs.v2.extensions.viewManager.api.IViewHandler; - import org.robotlegs.v2.extensions.viewManager.impl.support.ViewHandlerSupport; + import robotlegs.bender.extensions.viewManager.api.IViewHandler; + import robotlegs.bender.extensions.viewManager.impl.support.ViewHandlerSupport; import org.flexunit.asserts.assertEqualsVectorsIgnoringOrder; import ArgumentError; @@ -43,31 +43,31 @@ package org.robotlegs.v2.extensions.viewManager.impl { assertThat(instance.container, equalTo(CONTAINER)); } - + [Test] - public function set_and_get_parent_returns_given_value():void + public function set_and_get_parent_returns_given_value():void { const test_parent:ContainerBinding = new ContainerBinding(new Sprite()); instance.parent = test_parent; assertThat(instance.parent, equalTo(test_parent)); } - + [Test] public function handlers_is_initially_empty():void { assertThat(instance.handlers.length, equalTo(0)); } - + [Test] public function adding_a_handler_puts_it_in_the_handlers_list():void { instance.addHandler(HANDLER_1); instance.addHandler(HANDLER_2); - + const expectedHandlers:Vector. = new [HANDLER_1, HANDLER_2]; assertEqualsVectorsIgnoringOrder(expectedHandlers, instance.handlers); } - + [Test] public function removing_a_handler_takes_it_out_of_the_list():void { @@ -76,11 +76,11 @@ package org.robotlegs.v2.extensions.viewManager.impl instance.addHandler(HANDLER_3); instance.removeHandler(HANDLER_2); - + const expectedHandlers:Vector. = new [HANDLER_1, HANDLER_3]; assertEqualsVectorsIgnoringOrder(expectedHandlers, instance.handlers); } - + [Test] public function adding_the_same_handler_repeatedly_doesnt_duplicate_it_in_the_list():void { @@ -94,7 +94,7 @@ package org.robotlegs.v2.extensions.viewManager.impl const expectedHandlers:Vector. = new [HANDLER_1, HANDLER_2, HANDLER_3]; assertEqualsVectorsIgnoringOrder(expectedHandlers, instance.handlers); } - + [Test(expects="ArgumentError")] public function adding_a_handler_with_zero_interest_throws_error():void { diff --git a/test/org/robotlegs/v2/extensions/viewManager/impl/ContainerRegistryTest.as b/test/robotlegs/bender/extensions/viewManager/impl/ContainerRegistryTest.as similarity index 85% rename from test/org/robotlegs/v2/extensions/viewManager/impl/ContainerRegistryTest.as rename to test/robotlegs/bender/extensions/viewManager/impl/ContainerRegistryTest.as index 0dffee39..215551cd 100644 --- a/test/org/robotlegs/v2/extensions/viewManager/impl/ContainerRegistryTest.as +++ b/test/robotlegs/bender/extensions/viewManager/impl/ContainerRegistryTest.as @@ -1,22 +1,22 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl +package robotlegs.bender.extensions.viewManager.impl { import flash.display.DisplayObjectContainer; import flash.display.Sprite; import org.flexunit.assertThat; import org.flexunit.asserts.*; import org.hamcrest.object.equalTo; - import org.robotlegs.v2.extensions.viewManager.api.IViewHandler; - import org.robotlegs.v2.extensions.viewManager.impl.support.ViewHandlerSupport; + import robotlegs.bender.extensions.viewManager.api.IViewHandler; + import robotlegs.bender.extensions.viewManager.impl.support.ViewHandlerSupport; import org.flexunit.asserts.assertEqualsVectorsIgnoringOrder; import ArgumentError; - import org.robotlegs.v2.core.impl.support.TreeSpriteSupport; + import robotlegs.bender.core.impl.support.TreeSpriteSupport; public class ContainerRegistryTest { @@ -36,82 +36,82 @@ package org.robotlegs.v2.extensions.viewManager.impl } [Test] - public function finds_correct_nearest_interested_container_view_and_returns_its_binding():void - { + public function finds_correct_nearest_interested_container_view_and_returns_its_binding():void + { var searchTrees:Vector. = createTrees(5, 4); instance.registerContainer(searchTrees[0]); instance.registerContainer(searchTrees[1]); - + var correctTree:TreeSpriteSupport = searchTrees[1]; - + var searchItem:Sprite = correctTree.children[3].children[3].children[3].children[3]; - + var result:ContainerBinding = instance.findParentBinding(searchItem); - + assertEquals("Finds correct nearest interested container view and returns its binding", correctTree, result.container); } - + [Test] - public function binding_returns_with_correct_interested_parent_chain():void + public function binding_returns_with_correct_interested_parent_chain():void { var searchTrees:Vector. = createTrees(5, 4); instance.registerContainer(searchTrees[0]); instance.registerContainer(searchTrees[1]); instance.registerContainer(searchTrees[1].children[3]); - + var searchItem:Sprite = searchTrees[1].children[3].children[3].children[3].children[3]; - + var result:ContainerBinding = instance.findParentBinding(searchItem); - + assertEquals("Binding returns with correct container view", searchTrees[1].children[3], result.container); assertEquals("Binding returns with correct container parent view", searchTrees[1], result.parent.container); - assertEquals("Further parents are null", null, result.parent.parent); + assertEquals("Further parents are null", null, result.parent.parent); } - + [Test] - public function binding_returns_with_correct_interested_parent_chain_if_interested_views_added_in_wrong_order():void + public function binding_returns_with_correct_interested_parent_chain_if_interested_views_added_in_wrong_order():void { var searchTrees:Vector. = createTrees(5, 4); instance.registerContainer(searchTrees[0]); instance.registerContainer(searchTrees[1].children[3]); instance.registerContainer(searchTrees[1]); - + var searchItem:Sprite = searchTrees[1].children[3].children[3].children[3].children[3]; - + var result:ContainerBinding = instance.findParentBinding(searchItem); assertEquals("Binding returns with correct container view", searchTrees[1].children[3], result.container); assertEquals("Binding returns with correct container parent view", searchTrees[1], result.parent.container); - assertEquals("Further parents are null", null, result.parent.parent); + assertEquals("Further parents are null", null, result.parent.parent); } [Test] - public function binding_returns_with_correct_interested_parent_chain_if_interested_views_added_in_wrong_order_with_gaps():void + public function binding_returns_with_correct_interested_parent_chain_if_interested_views_added_in_wrong_order_with_gaps():void { var searchTrees:Vector. = createTrees(5, 4); instance.registerContainer(searchTrees[0]); instance.registerContainer(searchTrees[1].children[3].children[2]); instance.registerContainer(searchTrees[1]); - + var searchItem:Sprite = searchTrees[1].children[3].children[2].children[3].children[3]; - + var result:ContainerBinding = instance.findParentBinding(searchItem); assertEquals("Binding returns with correct container view", searchTrees[1].children[3].children[2], result.container); assertEquals("Binding returns with correct container parent view", searchTrees[1], result.parent.container); - assertEquals("Further parents are null", null, result.parent.parent); + assertEquals("Further parents are null", null, result.parent.parent); } - + [Test] - public function binding_returns_with_correct_interested_parent_chain_after_removal():void + public function binding_returns_with_correct_interested_parent_chain_after_removal():void { var searchTrees:Vector. = createTrees(5, 4); instance.registerContainer(searchTrees[0]); - instance.registerContainer(searchTrees[1]); + instance.registerContainer(searchTrees[1]); instance.registerContainer(searchTrees[1].children[3].children[2].children[3]); instance.registerContainer(searchTrees[1].children[3].children[2]); - instance.registerContainer(searchTrees[1].children[3]); - + instance.registerContainer(searchTrees[1].children[3]); + instance.unregisterContainer(searchTrees[1].children[3].children[2]); var searchItem:Sprite = searchTrees[1].children[3].children[2].children[3].children[3]; @@ -121,19 +121,19 @@ package org.robotlegs.v2.extensions.viewManager.impl assertEquals("Binding returns with correct container view", searchTrees[1].children[3].children[2].children[3], result.container); assertEquals("Binding returns with correct container parent view", searchTrees[1].children[3], result.parent.container); assertEquals("Binding returns with correct container parent parent view", searchTrees[1], result.parent.parent.container); - assertEquals("Further parents are null", null, result.parent.parent.parent); + assertEquals("Further parents are null", null, result.parent.parent.parent); } - + [Test] - public function returns_null_if_search_item_is_not_inside_an_included_view():void + public function returns_null_if_search_item_is_not_inside_an_included_view():void { var searchTrees:Vector. = createTrees(5, 4); instance.registerContainer(searchTrees[0]); - instance.registerContainer(searchTrees[1]); + instance.registerContainer(searchTrees[1]); instance.registerContainer(searchTrees[1].children[3].children[2].children[3]); instance.registerContainer(searchTrees[1].children[3].children[2]); - instance.registerContainer(searchTrees[1].children[3]); - + instance.registerContainer(searchTrees[1].children[3]); + instance.unregisterContainer(searchTrees[1].children[3].children[2]); var searchItem:Sprite = searchTrees[2].children[3].children[2].children[3].children[3]; @@ -142,65 +142,65 @@ package org.robotlegs.v2.extensions.viewManager.impl assertEquals("Returns null if not inside an included view", null, result); } - + [Test] - public function returns_root_container_view_bindings_one_item():void + public function returns_root_container_view_bindings_one_item():void { var searchTrees:Vector. = createTrees(1, 1); var expectedBinding:ContainerBinding = instance.registerContainer(searchTrees[0]); var expectedRootBindings:Vector. = new [expectedBinding]; assertEqualsVectorsIgnoringOrder("Returns root container view bindings one item", expectedRootBindings, instance.rootBindings); } - + [Test] - public function returns_root_container_view_bindings_many_items():void + public function returns_root_container_view_bindings_many_items():void { - var searchTrees:Vector. = createTrees(5, 4); - + var searchTrees:Vector. = createTrees(5, 4); + var firstExpectedBinding:ContainerBinding = instance.registerContainer(searchTrees[0]); - + instance.registerContainer(searchTrees[1].children[3].children[2].children[3]); instance.registerContainer(searchTrees[1].children[3].children[2]); - - var secondExpectedBinding:ContainerBinding = instance.registerContainer(searchTrees[1]); - - instance.registerContainer(searchTrees[1].children[3]); - + + var secondExpectedBinding:ContainerBinding = instance.registerContainer(searchTrees[1]); + + instance.registerContainer(searchTrees[1].children[3]); + var expectedRootBindings:Vector. = new [firstExpectedBinding, secondExpectedBinding]; - + assertEqualsVectorsIgnoringOrder("Returns root container view bindings one item", expectedRootBindings, instance.rootBindings); } - + [Test] - public function returns_root_container_view_bindings_many_items_after_removals():void + public function returns_root_container_view_bindings_many_items_after_removals():void { - var searchTrees:Vector. = createTrees(5, 4); - + var searchTrees:Vector. = createTrees(5, 4); + var firstExpectedBinding:ContainerBinding = instance.registerContainer(searchTrees[0]); - + instance.registerContainer(searchTrees[1].children[3].children[2].children[3]); instance.registerContainer(searchTrees[1].children[3].children[2]); instance.registerContainer(searchTrees[1]); - - var secondExpectedBinding:ContainerBinding = instance.registerContainer(searchTrees[1].children[3]); - - instance.unregisterContainer(searchTrees[1]); - + + var secondExpectedBinding:ContainerBinding = instance.registerContainer(searchTrees[1].children[3]); + + instance.unregisterContainer(searchTrees[1]); + var expectedRootBindings:Vector. = new [firstExpectedBinding, secondExpectedBinding]; - + assertEqualsVectorsIgnoringOrder("Returns root container view bindings one item", expectedRootBindings, instance.rootBindings); - } - - + } + + protected function createTrees(tree_depth:uint, tree_width:uint):Vector. { var trees:Vector. = new Vector.(); var iLength:uint = tree_width; for (var i:uint = 0; i < iLength; i++) - { + { var nextTree:TreeSpriteSupport = new TreeSpriteSupport(tree_depth, tree_width); trees.push(nextTree); - } + } return trees; } } diff --git a/test/org/robotlegs/v2/extensions/viewManager/impl/ViewClassInfoTest.as b/test/robotlegs/bender/extensions/viewManager/impl/ViewClassInfoTest.as similarity index 82% rename from test/org/robotlegs/v2/extensions/viewManager/impl/ViewClassInfoTest.as rename to test/robotlegs/bender/extensions/viewManager/impl/ViewClassInfoTest.as index 11925296..6778d0bf 100644 --- a/test/org/robotlegs/v2/extensions/viewManager/impl/ViewClassInfoTest.as +++ b/test/robotlegs/bender/extensions/viewManager/impl/ViewClassInfoTest.as @@ -1,18 +1,18 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl +package robotlegs.bender.extensions.viewManager.impl { import org.flexunit.assertThat; import org.hamcrest.object.equalTo; import ArgumentError; - import org.robotlegs.v2.extensions.viewManager.impl.support.CustomSprite; + import robotlegs.bender.extensions.viewManager.impl.support.CustomSprite; import flash.system.ApplicationDomain; - import org.robotlegs.v2.extensions.viewManager.impl.ViewClassInfoTest; + import robotlegs.bender.extensions.viewManager.impl.ViewClassInfoTest; public class ViewClassInfoTest { @@ -20,7 +20,7 @@ package org.robotlegs.v2.extensions.viewManager.impl protected var instance:ViewClassInfo; protected const TYPE:Class = CustomSprite; - protected const FQCN:String = "org.robotlegs.v2.extensions.viewManager.impl.support.CustomSprite"; + protected const FQCN:String = "robotlegs.bender.extensions.viewManager.impl.support.CustomSprite"; protected const APP_DOMAIN:ApplicationDomain = new ApplicationDomain(); [Before] @@ -34,38 +34,38 @@ package org.robotlegs.v2.extensions.viewManager.impl { instance = null; } - + [Test] public function get_type_returns_value_given():void { assertThat(instance.type, equalTo(TYPE)); } - + [Test] public function get_fqcn_returns_value_given():void { assertThat(instance.fqcn, equalTo(FQCN)); } - + [Test] public function get_app_domain_returns_value_given():void { assertThat(instance.applicationDomain, equalTo(APP_DOMAIN)); } - + [Ignore] [Test] public function typeNames_does_what_it_should():void { - + } - + [Ignore] [Test] public function isType_does_what_it_should():void { - + } - + } } \ No newline at end of file diff --git a/test/org/robotlegs/v2/extensions/viewManager/impl/ViewManager_BasicTests.as b/test/robotlegs/bender/extensions/viewManager/impl/ViewManager_BasicTests.as similarity index 92% rename from test/org/robotlegs/v2/extensions/viewManager/impl/ViewManager_BasicTests.as rename to test/robotlegs/bender/extensions/viewManager/impl/ViewManager_BasicTests.as index 6e61fdda..07d70f02 100644 --- a/test/org/robotlegs/v2/extensions/viewManager/impl/ViewManager_BasicTests.as +++ b/test/robotlegs/bender/extensions/viewManager/impl/ViewManager_BasicTests.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl +package robotlegs.bender.extensions.viewManager.impl { import flash.display.DisplayObject; import flash.display.DisplayObjectContainer; @@ -16,10 +16,10 @@ package org.robotlegs.v2.extensions.viewManager.impl import org.hamcrest.object.equalTo; import org.hamcrest.object.isFalse; import org.hamcrest.object.isTrue; - import org.robotlegs.v2.extensions.viewManager.api.IViewClassInfo; - import org.robotlegs.v2.extensions.viewManager.api.IViewListener; - import org.robotlegs.v2.extensions.viewManager.impl.support.ViewHandlerSupport; - import org.robotlegs.v2.extensions.viewManager.integration.listeners.AutoStageListener; + import robotlegs.bender.extensions.viewManager.api.IViewClassInfo; + import robotlegs.bender.extensions.viewManager.api.IViewListener; + import robotlegs.bender.extensions.viewManager.impl.support.ViewHandlerSupport; + import robotlegs.bender.extensions.viewManager.integration.listeners.AutoStageListener; public class ViewManager_BasicTests { diff --git a/test/org/robotlegs/v2/extensions/viewManager/impl/ViewManager_BlockingTests.as b/test/robotlegs/bender/extensions/viewManager/impl/ViewManager_BlockingTests.as similarity index 92% rename from test/org/robotlegs/v2/extensions/viewManager/impl/ViewManager_BlockingTests.as rename to test/robotlegs/bender/extensions/viewManager/impl/ViewManager_BlockingTests.as index 0325710b..11fe97ef 100644 --- a/test/org/robotlegs/v2/extensions/viewManager/impl/ViewManager_BlockingTests.as +++ b/test/robotlegs/bender/extensions/viewManager/impl/ViewManager_BlockingTests.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl +package robotlegs.bender.extensions.viewManager.impl { import flash.display.DisplayObject; import flash.display.DisplayObjectContainer; @@ -16,10 +16,10 @@ package org.robotlegs.v2.extensions.viewManager.impl import org.hamcrest.object.equalTo; import org.hamcrest.object.isFalse; import org.hamcrest.object.isTrue; - import org.robotlegs.v2.extensions.viewManager.api.IViewClassInfo; - import org.robotlegs.v2.extensions.viewManager.api.IViewListener; - import org.robotlegs.v2.extensions.viewManager.impl.support.ViewHandlerSupport; - import org.robotlegs.v2.extensions.viewManager.integration.listeners.AutoStageListener; + import robotlegs.bender.extensions.viewManager.api.IViewClassInfo; + import robotlegs.bender.extensions.viewManager.api.IViewListener; + import robotlegs.bender.extensions.viewManager.impl.support.ViewHandlerSupport; + import robotlegs.bender.extensions.viewManager.integration.listeners.AutoStageListener; public class ViewManager_BlockingTests { @@ -65,7 +65,7 @@ package org.robotlegs.v2.extensions.viewManager.impl const skipSecond:Boolean = !((combinedResponse & 0xAAAAAAAA) ^ (interests << 1)); assertThat(skipFirst, isFalse()); assertThat(skipSecond, isTrue()); - // shift interest to form blocking interest + // shift interest to form blocking interest assertThat(0x000001 << 1, equalTo(0x000002)); assertThat(0x000004 << 1, equalTo(0x000008)); } diff --git a/test/org/robotlegs/v2/extensions/viewManager/impl/ViewManager_OptimisationTests.as b/test/robotlegs/bender/extensions/viewManager/impl/ViewManager_OptimisationTests.as similarity index 91% rename from test/org/robotlegs/v2/extensions/viewManager/impl/ViewManager_OptimisationTests.as rename to test/robotlegs/bender/extensions/viewManager/impl/ViewManager_OptimisationTests.as index 92453a06..902cc482 100644 --- a/test/org/robotlegs/v2/extensions/viewManager/impl/ViewManager_OptimisationTests.as +++ b/test/robotlegs/bender/extensions/viewManager/impl/ViewManager_OptimisationTests.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl +package robotlegs.bender.extensions.viewManager.impl { import flash.display.DisplayObject; import flash.display.DisplayObjectContainer; @@ -14,10 +14,10 @@ package org.robotlegs.v2.extensions.viewManager.impl import org.fluint.uiImpersonation.UIImpersonator; import org.hamcrest.assertThat; import org.hamcrest.object.equalTo; - import org.robotlegs.v2.extensions.viewManager.api.IViewClassInfo; - import org.robotlegs.v2.extensions.viewManager.api.IViewListener; - import org.robotlegs.v2.extensions.viewManager.impl.support.ViewHandlerSupport; - import org.robotlegs.v2.extensions.viewManager.integration.listeners.AutoStageListener; + import robotlegs.bender.extensions.viewManager.api.IViewClassInfo; + import robotlegs.bender.extensions.viewManager.api.IViewListener; + import robotlegs.bender.extensions.viewManager.impl.support.ViewHandlerSupport; + import robotlegs.bender.extensions.viewManager.integration.listeners.AutoStageListener; public class ViewManager_OptimisationTests { diff --git a/test/org/robotlegs/v2/extensions/viewManager/impl/ViewManager_TimingTests.as b/test/robotlegs/bender/extensions/viewManager/impl/ViewManager_TimingTests.as similarity index 84% rename from test/org/robotlegs/v2/extensions/viewManager/impl/ViewManager_TimingTests.as rename to test/robotlegs/bender/extensions/viewManager/impl/ViewManager_TimingTests.as index c579721f..b1ce1c03 100644 --- a/test/org/robotlegs/v2/extensions/viewManager/impl/ViewManager_TimingTests.as +++ b/test/robotlegs/bender/extensions/viewManager/impl/ViewManager_TimingTests.as @@ -1,11 +1,11 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl +package robotlegs.bender.extensions.viewManager.impl { import flash.display.DisplayObject; import flash.display.DisplayObjectContainer; @@ -14,10 +14,10 @@ package org.robotlegs.v2.extensions.viewManager.impl import org.flexunit.assertThat; import org.fluint.uiImpersonation.UIImpersonator; import org.hamcrest.object.equalTo; - import org.robotlegs.v2.extensions.viewManager.api.IViewClassInfo; - import org.robotlegs.v2.extensions.viewManager.api.IViewListener; - import org.robotlegs.v2.extensions.viewManager.impl.support.ViewHandlerSupport; - import org.robotlegs.v2.extensions.viewManager.integration.listeners.AutoStageListener; + import robotlegs.bender.extensions.viewManager.api.IViewClassInfo; + import robotlegs.bender.extensions.viewManager.api.IViewListener; + import robotlegs.bender.extensions.viewManager.impl.support.ViewHandlerSupport; + import robotlegs.bender.extensions.viewManager.integration.listeners.AutoStageListener; public class ViewManager_TimingTests { diff --git a/test/org/robotlegs/v2/extensions/viewManager/impl/support/CustomSprite.as b/test/robotlegs/bender/extensions/viewManager/impl/support/CustomSprite.as similarity index 82% rename from test/org/robotlegs/v2/extensions/viewManager/impl/support/CustomSprite.as rename to test/robotlegs/bender/extensions/viewManager/impl/support/CustomSprite.as index d0112d04..be0e6f12 100644 --- a/test/org/robotlegs/v2/extensions/viewManager/impl/support/CustomSprite.as +++ b/test/robotlegs/bender/extensions/viewManager/impl/support/CustomSprite.as @@ -1,17 +1,17 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl.support +package robotlegs.bender.extensions.viewManager.impl.support { import flash.display.Sprite; public class CustomSprite extends Sprite { - + public function CustomSprite() { } diff --git a/test/org/robotlegs/v2/extensions/viewManager/impl/support/TreeSpriteSupport.as b/test/robotlegs/bender/extensions/viewManager/impl/support/TreeSpriteSupport.as similarity index 86% rename from test/org/robotlegs/v2/extensions/viewManager/impl/support/TreeSpriteSupport.as rename to test/robotlegs/bender/extensions/viewManager/impl/support/TreeSpriteSupport.as index 9be73410..14d78028 100644 --- a/test/org/robotlegs/v2/extensions/viewManager/impl/support/TreeSpriteSupport.as +++ b/test/robotlegs/bender/extensions/viewManager/impl/support/TreeSpriteSupport.as @@ -1,31 +1,31 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl.support +package robotlegs.bender.extensions.viewManager.impl.support { import flash.display.Sprite; - + public class TreeSpriteSupport extends Sprite { - + // Testable constants public const children:Vector. = new Vector.(); - - public function TreeSpriteSupport(tree_depth:uint, tree_width:uint) { + + public function TreeSpriteSupport(tree_depth:uint, tree_width:uint) { populate(tree_depth, tree_width); } - + protected function populate(tree_depth:uint, tree_width:uint):void { if(tree_depth == 0) return; - + var iLength:uint = tree_width; for (var i:uint = 0; i < iLength; i++) - { + { var child:TreeSpriteSupport = new TreeSpriteSupport(tree_depth-1, tree_width); children.push(child); addChild(child); diff --git a/test/org/robotlegs/v2/extensions/viewManager/impl/support/ViewHandlerSupport.as b/test/robotlegs/bender/extensions/viewManager/impl/support/ViewHandlerSupport.as similarity index 86% rename from test/org/robotlegs/v2/extensions/viewManager/impl/support/ViewHandlerSupport.as rename to test/robotlegs/bender/extensions/viewManager/impl/support/ViewHandlerSupport.as index ee05d5ad..9b2bb324 100644 --- a/test/org/robotlegs/v2/extensions/viewManager/impl/support/ViewHandlerSupport.as +++ b/test/robotlegs/bender/extensions/viewManager/impl/support/ViewHandlerSupport.as @@ -1,19 +1,19 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewManager.impl.support +package robotlegs.bender.extensions.viewManager.impl.support { import flash.display.DisplayObject; import flash.events.EventDispatcher; - import org.robotlegs.v2.extensions.viewManager.api.IViewClassInfo; - import org.robotlegs.v2.extensions.viewManager.api.IViewHandler; - import org.robotlegs.v2.extensions.viewManager.api.ViewHandlerEvent; + import robotlegs.bender.extensions.viewManager.api.IViewClassInfo; + import robotlegs.bender.extensions.viewManager.api.IViewHandler; + import robotlegs.bender.extensions.viewManager.api.ViewHandlerEvent; - [Event(name="configurationChange", type="org.robotlegs.v2.extensions.viewManager.api.ViewHandlerEvent")] + [Event(name="configurationChange", type="robotlegs.bender.extensions.viewManager.api.ViewHandlerEvent")] public class ViewHandlerSupport extends EventDispatcher implements IViewHandler { diff --git a/test/org/robotlegs/v2/extensions/viewMap/impl/ViewMapTest.as b/test/robotlegs/bender/extensions/viewMap/impl/ViewMapTest.as similarity index 88% rename from test/org/robotlegs/v2/extensions/viewMap/impl/ViewMapTest.as rename to test/robotlegs/bender/extensions/viewMap/impl/ViewMapTest.as index e85401dd..06b47998 100644 --- a/test/org/robotlegs/v2/extensions/viewMap/impl/ViewMapTest.as +++ b/test/robotlegs/bender/extensions/viewMap/impl/ViewMapTest.as @@ -1,15 +1,15 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewMap.impl +package robotlegs.bender.extensions.viewMap.impl { import org.flexunit.asserts.*; - import org.robotlegs.v2.extensions.viewManager.impl.ViewClassInfo; - import org.robotlegs.v2.core.impl.TypeMatcher; + import robotlegs.bender.extensions.viewManager.impl.ViewClassInfo; + import robotlegs.bender.core.impl.TypeMatcher; import flash.display.MovieClip; import flash.text.TextField; import flash.display.Sprite; @@ -17,16 +17,16 @@ package org.robotlegs.v2.extensions.viewMap.impl import org.flexunit.assertThat; import org.hamcrest.object.hasProperties; import org.swiftsuspenders.Injector; - import org.robotlegs.v2.core.api.ITypeFilter; - import org.robotlegs.v2.core.api.ITypeMatcher; - import org.robotlegs.v2.core.impl.PackageMatcher; + import robotlegs.bender.core.api.ITypeFilter; + import robotlegs.bender.core.api.ITypeMatcher; + import robotlegs.bender.core.impl.PackageMatcher; import flash.display.DisplayObject; - public class ViewMapTest + public class ViewMapTest { private var instance:ViewMap; private var injector:Injector; - + private var viewReceived:*; private var mappingReceived:*; @@ -56,40 +56,40 @@ package org.robotlegs.v2.extensions.viewMap.impl { assertTrue("Failing test", true); } - + [Test] public function maps_view_as_actual_type_as_well_as_filter_types():void { const viewClassInfo:ViewClassInfo = new ViewClassInfo(MovieClip, 'flash.display.MovieClip', null); const typeMatcher:ITypeMatcher = new TypeMatcher().allOf(InteractiveObject).anyOf(Sprite, TextField); - + const typeFilter:ITypeFilter = typeMatcher.createTypeFilter(); - + const view:MovieClip = new MovieClip(); - + instance.mapViewForFilterBinding(typeFilter, viewClassInfo, view); - + const injectedClass:GreedyClassNeedingViewInjections = injector.getInstance(GreedyClassNeedingViewInjections); - + assertThat(injectedClass, hasProperties({ "interactiveObject" : view, "sprite" : view, "movieClip" : view })) } - + [Test] public function handles_mapping_by_packageFilter():void { viewReceived = null; mappingReceived = null; - + const packageMatcher:PackageMatcher = new PackageMatcher().require('flash.display'); const expectedMapping:Object = {}; expectedMapping.hasConfigs = true; const expectedView:Sprite = new Sprite(); const viewClassInfo:ViewClassInfo = new ViewClassInfo(Sprite, 'flash.display.Sprite', null); - + instance.processCallback = handleView; - + instance.createMapping(packageMatcher.createTypeFilter(), expectedMapping); instance.processView(expectedView, viewClassInfo) @@ -97,7 +97,7 @@ package org.robotlegs.v2.extensions.viewMap.impl assertEquals(expectedView, viewReceived); assertEquals(expectedMapping, mappingReceived); } - + protected function handleView(view:DisplayObject, info:ViewClassInfo, filter:ITypeFilter, mapping:*):void { viewReceived = view; @@ -115,10 +115,10 @@ class GreedyClassNeedingViewInjections { [Inject] public var interactiveObject:InteractiveObject; - + [Inject] public var sprite:Sprite; - + [Inject] public var movieClip:MovieClip; } \ No newline at end of file diff --git a/test/org/robotlegs/v2/extensions/viewMap/impl/support/ViewClassInfoSupport.as b/test/robotlegs/bender/extensions/viewMap/impl/support/ViewClassInfoSupport.as similarity index 82% rename from test/org/robotlegs/v2/extensions/viewMap/impl/support/ViewClassInfoSupport.as rename to test/robotlegs/bender/extensions/viewMap/impl/support/ViewClassInfoSupport.as index f4821b61..42878631 100644 --- a/test/org/robotlegs/v2/extensions/viewMap/impl/support/ViewClassInfoSupport.as +++ b/test/robotlegs/bender/extensions/viewMap/impl/support/ViewClassInfoSupport.as @@ -1,23 +1,23 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ -package org.robotlegs.v2.extensions.viewMap.impl.support +package robotlegs.bender.extensions.viewMap.impl.support { public class ViewClassInfoSupport extends ViewClassInfo { - + public function ViewClassInfoSupport(object:Object) { - - + + super(); } - + } } diff --git a/test/suites/CommandFlowTestSuite.as b/test/suites/CommandFlowTestSuite.as index fa180055..3b530c7c 100644 --- a/test/suites/CommandFlowTestSuite.as +++ b/test/suites/CommandFlowTestSuite.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.experimental.CommandFlowTest; - import org.robotlegs.v2.experimental.CommandFlowRuleTest; - import org.robotlegs.v2.experimental.CommandFlow_sequenceTest; - import org.robotlegs.v2.experimental.CommandFlowMappingTest; + import robotlegs.bender.experimental.CommandFlowTest; + import robotlegs.bender.experimental.CommandFlowRuleTest; + import robotlegs.bender.experimental.CommandFlow_sequenceTest; + import robotlegs.bender.experimental.CommandFlowMappingTest; [RunWith("org.flexunit.runners.Suite")] [Suite] @@ -18,11 +18,11 @@ package suites { public var commandFlowTests:CommandFlowTest; - + public var commandFlowRuleTest:CommandFlowRuleTest; - + public var commandFlow_sequenceTest:CommandFlow_sequenceTest; - + public var commandFlowMappingTest:CommandFlowMappingTest; } } \ No newline at end of file diff --git a/test/suites/CommandMapTestSuite.as b/test/suites/CommandMapTestSuite.as index cf181ab2..3bcd4c82 100644 --- a/test/suites/CommandMapTestSuite.as +++ b/test/suites/CommandMapTestSuite.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.extensions.commandMap.impl.CommandMapTests; + import robotlegs.bender.extensions.commandMap.impl.CommandMapTests; [RunWith("org.flexunit.runners.Suite")] [Suite] diff --git a/test/suites/ConfigManagerTestSuite.as b/test/suites/ConfigManagerTestSuite.as index 9513a136..496362a3 100644 --- a/test/suites/ConfigManagerTestSuite.as +++ b/test/suites/ConfigManagerTestSuite.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.core.impl.ConfigManagerTests; + import robotlegs.bender.core.impl.ConfigManagerTests; [RunWith("org.flexunit.runners.Suite")] [Suite] diff --git a/test/suites/ContextBuilderTestSuite.as b/test/suites/ContextBuilderTestSuite.as index b7938b6a..ecc92e65 100644 --- a/test/suites/ContextBuilderTestSuite.as +++ b/test/suites/ContextBuilderTestSuite.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.core.impl.ContextBuilderTests; + import robotlegs.bender.core.impl.ContextBuilderTests; [RunWith("org.flexunit.runners.Suite")] [Suite] diff --git a/test/suites/ContextTestSuite.as b/test/suites/ContextTestSuite.as index cb7c9ece..4a7879e3 100644 --- a/test/suites/ContextTestSuite.as +++ b/test/suites/ContextTestSuite.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.core.impl.ContextTests; + import robotlegs.bender.core.impl.ContextTests; [RunWith("org.flexunit.runners.Suite")] [Suite] diff --git a/test/suites/EventCommandMapTestSuite.as b/test/suites/EventCommandMapTestSuite.as index c8de6b3a..9f88290e 100644 --- a/test/suites/EventCommandMapTestSuite.as +++ b/test/suites/EventCommandMapTestSuite.as @@ -1,16 +1,16 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.extensions.eventCommandMap.impl.EventCommandMapTests; - import org.robotlegs.v2.extensions.eventCommandMap.impl.EventCommandTrigger_BasicTests; - import org.robotlegs.v2.extensions.eventCommandMap.impl.EventCommandTrigger_GuardTests; - import org.robotlegs.v2.extensions.eventCommandMap.impl.EventCommandTrigger_HookTests; + import robotlegs.bender.extensions.eventCommandMap.impl.EventCommandMapTests; + import robotlegs.bender.extensions.eventCommandMap.impl.EventCommandTrigger_BasicTests; + import robotlegs.bender.extensions.eventCommandMap.impl.EventCommandTrigger_GuardTests; + import robotlegs.bender.extensions.eventCommandMap.impl.EventCommandTrigger_HookTests; [RunWith("org.flexunit.runners.Suite")] [Suite] diff --git a/test/suites/EventMapTestSuite.as b/test/suites/EventMapTestSuite.as index 16229d89..ffddc8e7 100644 --- a/test/suites/EventMapTestSuite.as +++ b/test/suites/EventMapTestSuite.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.extensions.eventMap.impl.EventMapTest; - import org.robotlegs.v2.extensions.eventMap.impl.EventMapConfigTest; + import robotlegs.bender.extensions.eventMap.impl.EventMapTest; + import robotlegs.bender.extensions.eventMap.impl.EventMapConfigTest; [RunWith("org.flexunit.runners.Suite")] [Suite] diff --git a/test/suites/ExtensionManagerTestSuite.as b/test/suites/ExtensionManagerTestSuite.as index e6ba5499..c15311e5 100644 --- a/test/suites/ExtensionManagerTestSuite.as +++ b/test/suites/ExtensionManagerTestSuite.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.core.impl.ExtensionManagerTests; + import robotlegs.bender.core.impl.ExtensionManagerTests; [RunWith("org.flexunit.runners.Suite")] [Suite] diff --git a/test/suites/GuardsTestSuite.as b/test/suites/GuardsTestSuite.as index d25e9124..245ade48 100644 --- a/test/suites/GuardsTestSuite.as +++ b/test/suites/GuardsTestSuite.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.extensions.guards.impl.GuardGroupTests; + import robotlegs.bender.extensions.guards.impl.GuardGroupTests; [RunWith("org.flexunit.runners.Suite")] [Suite] diff --git a/test/suites/HooksTestSuite.as b/test/suites/HooksTestSuite.as index cd2ed468..d1098249 100644 --- a/test/suites/HooksTestSuite.as +++ b/test/suites/HooksTestSuite.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.extensions.hooks.impl.HookGroupTests; + import robotlegs.bender.extensions.hooks.impl.HookGroupTests; [RunWith("org.flexunit.runners.Suite")] [Suite] diff --git a/test/suites/LoggingTestSuite.as b/test/suites/LoggingTestSuite.as index c1965c1c..51018dd8 100644 --- a/test/suites/LoggingTestSuite.as +++ b/test/suites/LoggingTestSuite.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.core.impl.ContextLoggerTests; + import robotlegs.bender.core.impl.ContextLoggerTests; [RunWith("org.flexunit.runners.Suite")] [Suite] diff --git a/test/suites/MediatorMapTestSuite.as b/test/suites/MediatorMapTestSuite.as index 6a06ecad..e173f8a1 100644 --- a/test/suites/MediatorMapTestSuite.as +++ b/test/suites/MediatorMapTestSuite.as @@ -1,25 +1,25 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.extensions.mediatorMap.MediatorMapRemovalAndReparentingTests; - import org.robotlegs.v2.extensions.mediatorMap.MediatorMapTest; - import org.robotlegs.v2.extensions.mediatorMap.impl.MediatorTest; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTriggerTest; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL1MediatorTriggerTest; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL2MediatorTriggerTest; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL2MediatorTrigger_strategiesTest; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTrigger_strategiesTest; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTriggerTest; - import org.robotlegs.v2.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTrigger_strategiesTest; - import org.robotlegs.v2.extensions.mediatorMap.MediatorMapExtensionTest; - import org.robotlegs.v2.extensions.mediatorMap.impl.MediatorSugarTest; - import org.robotlegs.v2.extensions.mediatorMap.MediatorMapV1Test; + import robotlegs.bender.extensions.mediatorMap.MediatorMapRemovalAndReparentingTests; + import robotlegs.bender.extensions.mediatorMap.MediatorMapTest; + import robotlegs.bender.extensions.mediatorMap.impl.MediatorTest; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTriggerTest; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL1MediatorTriggerTest; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL2MediatorTriggerTest; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL2MediatorTrigger_strategiesTest; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.DuckTypedMediatorTrigger_strategiesTest; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTriggerTest; + import robotlegs.bender.extensions.mediatorMap.utilities.triggers.RL1AndRL2MediatorTrigger_strategiesTest; + import robotlegs.bender.extensions.mediatorMap.MediatorMapExtensionTest; + import robotlegs.bender.extensions.mediatorMap.impl.MediatorSugarTest; + import robotlegs.bender.extensions.mediatorMap.MediatorMapV1Test; [RunWith("org.flexunit.runners.Suite")] [Suite] @@ -28,7 +28,7 @@ package suites public var mediatorMapTest:MediatorMapTest; public var mediatorReparentingTests:MediatorMapRemovalAndReparentingTests; - + public var mediatorTest:MediatorTest; public var duckTypedMediatorTriggerTest:DuckTypedMediatorTriggerTest; @@ -38,17 +38,17 @@ package suites public var rl2MediatorTriggerTest:RL2MediatorTriggerTest; public var rl1AndRL2MediatorTriggerTest:RL1AndRL2MediatorTriggerTest; - + public var rl2MediatorTrigger_strategiesTest:RL2MediatorTrigger_strategiesTest; - + public var duckTypedMediatorTrigger_strategiesTest:DuckTypedMediatorTrigger_strategiesTest; - + public var rl1AndRL2MediatorTrigger_strategiesTest:RL1AndRL2MediatorTrigger_strategiesTest; - + public var mediatorMapExtensionTest:MediatorMapExtensionTest; - + public var mediatorSugarTest:MediatorSugarTest; - + public var mediatorMapV1FunctionalityTest:MediatorMapV1Test; } } \ No newline at end of file diff --git a/test/suites/TypeMatchingTestSuite.as b/test/suites/TypeMatchingTestSuite.as index 6f1e105b..f4d47989 100644 --- a/test/suites/TypeMatchingTestSuite.as +++ b/test/suites/TypeMatchingTestSuite.as @@ -1,17 +1,17 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.core.impl.TypeFilterTest; - import org.robotlegs.v2.core.impl.TypeFilterUsageTest; - import org.robotlegs.v2.core.impl.TypeMatcherTest; - import org.robotlegs.v2.core.impl.PackageFilter_descriptorTest; - import org.robotlegs.v2.core.impl.PackageMatchingTest; + import robotlegs.bender.core.impl.TypeFilterTest; + import robotlegs.bender.core.impl.TypeFilterUsageTest; + import robotlegs.bender.core.impl.TypeMatcherTest; + import robotlegs.bender.core.impl.PackageFilter_descriptorTest; + import robotlegs.bender.core.impl.PackageMatchingTest; [RunWith("org.flexunit.runners.Suite")] [Suite] @@ -23,9 +23,9 @@ package suites public var typeFilterUsageTest:TypeFilterUsageTest; public var typeMatcherTest:TypeMatcherTest; - + public var packageMatcherTest:PackageMatchingTest; - + public var packageFilter_descriptorTest:PackageFilter_descriptorTest; } } \ No newline at end of file diff --git a/test/suites/UtilityPackageFunctionsSuite.as b/test/suites/UtilityPackageFunctionsSuite.as index 8c23a867..65f96e10 100644 --- a/test/suites/UtilityPackageFunctionsSuite.as +++ b/test/suites/UtilityPackageFunctionsSuite.as @@ -1,13 +1,13 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.core.utilities.RunningInFlexUtilFunctionTest; + import robotlegs.bender.core.utilities.RunningInFlexUtilFunctionTest; [RunWith("org.flexunit.runners.Suite")] [Suite] diff --git a/test/suites/ViewInjectionMapTestSuite.as b/test/suites/ViewInjectionMapTestSuite.as index 313d2d88..c4512aa0 100644 --- a/test/suites/ViewInjectionMapTestSuite.as +++ b/test/suites/ViewInjectionMapTestSuite.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.extensions.viewInjectionMap.impl.ViewInjectionMapTest; - + import robotlegs.bender.extensions.viewInjectionMap.impl.ViewInjectionMapTest; + [RunWith("org.flexunit.runners.Suite")] [Suite] public class ViewInjectionMapTestSuite diff --git a/test/suites/ViewManagerTestSuite.as b/test/suites/ViewManagerTestSuite.as index 54423a19..1e757e29 100644 --- a/test/suites/ViewManagerTestSuite.as +++ b/test/suites/ViewManagerTestSuite.as @@ -1,20 +1,20 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.extensions.viewManager.impl.ViewManager_BasicTests; - import org.robotlegs.v2.extensions.viewManager.impl.ViewManager_BlockingTests; - import org.robotlegs.v2.extensions.viewManager.impl.ViewManager_OptimisationTests; - import org.robotlegs.v2.extensions.viewManager.impl.ViewManager_TimingTests; - import org.robotlegs.v2.extensions.viewManager.impl.ContainerBindingTest; - import org.robotlegs.v2.extensions.viewManager.impl.ContainerRegistryTest; - import org.robotlegs.v2.extensions.viewManager.impl.ViewClassInfoTest; - import org.robotlegs.v2.extensions.viewManager.api.ViewInterestsTest; + import robotlegs.bender.extensions.viewManager.impl.ViewManager_BasicTests; + import robotlegs.bender.extensions.viewManager.impl.ViewManager_BlockingTests; + import robotlegs.bender.extensions.viewManager.impl.ViewManager_OptimisationTests; + import robotlegs.bender.extensions.viewManager.impl.ViewManager_TimingTests; + import robotlegs.bender.extensions.viewManager.impl.ContainerBindingTest; + import robotlegs.bender.extensions.viewManager.impl.ContainerRegistryTest; + import robotlegs.bender.extensions.viewManager.impl.ViewClassInfoTest; + import robotlegs.bender.extensions.viewManager.api.ViewInterestsTest; [RunWith("org.flexunit.runners.Suite")] [Suite] @@ -28,13 +28,13 @@ package suites public var viewManagerOptimisationTests:ViewManager_OptimisationTests; public var viewManagerTimingTests:ViewManager_TimingTests; - + public var containerBindingTest:ContainerBindingTest; - + public var containerRegistryTest:ContainerRegistryTest; - + public var viewClassInfoTest:ViewClassInfoTest; - + public var viewInterestsTest:ViewInterestsTest; } } \ No newline at end of file diff --git a/test/suites/ViewMapTestSuite.as b/test/suites/ViewMapTestSuite.as index 16b83b84..d3759e4e 100644 --- a/test/suites/ViewMapTestSuite.as +++ b/test/suites/ViewMapTestSuite.as @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2011 the original author or authors. All Rights Reserved. -// -// NOTICE: You are permitted to use, modify, and distribute this file -// in accordance with the terms of the license agreement accompanying it. +// Copyright (c) 2011 the original author or authors. All Rights Reserved. +// +// NOTICE: You are permitted to use, modify, and distribute this file +// in accordance with the terms of the license agreement accompanying it. //------------------------------------------------------------------------------ package suites { - import org.robotlegs.v2.extensions.viewMap.impl.ViewMapTest; - + import robotlegs.bender.extensions.viewMap.impl.ViewMapTest; + [RunWith("org.flexunit.runners.Suite")] [Suite] public class ViewMapTestSuite