├── .gitignore
├── LICENSE.txt
├── README.md
├── docs
├── core
│ ├── AC_OETags.js
│ ├── all-classes.html
│ ├── all-index-A.html
│ ├── all-index-B.html
│ ├── all-index-C.html
│ ├── all-index-D.html
│ ├── all-index-E.html
│ ├── all-index-F.html
│ ├── all-index-G.html
│ ├── all-index-H.html
│ ├── all-index-I.html
│ ├── all-index-J.html
│ ├── all-index-K.html
│ ├── all-index-L.html
│ ├── all-index-M.html
│ ├── all-index-N.html
│ ├── all-index-O.html
│ ├── all-index-P.html
│ ├── all-index-Q.html
│ ├── all-index-R.html
│ ├── all-index-S.html
│ ├── all-index-T.html
│ ├── all-index-U.html
│ ├── all-index-V.html
│ ├── all-index-W.html
│ ├── all-index-X.html
│ ├── all-index-Y.html
│ ├── all-index-Z.html
│ ├── asdoc.js
│ ├── class-summary.html
│ ├── cookies.js
│ ├── help.js
│ ├── images
│ │ ├── AirIcon12x12.gif
│ │ ├── P_AlternativeMetadataIndicator_30x28_N.png
│ │ ├── collapsed.gif
│ │ ├── detailHeaderRule.jpg
│ │ ├── detailSectionHeader.jpg
│ │ ├── expanded.gif
│ │ ├── inherit-arrow.gif
│ │ ├── inheritedSummary.gif
│ │ ├── logo.jpg
│ │ ├── titleTableBottom.jpg
│ │ ├── titleTableMiddle.jpg
│ │ └── titleTableTop.jpg
│ ├── index-list.html
│ ├── index.html
│ ├── mvcexpress
│ │ ├── MvcExpress.html
│ │ ├── class-list.html
│ │ ├── core
│ │ │ ├── CommandMap.html
│ │ │ ├── MediatorMap.html
│ │ │ ├── ModuleManager.html
│ │ │ ├── ProxyMap.html
│ │ │ ├── class-list.html
│ │ │ ├── interfaces
│ │ │ │ ├── IMediatorMap.html
│ │ │ │ ├── IProxyMap.html
│ │ │ │ ├── class-list.html
│ │ │ │ └── package-detail.html
│ │ │ ├── messenger
│ │ │ │ ├── Messenger.html
│ │ │ │ ├── class-list.html
│ │ │ │ └── package-detail.html
│ │ │ └── package-detail.html
│ │ ├── modules
│ │ │ ├── ModuleCore.html
│ │ │ ├── class-list.html
│ │ │ └── package-detail.html
│ │ ├── mvc
│ │ │ ├── Command.html
│ │ │ ├── Mediator.html
│ │ │ ├── PooledCommand.html
│ │ │ ├── Proxy.html
│ │ │ ├── class-list.html
│ │ │ └── package-detail.html
│ │ ├── package-detail.html
│ │ └── utils
│ │ │ ├── AssertExpress.html
│ │ │ ├── class-list.html
│ │ │ ├── package-detail.html
│ │ │ └── package.html
│ ├── override.css
│ ├── package-frame.html
│ ├── package-list.html
│ ├── package-summary.html
│ ├── print.css
│ ├── style.css
│ └── title-bar.html
├── extensions
│ ├── ScopedLiveExtension.html
│ ├── WorkerExtension.html
│ ├── live
│ │ ├── AC_OETags.js
│ │ ├── all-classes.html
│ │ ├── all-index-A.html
│ │ ├── all-index-B.html
│ │ ├── all-index-C.html
│ │ ├── all-index-D.html
│ │ ├── all-index-E.html
│ │ ├── all-index-F.html
│ │ ├── all-index-G.html
│ │ ├── all-index-H.html
│ │ ├── all-index-I.html
│ │ ├── all-index-J.html
│ │ ├── all-index-K.html
│ │ ├── all-index-L.html
│ │ ├── all-index-M.html
│ │ ├── all-index-N.html
│ │ ├── all-index-O.html
│ │ ├── all-index-P.html
│ │ ├── all-index-Q.html
│ │ ├── all-index-R.html
│ │ ├── all-index-S.html
│ │ ├── all-index-T.html
│ │ ├── all-index-U.html
│ │ ├── all-index-V.html
│ │ ├── all-index-W.html
│ │ ├── all-index-X.html
│ │ ├── all-index-Y.html
│ │ ├── all-index-Z.html
│ │ ├── asdoc.js
│ │ ├── class-summary.html
│ │ ├── cookies.js
│ │ ├── help.js
│ │ ├── images
│ │ │ ├── AirIcon12x12.gif
│ │ │ ├── P_AlternativeMetadataIndicator_30x28_N.png
│ │ │ ├── collapsed.gif
│ │ │ ├── detailHeaderRule.jpg
│ │ │ ├── detailSectionHeader.jpg
│ │ │ ├── expanded.gif
│ │ │ ├── inherit-arrow.gif
│ │ │ ├── inheritedSummary.gif
│ │ │ ├── logo.jpg
│ │ │ ├── titleTableBottom.jpg
│ │ │ ├── titleTableMiddle.jpg
│ │ │ └── titleTableTop.jpg
│ │ ├── index-list.html
│ │ ├── index.html
│ │ ├── mvcexpress
│ │ │ └── extensions
│ │ │ │ └── live
│ │ │ │ ├── core
│ │ │ │ ├── CommandMapLive.html
│ │ │ │ ├── MediatorMapLive.html
│ │ │ │ ├── ProcessMapLive.html
│ │ │ │ ├── ProxyMapLive.html
│ │ │ │ ├── class-list.html
│ │ │ │ └── package-detail.html
│ │ │ │ ├── engine
│ │ │ │ ├── Process.html
│ │ │ │ ├── Task.html
│ │ │ │ ├── class-list.html
│ │ │ │ └── package-detail.html
│ │ │ │ ├── modules
│ │ │ │ ├── ModuleLive.html
│ │ │ │ ├── class-list.html
│ │ │ │ └── package-detail.html
│ │ │ │ └── mvc
│ │ │ │ ├── CommandLive.html
│ │ │ │ ├── MediatorLive.html
│ │ │ │ ├── PooledCommandLive.html
│ │ │ │ ├── ProxyLive.html
│ │ │ │ ├── class-list.html
│ │ │ │ └── package-detail.html
│ │ ├── override.css
│ │ ├── package-frame.html
│ │ ├── package-list.html
│ │ ├── package-summary.html
│ │ ├── print.css
│ │ ├── style.css
│ │ └── title-bar.html
│ └── scoped
│ │ ├── AC_OETags.js
│ │ ├── all-classes.html
│ │ ├── all-index-A.html
│ │ ├── all-index-B.html
│ │ ├── all-index-C.html
│ │ ├── all-index-D.html
│ │ ├── all-index-E.html
│ │ ├── all-index-F.html
│ │ ├── all-index-G.html
│ │ ├── all-index-H.html
│ │ ├── all-index-I.html
│ │ ├── all-index-J.html
│ │ ├── all-index-K.html
│ │ ├── all-index-L.html
│ │ ├── all-index-M.html
│ │ ├── all-index-N.html
│ │ ├── all-index-O.html
│ │ ├── all-index-P.html
│ │ ├── all-index-Q.html
│ │ ├── all-index-R.html
│ │ ├── all-index-S.html
│ │ ├── all-index-T.html
│ │ ├── all-index-U.html
│ │ ├── all-index-V.html
│ │ ├── all-index-W.html
│ │ ├── all-index-X.html
│ │ ├── all-index-Y.html
│ │ ├── all-index-Z.html
│ │ ├── asdoc.js
│ │ ├── class-summary.html
│ │ ├── cookies.js
│ │ ├── help.js
│ │ ├── images
│ │ ├── AirIcon12x12.gif
│ │ ├── P_AlternativeMetadataIndicator_30x28_N.png
│ │ ├── collapsed.gif
│ │ ├── detailHeaderRule.jpg
│ │ ├── detailSectionHeader.jpg
│ │ ├── expanded.gif
│ │ ├── inherit-arrow.gif
│ │ ├── inheritedSummary.gif
│ │ ├── logo.jpg
│ │ ├── titleTableBottom.jpg
│ │ ├── titleTableMiddle.jpg
│ │ └── titleTableTop.jpg
│ │ ├── index-list.html
│ │ ├── index.html
│ │ ├── mvcexpress
│ │ └── extensions
│ │ │ └── scoped
│ │ │ ├── core
│ │ │ ├── CommandMapScoped.html
│ │ │ ├── ProxyMapScoped.html
│ │ │ ├── ScopeManager.html
│ │ │ ├── class-list.html
│ │ │ ├── inject
│ │ │ │ ├── InjectRuleScopedVO.html
│ │ │ │ ├── class-list.html
│ │ │ │ └── package-detail.html
│ │ │ └── package-detail.html
│ │ │ ├── modules
│ │ │ ├── ModuleScoped.html
│ │ │ ├── class-list.html
│ │ │ └── package-detail.html
│ │ │ └── mvc
│ │ │ ├── CommandScoped.html
│ │ │ ├── MediatorScoped.html
│ │ │ ├── PooledCommandScoped.html
│ │ │ ├── ProxyScoped.html
│ │ │ ├── class-list.html
│ │ │ └── package-detail.html
│ │ ├── override.css
│ │ ├── package-frame.html
│ │ ├── package-list.html
│ │ ├── package-summary.html
│ │ ├── print.css
│ │ ├── style.css
│ │ └── title-bar.html
├── index.html
└── summary.html
├── libs
├── flexunit-4.1.0_RC2-4-as3_4.1.0.16076.swc
├── flexunit-cilistener-4.1.0_RC2-4-4.1.0.16076.swc
└── flexunit-uilistener-4.1.0_RC2-4-4.1.0.16076.swc
├── manifest.xml
├── mvcExpress-frameWork.as3proj
├── src
└── mvcexpress
│ ├── MvcExpress.as
│ ├── core
│ ├── CommandMap.as
│ ├── ExtensionManager.as
│ ├── MediatorMap.as
│ ├── ModuleManager.as
│ ├── ProxyMap.as
│ ├── ProxyMapForMediator.as
│ ├── inject
│ │ ├── InjectRuleVO.as
│ │ ├── InjectTester.as
│ │ ├── InjectViewRuleVO.as
│ │ └── PendingInject.as
│ ├── interfaces
│ │ ├── IMediatorMap.as
│ │ └── IProxyMap.as
│ ├── lazy
│ │ └── LazyProxyVO.as
│ ├── messenger
│ │ ├── HandlerVO.as
│ │ └── Messenger.as
│ ├── namespace
│ │ └── pureLegsCore.as
│ └── traceObjects
│ │ ├── MvcTraceActions.as
│ │ ├── TraceObj.as
│ │ ├── TraceObj_SendMessage.as
│ │ ├── command
│ │ └── TraceCommand_sendMessage.as
│ │ ├── commandMap
│ │ ├── TraceCommandMap_execute.as
│ │ ├── TraceCommandMap_handleCommandExecute.as
│ │ ├── TraceCommandMap_map.as
│ │ └── TraceCommandMap_unmap.as
│ │ ├── errors
│ │ └── TraceError.as
│ │ ├── mediator
│ │ ├── TraceMediator_addHandler.as
│ │ └── TraceMediator_sendMessage.as
│ │ ├── mediatorMap
│ │ ├── TraceMediatorMap_map.as
│ │ ├── TraceMediatorMap_mediate.as
│ │ ├── TraceMediatorMap_unmap.as
│ │ └── TraceMediatorMap_unmediate.as
│ │ ├── messenger
│ │ ├── TraceMessenger_addHandler.as
│ │ ├── TraceMessenger_removeHandler.as
│ │ ├── TraceMessenger_send.as
│ │ └── TraceMessenger_send_handler.as
│ │ ├── moduleBase
│ │ └── TraceModuleBase_sendMessage.as
│ │ ├── moduleManager
│ │ ├── TraceModuleManager_createModule.as
│ │ └── TraceModuleManager_disposeModule.as
│ │ ├── proxy
│ │ └── TraceProxy_sendMessage.as
│ │ └── proxyMap
│ │ ├── TraceProxyMap_injectPending.as
│ │ ├── TraceProxyMap_injectStuff.as
│ │ ├── TraceProxyMap_lazyMap.as
│ │ ├── TraceProxyMap_map.as
│ │ └── TraceProxyMap_unmap.as
│ ├── modules
│ └── ModuleCore.as
│ ├── mvc
│ ├── Command.as
│ ├── Mediator.as
│ ├── PooledCommand.as
│ └── Proxy.as
│ └── utils
│ ├── AssertExpress.as
│ ├── checkClassStringConstants.as
│ └── checkClassSuperclass.as
├── srcExtensions
└── mvcexpress
│ └── extensions
│ ├── combo
│ ├── scopedLive
│ │ ├── core
│ │ │ ├── CommandMapScopedLive.as
│ │ │ └── ProxyMapScopedLive.as
│ │ ├── modules
│ │ │ └── ModuleScopedLive.as
│ │ └── mvc
│ │ │ ├── CommandScopedLive.as
│ │ │ ├── MediatorScopedLive.as
│ │ │ ├── PooledCommandScopedLive.as
│ │ │ └── ProxyScopedLive.as
│ └── scopedSignalsExpress
│ │ └── mvc
│ │ └── MediatorScopedSignals.as
│ ├── flex
│ └── core
│ │ └── MediatorMapFlex.as
│ ├── live
│ ├── core
│ │ ├── CommandMapLive.as
│ │ ├── MediatorMapLive.as
│ │ ├── ProcessMapLive.as
│ │ ├── ProxyMapLive.as
│ │ └── inject
│ │ │ └── InjectRuleTaskVO.as
│ ├── engine
│ │ ├── Process.as
│ │ ├── ProcessTimerVO.as
│ │ └── Task.as
│ ├── modules
│ │ └── ModuleLive.as
│ ├── mvc
│ │ ├── CommandLive.as
│ │ ├── MediatorLive.as
│ │ ├── PooledCommandLive.as
│ │ └── ProxyLive.as
│ ├── taskTests
│ │ ├── TaskTestVO.as
│ │ └── TestRuleVO.as
│ └── traceObjects
│ │ ├── MvcTraceActionsLive.as
│ │ ├── TraceProcess_sendMessage.as
│ │ ├── process
│ │ ├── TraceProcess_addFirstTask.as
│ │ ├── TraceProcess_addHandler.as
│ │ ├── TraceProcess_addTask.as
│ │ ├── TraceProcess_addTaskAfter.as
│ │ ├── TraceProcess_disableTask.as
│ │ ├── TraceProcess_enableTask.as
│ │ ├── TraceProcess_removeAllTasks.as
│ │ └── TraceProcess_removeTask.as
│ │ └── processMap
│ │ ├── TraceProcessMap_provide.as
│ │ └── TraceProcessMap_unprovide.as
│ ├── scoped
│ ├── core
│ │ ├── CommandMapScoped.as
│ │ ├── ProxyMapScoped.as
│ │ ├── ScopeManager.as
│ │ ├── inject
│ │ │ └── InjectRuleScopedVO.as
│ │ └── traceObjects
│ │ │ ├── TraceCommand_sendScopeMessage.as
│ │ │ ├── TraceMediator_sendScopeMessage.as
│ │ │ ├── TraceModuleBase_sendScopeMessage.as
│ │ │ ├── TraceModuleManager_registerScope.as
│ │ │ ├── TraceModuleManager_unregisterScope.as
│ │ │ ├── TraceProxyMap_scopeMap.as
│ │ │ ├── TraceProxyMap_scopeUnmap.as
│ │ │ ├── TraceProxyMap_scopedInjectPending.as
│ │ │ └── TraceProxy_sendScopeMessage.as
│ ├── modules
│ │ └── ModuleScoped.as
│ └── mvc
│ │ ├── CommandScoped.as
│ │ ├── MediatorScoped.as
│ │ ├── PooledCommandScoped.as
│ │ └── ProxyScoped.as
│ ├── signalsExpress
│ └── mvc
│ │ └── MediatorSignals.as
│ ├── unpuremvc
│ ├── core
│ │ ├── UnpureCommandMap.as
│ │ └── messenger
│ │ │ └── UnpureMessenger.as
│ ├── patterns
│ │ ├── command
│ │ │ ├── UnpureICommand.as
│ │ │ ├── UnpureMacroCommand.as
│ │ │ └── UnpureSimpleCommand.as
│ │ ├── facade
│ │ │ └── UnpureFacade.as
│ │ ├── mediator
│ │ │ └── UnpureMediator.as
│ │ ├── observer
│ │ │ ├── UnpureNotification.as
│ │ │ ├── UnpureObserver.as
│ │ │ └── observerCommand
│ │ │ │ └── UnpureObserverCommand.as
│ │ └── proxy
│ │ │ └── UnpureProxy.as
│ └── unpureCore
│ │ ├── UnpureController.as
│ │ ├── UnpureModel.as
│ │ └── UnpureView.as
│ └── workers
│ ├── core
│ ├── CommandMapWorker.as
│ ├── WorkerManager.as
│ ├── messenger
│ │ └── WorkerMessenger.as
│ └── traceObjects
│ │ ├── command
│ │ └── TraceCommand_sendWorkerMessage.as
│ │ ├── mediator
│ │ └── TraceMediator_sendWorkerMessage.as
│ │ ├── moduleBase
│ │ └── TraceModuleBase_sendWorkerMessage.as
│ │ └── proxy
│ │ └── TraceProxy_sendWorkerMessage.as
│ ├── data
│ └── ClassAliasRegistry.as
│ ├── display
│ └── WorkerSprite.as
│ ├── modules
│ └── ModuleWorker.as
│ └── mvc
│ ├── CommandWorker.as
│ ├── MediatorWorker.as
│ ├── PooledCommandWorker.as
│ └── ProxyWorker.as
└── test
├── AllTestSuites.as
├── MvcExpressTestFlexRunner.mxml
├── MvcExpressTestRunner.as
├── constants
└── TestExtensionDict.as
├── integration
├── aGenericExtension
│ ├── fake
│ │ ├── GenericFakeExtensionModule.as
│ │ ├── core
│ │ │ ├── FakeExtensionCommandMap.as
│ │ │ ├── FakeExtensionMediatorMap.as
│ │ │ ├── FakeExtensionMessenger.as
│ │ │ └── FakeExtensionProxyMap.as
│ │ ├── module
│ │ │ └── FakeExtensionModule.as
│ │ └── mvc
│ │ │ ├── FakeExtensionTestCommand.as
│ │ │ ├── FakeExtensionTestMediator.as
│ │ │ └── FakeExtensionTestProxy.as
│ ├── live
│ │ ├── GenericLiveExtensionModule.as
│ │ └── mvc
│ │ │ ├── LiveExtensionTestCommand.as
│ │ │ ├── LiveExtensionTestMediator.as
│ │ │ └── LiveExtensionTestProxy.as
│ └── scoped
│ │ ├── GenericScopedExtensionModule.as
│ │ └── mvc
│ │ ├── ScopedExtensionTestCommand.as
│ │ ├── ScopedExtensionTestMediator.as
│ │ └── ScopedExtensionTestProxy.as
├── aGenericTestObjects
│ ├── GenericTestModule.as
│ ├── constants
│ │ ├── GenericScopeIds.as
│ │ ├── GenericTestMessage.as
│ │ └── GenericTestStrings.as
│ ├── controller
│ │ ├── GenericCommand.as
│ │ ├── GenericCommand_withInject.as
│ │ └── GenericCommand_withScopedInject.as
│ ├── model
│ │ ├── GenericTestProxy.as
│ │ ├── GenericTestProxy_withInject.as
│ │ ├── GenericTestProxy_withScopedInject.as
│ │ ├── IGenericTestProxy.as
│ │ └── scoped
│ │ │ └── GenericTestProxyScoped.as
│ └── view
│ │ ├── GenericViewObject.as
│ │ ├── GenericViewObjectMediator.as
│ │ ├── GenericViewObjectMediator_handlingMessage.as
│ │ ├── GenericViewObjectMediator_handlingScopeMessage.as
│ │ ├── GenericViewObjectMediator_withInject.as
│ │ ├── GenericViewObjectMediator_withInterfaceInject.as
│ │ ├── GenericViewObjectMediator_withScopedInject.as
│ │ └── GenericViewObjectMediator_withScopedInject_handlingScopeMessage.as
├── aGenericTestScopedObjects
│ └── GenericScopedTestModule.as
├── aframworkHelpers
│ └── ProxyMapCleaner.as
├── commandPooling
│ ├── CommandPoolingTests.as
│ └── testObj
│ │ ├── CommPoolingDependencyProxy.as
│ │ ├── CommandPoolingModule.as
│ │ └── controller
│ │ ├── CommPoolingDependantCommand.as
│ │ ├── CommPoolingDependencyRemove.as
│ │ ├── CommPoolingLockedCommand.as
│ │ ├── CommPoolingLockedFailCommand.as
│ │ ├── CommPoolingSimpleCommand.as
│ │ └── CommPoolingUnlockedCommand.as
├── extensionChecking
│ ├── ExtensionCheckingTestsBase.as
│ ├── ExtensionCheckingTestsGeneral.as
│ ├── ExtensionCheckingTestsLive.as
│ └── ExtensionCheckingTestsScoped.as
├── lazyProxy
│ ├── LazyProxyTests.as
│ └── testObj
│ │ └── moduleA
│ │ ├── LazyNormalProxy.as
│ │ ├── LazyProxy.as
│ │ └── LazyProxyModuleA.as
├── mediating
│ ├── MediatingTestingVars.as
│ ├── MediatingTests.as
│ ├── MediatingWithTests.as
│ └── testObj
│ │ ├── MediatingModule.as
│ │ └── view
│ │ ├── MediatingBaseViewMediator.as
│ │ ├── MediatingIViewMediator.as
│ │ ├── MediatingViewMediator.as
│ │ ├── chain
│ │ ├── MediatingChainBaseViewMediator.as
│ │ ├── MediatingChainIViewMediator.as
│ │ └── MediatingChainViewMediator.as
│ │ └── viewObj
│ │ ├── IMediatingView.as
│ │ ├── MediatingBaseView.as
│ │ ├── MediatingView.as
│ │ └── MediatingWrongView.as
├── moduleInitTests
│ ├── ModuleInitTests.as
│ └── testObj
│ │ └── InitTestModuleCore.as
├── proxyMap
│ ├── ProxyMapTests.as
│ └── testObj
│ │ ├── TestConstCommand.as
│ │ ├── TestConstObject.as
│ │ ├── TestContsView.as
│ │ ├── TestContsViewMediator.as
│ │ ├── TestProxyInjectFromProxyCommand.as
│ │ └── TestWithConstNameInjectProxy.as
├── proxyMapMediatorProtectionTests
│ └── ProxyMapMediatorProtectionTests.as
├── scopeControl
│ └── ScopeControlTests.as
├── scopedMessaging
│ ├── ChannelingTests.as
│ └── testObj
│ │ ├── moduleA
│ │ ├── ChannelAMediator.as
│ │ ├── ChannelModuleA.as
│ │ ├── ChannelViewA.as
│ │ └── ComTest1Command.as
│ │ └── moduleB
│ │ ├── ChannelBMediator.as
│ │ └── ChannelModuleB.as
└── scopedProxy
│ ├── ScopedProxyTests.as
│ └── testObj
│ ├── moduleA
│ ├── ScopedProxyLocalInjectMediator.as
│ ├── ScopedProxyLocalInjectView.as
│ ├── ScopedProxyModuleA.as
│ └── ScopedTestProxy.as
│ └── moduleB
│ ├── ScopedProxpyTestCommand.as
│ ├── ScopedProxyInjectMediator.as
│ ├── ScopedProxyInjectProxy.as
│ ├── ScopedProxyInjectView.as
│ └── ScopedProxyModuleB.as
├── noiseandheat
└── flexunit
│ └── visuallistener
│ ├── VisualListener.as
│ └── components
│ ├── Nugget.as
│ └── TwoToneLabel.as
├── suites
├── SuiteModuleNames.as
├── TestViewEvent.as
├── commandMap
│ ├── CommandMapTests.as
│ └── commands
│ │ ├── ExtendedSuperParamCommand.as
│ │ ├── ExtendedeSuperInterfaceParamsCommand.as
│ │ ├── NoExecuteCommand.as
│ │ ├── NoParamsCommand.as
│ │ ├── SuperInterfaceParamCommand.as
│ │ ├── SuperParamCommand.as
│ │ ├── TestCommand1.as
│ │ └── TestCommand2.as
├── commands
│ └── CommandsTests.as
├── fatureGetProxy
│ └── FeatureGetProxyTests.as
├── general
│ └── GeneralTests.as
├── mediatorMap
│ ├── MediatorMapTests.as
│ └── medatorMaptestObj
│ │ ├── MediatorMapTestSprite.as
│ │ ├── MediatorMapTestSpriteMediator.as
│ │ └── MediatorMapTestSpriteMediator2.as
├── mediators
│ └── MediatorTests.as
├── messenger
│ └── MessengerTests.as
├── modules
│ ├── ModularTests.as
│ └── objects
│ │ └── CoreModuleTester.as
├── proxies
│ └── ProxyTests.as
├── proxyMap
│ ├── NamedInterfacedProxyMapTests.as
│ ├── OldProxyMapTests.as
│ ├── namedProxyTestObj
│ │ └── NamedProxyTestingProxy.as
│ └── proxyTestObj
│ │ ├── ITestProxy.as
│ │ ├── ProxyTestObj.as
│ │ └── TestProxy.as
├── testExamples
│ ├── TestCase1.as
│ └── tempObj
│ │ └── TestingObject.as
├── testObjects
│ ├── ExtendedTestObject.as
│ ├── IExtendedTestObject.as
│ ├── ITestObject.as
│ ├── TestObject.as
│ ├── controller
│ │ └── GetProxyTestCommand.as
│ ├── model
│ │ ├── ExtendedSimpleTestProxy.as
│ │ ├── ISimpleTestProxy.as
│ │ └── SimpleTestProxy.as
│ ├── moduleExternal
│ │ ├── ExternalDataProxy.as
│ │ ├── ExternalLocalCommand.as
│ │ ├── ExternalModule.as
│ │ ├── ExternalRemoteCommand.as
│ │ ├── ExternalView.as
│ │ └── ExternalViewMediator.as
│ ├── moduleMain
│ │ ├── MainDataProxy.as
│ │ ├── MainLocalCommand.as
│ │ ├── MainModule.as
│ │ ├── MainModuleFull.as
│ │ ├── MainRemoteCommand.as
│ │ ├── MainView.as
│ │ └── MainViewMediator.as
│ ├── moduleTest
│ │ └── TestModule.as
│ └── view
│ │ ├── MediatorSprite.as
│ │ ├── MediatorSpriteDispacherChild.as
│ │ └── MediatorSpriteMediator.as
└── utils
│ ├── UtilsTests.as
│ └── objects
│ ├── ClassA.as
│ ├── ClassASubclass.as
│ ├── ClassASubclassSubclass.as
│ ├── ClassB.as
│ ├── ClassBSubclass.as
│ ├── ConstantsA.as
│ ├── ConstantsAB.as
│ └── ConstantsB.as
└── utils
└── AsyncUtil.as
/.gitignore:
--------------------------------------------------------------------------------
1 | obj
2 | bin
3 | mvcExpressDocs.docproj
4 | speedTest
5 | /mvcExpress-framework-*.swc
6 | /selfNotes.txt
7 |
8 | /.idea/workspace.xml
9 | /.idea
10 | /*.iml
11 | /mvcExpress-framework.iml
12 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2012 Raimundas Banevicius
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
--------------------------------------------------------------------------------
/docs/core/images/AirIcon12x12.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/core/images/AirIcon12x12.gif
--------------------------------------------------------------------------------
/docs/core/images/P_AlternativeMetadataIndicator_30x28_N.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/core/images/P_AlternativeMetadataIndicator_30x28_N.png
--------------------------------------------------------------------------------
/docs/core/images/collapsed.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/core/images/collapsed.gif
--------------------------------------------------------------------------------
/docs/core/images/detailHeaderRule.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/core/images/detailHeaderRule.jpg
--------------------------------------------------------------------------------
/docs/core/images/detailSectionHeader.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/core/images/detailSectionHeader.jpg
--------------------------------------------------------------------------------
/docs/core/images/expanded.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/core/images/expanded.gif
--------------------------------------------------------------------------------
/docs/core/images/inherit-arrow.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/core/images/inherit-arrow.gif
--------------------------------------------------------------------------------
/docs/core/images/inheritedSummary.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/core/images/inheritedSummary.gif
--------------------------------------------------------------------------------
/docs/core/images/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/core/images/logo.jpg
--------------------------------------------------------------------------------
/docs/core/images/titleTableBottom.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/core/images/titleTableBottom.jpg
--------------------------------------------------------------------------------
/docs/core/images/titleTableMiddle.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/core/images/titleTableMiddle.jpg
--------------------------------------------------------------------------------
/docs/core/images/titleTableTop.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/core/images/titleTableTop.jpg
--------------------------------------------------------------------------------
/docs/core/mvcexpress/class-list.html:
--------------------------------------------------------------------------------
1 |
mvcexpress - API Documentation
--------------------------------------------------------------------------------
/docs/core/mvcexpress/core/class-list.html:
--------------------------------------------------------------------------------
1 | mvcexpress.core - API Documentation
--------------------------------------------------------------------------------
/docs/core/mvcexpress/core/interfaces/class-list.html:
--------------------------------------------------------------------------------
1 | mvcexpress.core.interfaces - API Documentation
--------------------------------------------------------------------------------
/docs/core/mvcexpress/core/messenger/class-list.html:
--------------------------------------------------------------------------------
1 | mvcexpress.core.messenger - API Documentation
--------------------------------------------------------------------------------
/docs/core/mvcexpress/modules/class-list.html:
--------------------------------------------------------------------------------
1 | mvcexpress.modules - API Documentation
--------------------------------------------------------------------------------
/docs/core/mvcexpress/mvc/class-list.html:
--------------------------------------------------------------------------------
1 | mvcexpress.mvc - API Documentation
--------------------------------------------------------------------------------
/docs/core/mvcexpress/utils/class-list.html:
--------------------------------------------------------------------------------
1 | mvcexpress.utils - API Documentation
--------------------------------------------------------------------------------
/docs/core/override.css:
--------------------------------------------------------------------------------
1 | /*
2 | ////////////////////////////////////////////////////////////////////////////////
3 | //
4 | // ADOBE SYSTEMS INCORPORATED
5 | // Copyright 2008 Adobe Systems Incorporated
6 | // All Rights Reserved.
7 | //
8 | // NOTICE: Adobe permits you to use, modify, and distribute this file
9 | // in accordance with the terms of the license agreement accompanying it.
10 | //
11 | ////////////////////////////////////////////////////////////////////////////////
12 | */
--------------------------------------------------------------------------------
/docs/core/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | mvcExpress documentation
4 |
5 |
6 |
7 |
8 |
9 |
10 | Frame Alert
11 | This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
12 |
13 | Link toNon-frame version.
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/extensions/live/images/AirIcon12x12.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/live/images/AirIcon12x12.gif
--------------------------------------------------------------------------------
/docs/extensions/live/images/P_AlternativeMetadataIndicator_30x28_N.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/live/images/P_AlternativeMetadataIndicator_30x28_N.png
--------------------------------------------------------------------------------
/docs/extensions/live/images/collapsed.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/live/images/collapsed.gif
--------------------------------------------------------------------------------
/docs/extensions/live/images/detailHeaderRule.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/live/images/detailHeaderRule.jpg
--------------------------------------------------------------------------------
/docs/extensions/live/images/detailSectionHeader.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/live/images/detailSectionHeader.jpg
--------------------------------------------------------------------------------
/docs/extensions/live/images/expanded.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/live/images/expanded.gif
--------------------------------------------------------------------------------
/docs/extensions/live/images/inherit-arrow.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/live/images/inherit-arrow.gif
--------------------------------------------------------------------------------
/docs/extensions/live/images/inheritedSummary.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/live/images/inheritedSummary.gif
--------------------------------------------------------------------------------
/docs/extensions/live/images/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/live/images/logo.jpg
--------------------------------------------------------------------------------
/docs/extensions/live/images/titleTableBottom.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/live/images/titleTableBottom.jpg
--------------------------------------------------------------------------------
/docs/extensions/live/images/titleTableMiddle.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/live/images/titleTableMiddle.jpg
--------------------------------------------------------------------------------
/docs/extensions/live/images/titleTableTop.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/live/images/titleTableTop.jpg
--------------------------------------------------------------------------------
/docs/extensions/live/mvcexpress/extensions/live/core/class-list.html:
--------------------------------------------------------------------------------
1 | mvcexpress.extensions.live.core - API Documentation
--------------------------------------------------------------------------------
/docs/extensions/live/mvcexpress/extensions/live/engine/class-list.html:
--------------------------------------------------------------------------------
1 | mvcexpress.extensions.live.engine - API Documentation
--------------------------------------------------------------------------------
/docs/extensions/live/mvcexpress/extensions/live/modules/class-list.html:
--------------------------------------------------------------------------------
1 | mvcexpress.extensions.live.modules - API Documentation
--------------------------------------------------------------------------------
/docs/extensions/live/mvcexpress/extensions/live/mvc/class-list.html:
--------------------------------------------------------------------------------
1 | mvcexpress.extensions.live.mvc - API Documentation
--------------------------------------------------------------------------------
/docs/extensions/live/override.css:
--------------------------------------------------------------------------------
1 | /*
2 | ////////////////////////////////////////////////////////////////////////////////
3 | //
4 | // ADOBE SYSTEMS INCORPORATED
5 | // Copyright 2008 Adobe Systems Incorporated
6 | // All Rights Reserved.
7 | //
8 | // NOTICE: Adobe permits you to use, modify, and distribute this file
9 | // in accordance with the terms of the license agreement accompanying it.
10 | //
11 | ////////////////////////////////////////////////////////////////////////////////
12 | */
--------------------------------------------------------------------------------
/docs/extensions/live/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | mvcExpress extension live documentation
4 |
5 |
6 |
7 |
8 |
9 |
10 | Frame Alert
11 | This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
12 |
13 | Link toNon-frame version.
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/extensions/live/package-list.html:
--------------------------------------------------------------------------------
1 | Package List - API Documentation
--------------------------------------------------------------------------------
/docs/extensions/scoped/images/AirIcon12x12.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/scoped/images/AirIcon12x12.gif
--------------------------------------------------------------------------------
/docs/extensions/scoped/images/P_AlternativeMetadataIndicator_30x28_N.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/scoped/images/P_AlternativeMetadataIndicator_30x28_N.png
--------------------------------------------------------------------------------
/docs/extensions/scoped/images/collapsed.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/scoped/images/collapsed.gif
--------------------------------------------------------------------------------
/docs/extensions/scoped/images/detailHeaderRule.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/scoped/images/detailHeaderRule.jpg
--------------------------------------------------------------------------------
/docs/extensions/scoped/images/detailSectionHeader.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/scoped/images/detailSectionHeader.jpg
--------------------------------------------------------------------------------
/docs/extensions/scoped/images/expanded.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/scoped/images/expanded.gif
--------------------------------------------------------------------------------
/docs/extensions/scoped/images/inherit-arrow.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/scoped/images/inherit-arrow.gif
--------------------------------------------------------------------------------
/docs/extensions/scoped/images/inheritedSummary.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/scoped/images/inheritedSummary.gif
--------------------------------------------------------------------------------
/docs/extensions/scoped/images/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/scoped/images/logo.jpg
--------------------------------------------------------------------------------
/docs/extensions/scoped/images/titleTableBottom.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/scoped/images/titleTableBottom.jpg
--------------------------------------------------------------------------------
/docs/extensions/scoped/images/titleTableMiddle.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/scoped/images/titleTableMiddle.jpg
--------------------------------------------------------------------------------
/docs/extensions/scoped/images/titleTableTop.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/docs/extensions/scoped/images/titleTableTop.jpg
--------------------------------------------------------------------------------
/docs/extensions/scoped/mvcexpress/extensions/scoped/core/class-list.html:
--------------------------------------------------------------------------------
1 | mvcexpress.extensions.scoped.core - API Documentation
--------------------------------------------------------------------------------
/docs/extensions/scoped/mvcexpress/extensions/scoped/core/inject/class-list.html:
--------------------------------------------------------------------------------
1 | mvcexpress.extensions.scoped.core.inject - API Documentation
--------------------------------------------------------------------------------
/docs/extensions/scoped/mvcexpress/extensions/scoped/modules/class-list.html:
--------------------------------------------------------------------------------
1 | mvcexpress.extensions.scoped.modules - API Documentation
--------------------------------------------------------------------------------
/docs/extensions/scoped/mvcexpress/extensions/scoped/mvc/class-list.html:
--------------------------------------------------------------------------------
1 | mvcexpress.extensions.scoped.mvc - API Documentation
--------------------------------------------------------------------------------
/docs/extensions/scoped/override.css:
--------------------------------------------------------------------------------
1 | /*
2 | ////////////////////////////////////////////////////////////////////////////////
3 | //
4 | // ADOBE SYSTEMS INCORPORATED
5 | // Copyright 2008 Adobe Systems Incorporated
6 | // All Rights Reserved.
7 | //
8 | // NOTICE: Adobe permits you to use, modify, and distribute this file
9 | // in accordance with the terms of the license agreement accompanying it.
10 | //
11 | ////////////////////////////////////////////////////////////////////////////////
12 | */
--------------------------------------------------------------------------------
/docs/extensions/scoped/package-frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | mvcExpress extension scoped documentation
4 |
5 |
6 |
7 |
8 |
9 |
10 | Frame Alert
11 | This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
12 |
13 | Link toNon-frame version.
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/extensions/scoped/package-list.html:
--------------------------------------------------------------------------------
1 | Package List - API Documentation
--------------------------------------------------------------------------------
/libs/flexunit-4.1.0_RC2-4-as3_4.1.0.16076.swc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/libs/flexunit-4.1.0_RC2-4-as3_4.1.0.16076.swc
--------------------------------------------------------------------------------
/libs/flexunit-cilistener-4.1.0_RC2-4-4.1.0.16076.swc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/libs/flexunit-cilistener-4.1.0_RC2-4-4.1.0.16076.swc
--------------------------------------------------------------------------------
/libs/flexunit-uilistener-4.1.0_RC2-4-4.1.0.16076.swc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MindScriptAct/mvcExpress-framework/c45d2808d60e673c759c0382a3d3ff4c0212f758/libs/flexunit-uilistener-4.1.0_RC2-4-4.1.0.16076.swc
--------------------------------------------------------------------------------
/manifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/mvcexpress/core/inject/InjectRuleVO.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.inject {
3 |
4 | /**
5 | * FOR INTERNAL USE ONLY.
6 | * Value Object to keep injection rules - what have to be injected where.
7 | * @private
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | *
10 | * @version 2.0.rc1
11 | */
12 | public class InjectRuleVO {
13 |
14 | /** FOR INTERNAL USE ONLY. Name of variable to inject object into. */
15 | public var varName:String;
16 |
17 | /** FOR INTERNAL USE ONLY. Injection identifier, formed by class name and your custom inject name. */
18 | public var injectId:String;
19 |
20 | CONFIG::debug
21 | public function toString():String {
22 | return "[InjectRuleVO varName=" + varName + " injectId=" + injectId + "]";
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/inject/InjectTester.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.inject {
3 | import flash.system.System;
4 | import flash.utils.describeType;
5 |
6 | /**
7 | * Small class to test if framework can use Inject metadata tag.
8 | * (Inject metadata might be not compiled in, then in release mode '-keep-as3-metadata+=Inject' compile argument is not used.)
9 | * @private
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | *
12 | * @version 2.0.rc4
13 | */
14 | public class InjectTester {
15 |
16 | [Inject]
17 | public var metadataTest:Boolean;
18 |
19 | /**
20 | * Function to test if inject metadata tag information is preserved after compile.
21 | * @private
22 | * @return
23 | */
24 | public function testInjectMetaTag():Boolean {
25 | var retVal:Boolean = false;
26 |
27 | var classDescription:XML = describeType(InjectTester);
28 | var factoryNodes:XMLList = classDescription.factory.*;
29 | var nodeCount:int = factoryNodes.length();
30 | for (var i:int; i < nodeCount; i++) {
31 | var node:XML = factoryNodes[i];
32 | var nodeName:String = node.name();
33 | if (nodeName == "variable") {
34 | var metadataList:XMLList = node.metadata;
35 | var metadataCount:int = metadataList.length()
36 | for (var j:int = 0; j < metadataCount; j++) {
37 | nodeName = metadataList[j].@name;
38 | if (nodeName == "Inject") {
39 | retVal = true;
40 | }
41 | }
42 | }
43 | }
44 | System.disposeXML(classDescription);
45 | return retVal;
46 | }
47 |
48 | }
49 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/inject/InjectViewRuleVO.as:
--------------------------------------------------------------------------------
1 | package mvcexpress.core.inject {
2 | import flash.utils.Dictionary;
3 |
4 | public class InjectViewRuleVO {
5 |
6 | public var mediatorMapping:Dictionary = new Dictionary();
7 |
8 | public var mapOrder:Vector. = new Vector.();
9 |
10 | public function InjectViewRuleVO() {
11 | }
12 |
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/mvcexpress/core/inject/PendingInject.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.inject {
3 | import flash.utils.clearTimeout;
4 | import flash.utils.setTimeout;
5 |
6 | /**
7 | * FOR INTERNAL USE ONLY.
8 | * Private class to store pending injection data.
9 | * @private
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | *
12 | * @version 2.0.rc1
13 | */
14 | public class PendingInject {
15 |
16 | private var injectClassAndName:String;
17 | public var pendingObject:Object;
18 | public var signatureClass:Class;
19 | private var pendingInjectTime:int;
20 |
21 | private var timerId:uint;
22 |
23 | public function PendingInject($injectClassAndName:String, $pendingObject:Object, $signatureClass:Class, $pendingInjectTime:int) {
24 | injectClassAndName = $injectClassAndName;
25 | pendingObject = $pendingObject;
26 | signatureClass = $signatureClass;
27 | pendingInjectTime = $pendingInjectTime;
28 | // start timer to throw an error of unresolved injection.
29 | timerId = setTimeout(throwError, $pendingInjectTime);
30 | }
31 |
32 | public function dispose():void {
33 | injectClassAndName = null;
34 | pendingObject = null;
35 | signatureClass = null;
36 | clearTimeout(timerId);
37 | }
38 |
39 | private function throwError():void {
40 | throw Error("Pending inject object is not resolved in " + (pendingInjectTime / 1000) + " second for class with id:" + injectClassAndName + "(needed in " + pendingObject + ")");
41 | }
42 |
43 | }
44 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/interfaces/IProxyMap.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.interfaces {
3 | /**
4 | * Interface to get proxy objects manually with your code, instead of automatic injection.
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | *
7 | * @version 2.0.rc1
8 | */
9 | public interface IProxyMap {
10 |
11 | /**
12 | * Get proxy by class. Alternative to injecting proxy automatically.
13 | * You might want to get proxy manually then your proxy has dynamic name.
14 | * Also you might want to get proxy manually if your proxy is needed only in rare cases or only for short time.
15 | * (for instance - you need it only in onRegister() function.)
16 | * @param proxyClass class of proxy, proxy object is mapped to.
17 | * @param name Optional name if you need more then one proxy instance of same class.
18 | */
19 | function getProxy(injectClass:Class, name:String = ""):*;
20 | }
21 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/lazy/LazyProxyVO.as:
--------------------------------------------------------------------------------
1 | package mvcexpress.core.lazy {
2 | /**
3 | * private class to store lazy proxy data.
4 | * @private
5 | *
6 | * @version 2.0.rc1
7 | */
8 | public class LazyProxyVO {
9 |
10 | public var proxyClass:Class;
11 | public var name:String;
12 |
13 | public var injectClass:Class;
14 | public var injectId:String;
15 |
16 | public var mediatorInjectClass:Class;
17 | public var mediatorInjectId:String;
18 |
19 | public var proxyParams:Array;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/mvcexpress/core/messenger/HandlerVO.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.messenger {
3 |
4 | /**
5 | * Framework internal value data for message handlers.
6 | * HandlerVO is not removed instantly then handler is not needed, only marked for removal(by seting handler to null.).
7 | * @private
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | *
10 | * @version 2.0.rc4
11 | */
12 | public class HandlerVO {
13 |
14 | /** FOR INTERNAL USE ONLY. handler number in list. (used to remove element from vector. ) */
15 | public var listNr:uint;
16 |
17 |
18 | /** FOR INTERNAL USE ONLY. message type for handler function is triggered on. */
19 | public var type:String;
20 |
21 | /** FOR INTERNAL USE ONLY. function that handles message parameters, can be Mediator function or Command execute() function */
22 | public var handler:Function;
23 |
24 |
25 | /** FOR INTERNAL USE ONLY. shows if message is handled by Command. */
26 | public var isExecutable:Boolean;
27 |
28 | /** FOR INTERNAL USE ONLY. Variable to store class there handler came from. (for debugging only) */
29 | public var handlerClassName:String;
30 |
31 | }
32 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/namespace/pureLegsCore.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.namespace {
3 | // namespace for framework internal variables and functions.
4 | // Not meant to be used from outside. (...unless you want to hack/break the framework.)
5 | // name constructed using two AS3 frameworks that inspired mvcExpress framework - PUREmvc and robotLEGS, and used as codename for framework prototype in it's early stage.
6 | public namespace pureLegsCore = "pureLegsCore-ns";
7 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/TraceObj.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects {
3 |
4 | /**
5 | * Base of all trace objects.
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | * @private
8 | *
9 | * @version 2.0.rc1
10 | */
11 | dynamic public class TraceObj {
12 |
13 | public var moduleName:String;
14 | public var action:String;
15 |
16 | // can print debug text.
17 | public var canPrint:Boolean = true;
18 |
19 | public function TraceObj($action:String, $moduleName:String) {
20 | action = $action;
21 | moduleName = $moduleName;
22 | }
23 |
24 | public function toString():String {
25 | return "[TraceObj moduleName=" + moduleName + " action=" + action + "]";
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/TraceObj_SendMessage.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects {
3 | import mvcexpress.modules.ModuleCore;
4 | import mvcexpress.mvc.Command;
5 | import mvcexpress.mvc.Mediator;
6 | import mvcexpress.mvc.Proxy;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceObj_SendMessage extends TraceObj {
16 |
17 | public var moduleObject:ModuleCore;
18 | public var commandObject:Command;
19 | public var proxyObject:Proxy;
20 | public var mediatorObject:Mediator;
21 |
22 | public function TraceObj_SendMessage(action:String, moduleName:String) {
23 | super(action, moduleName);
24 | //
25 | canPrint = false;
26 | }
27 |
28 | }
29 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/command/TraceCommand_sendMessage.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.command {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj_SendMessage;
6 | import mvcexpress.mvc.Command;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceCommand_sendMessage extends TraceObj_SendMessage {
16 |
17 | public var type:String;
18 | public var params:Object;
19 |
20 | public function TraceCommand_sendMessage(moduleName:String, $commandObject:Command, $type:String, $params:Object, preSend:Boolean) {
21 | use namespace pureLegsCore;
22 |
23 | super(((preSend) ? MvcTraceActions.COMMAND_SENDMESSAGE : MvcTraceActions.COMMAND_SENDMESSAGE_CLEAN), moduleName);
24 | commandObject = $commandObject;
25 | type = $type;
26 | params = $params;
27 | //
28 | canPrint = false;
29 | }
30 |
31 | }
32 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/commandMap/TraceCommandMap_execute.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.commandMap {
3 | import flash.display.DisplayObject;
4 |
5 | import mvcexpress.core.traceObjects.MvcTraceActions;
6 | import mvcexpress.core.traceObjects.TraceObj;
7 | import mvcexpress.modules.ModuleCore;
8 | import mvcexpress.mvc.Command;
9 | import mvcexpress.mvc.Mediator;
10 | import mvcexpress.mvc.Proxy;
11 |
12 | /**
13 | * Class for mvcExpress tracing. (debug mode only)
14 | * @author Raimundas Banevicius (http://mvcexpress.org/)
15 | * @private
16 | *
17 | * @version 2.0.rc1
18 | */
19 | public class TraceCommandMap_execute extends TraceObj {
20 |
21 | public var commandObject:Command;
22 | public var commandClass:Class;
23 | public var params:Object;
24 |
25 | public var view:DisplayObject;
26 |
27 | public var messageFromModule:ModuleCore;
28 | public var messageFromMediator:Mediator;
29 | public var messageFromProxy:Proxy;
30 | public var messageFromCommand:Command;
31 |
32 | public function TraceCommandMap_execute(moduleName:String, $commandObject:Command, $commandClass:Class, $params:Object) {
33 | super(MvcTraceActions.COMMANDMAP_EXECUTE, moduleName);
34 | commandObject = $commandObject;
35 | commandClass = $commandClass;
36 | params = $params;
37 | }
38 |
39 | override public function toString():String {
40 | return "©* " + MvcTraceActions.COMMANDMAP_EXECUTE + " > commandClass : " + commandClass + ", params : " + params + " {" + moduleName + "}";
41 | }
42 |
43 | }
44 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/commandMap/TraceCommandMap_handleCommandExecute.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.commandMap {
3 | import flash.display.DisplayObject;
4 |
5 | import mvcexpress.core.traceObjects.MvcTraceActions;
6 | import mvcexpress.core.traceObjects.TraceObj;
7 | import mvcexpress.modules.ModuleCore;
8 | import mvcexpress.mvc.Command;
9 | import mvcexpress.mvc.Mediator;
10 | import mvcexpress.mvc.Proxy;
11 |
12 | /**
13 | * Class for mvcExpress tracing. (debug mode only)
14 | * @author Raimundas Banevicius (http://mvcexpress.org/)
15 | * @private
16 | *
17 | * @version 2.0.rc1
18 | */
19 | public class TraceCommandMap_handleCommandExecute extends TraceObj {
20 |
21 | public var commandObject:Command;
22 | public var commandClass:Class;
23 | public var type:String;
24 | public var params:Object;
25 |
26 | public var view:DisplayObject;
27 |
28 | public var messageFromModule:ModuleCore;
29 | public var messageFromMediator:Mediator;
30 | public var messageFromProxy:Proxy;
31 | public var messageFromCommand:Command;
32 |
33 | public function TraceCommandMap_handleCommandExecute(moduleName:String, $commandObject:Command, $commandClass:Class, $type:String, $params:Object) {
34 | super(MvcTraceActions.COMMANDMAP_HANDLECOMMANDEXECUTE, moduleName);
35 | commandObject = $commandObject;
36 | commandClass = $commandClass;
37 | type = $type;
38 | params = $params;
39 | }
40 |
41 | override public function toString():String {
42 | return "©* " + MvcTraceActions.COMMANDMAP_HANDLECOMMANDEXECUTE + " > messageType : " + type + ", params : " + params + " Executed with : " + commandClass + "{" + moduleName + "}";
43 | }
44 |
45 | }
46 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/commandMap/TraceCommandMap_map.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.commandMap {
3 | import mvcexpress.core.traceObjects.MvcTraceActions;
4 | import mvcexpress.core.traceObjects.TraceObj;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version 2.0.rc1
12 | */
13 | public class TraceCommandMap_map extends TraceObj {
14 |
15 | public var type:String;
16 | public var commandClass:Class;
17 |
18 | public function TraceCommandMap_map(moduleName:String, $type:String, $commandClass:Class) {
19 | super(MvcTraceActions.COMMANDMAP_MAP, moduleName);
20 | type = $type;
21 | commandClass = $commandClass;
22 | }
23 |
24 | override public function toString():String {
25 | return "©©©+ " + MvcTraceActions.COMMANDMAP_MAP + " > type : " + type + ", commandClass : " + commandClass + " {" + moduleName + "}";
26 | }
27 |
28 | }
29 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/commandMap/TraceCommandMap_unmap.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.commandMap {
3 | import mvcexpress.core.traceObjects.MvcTraceActions;
4 | import mvcexpress.core.traceObjects.TraceObj;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version 2.0.rc1
12 | */
13 | public class TraceCommandMap_unmap extends TraceObj {
14 |
15 | public var type:String;
16 | public var commandClass:Class;
17 |
18 | public function TraceCommandMap_unmap(moduleName:String, $type:String, $commandClass:Class) {
19 | super(MvcTraceActions.COMMANDMAP_UNMAP, moduleName);
20 | type = $type;
21 | commandClass = $commandClass;
22 | }
23 |
24 | override public function toString():String {
25 | return "©©©- " + MvcTraceActions.COMMANDMAP_UNMAP + " > type : " + type + ", commandClass : " + commandClass + " {" + moduleName + "}";
26 | }
27 |
28 | }
29 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/errors/TraceError.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.errors {
3 | import mvcexpress.core.traceObjects.MvcTraceActions;
4 | import mvcexpress.core.traceObjects.TraceObj;
5 |
6 | /**
7 | * Class for mvcExpress errors.
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version 2.0.rc1
12 | */
13 | public class TraceError extends TraceObj {
14 |
15 | public var errorMessage:String;
16 |
17 | public function TraceError(moduleName:String, errorMessage:String) {
18 | super(MvcTraceActions.ERROR_MESSAGE, moduleName);
19 | this.errorMessage = errorMessage;
20 | }
21 |
22 | override public function toString():String {
23 | return "ERROR: " + errorMessage;
24 | }
25 |
26 | }
27 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/mediator/TraceMediator_addHandler.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.mediator {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj;
6 | import mvcexpress.mvc.Mediator;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceMediator_addHandler extends TraceObj {
16 |
17 | public var type:String;
18 | public var handler:Function;
19 | public var mediatorObject:Mediator;
20 |
21 | public function TraceMediator_addHandler(moduleName:String, $mediatorObject:Mediator, $type:String, $handler:Function) {
22 | use namespace pureLegsCore;
23 |
24 | super(MvcTraceActions.MEDIATOR_ADDHANDLER, moduleName);
25 | mediatorObject = $mediatorObject;
26 | type = $type;
27 | handler = $handler;
28 | //
29 | canPrint = false;
30 | }
31 |
32 | }
33 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/mediator/TraceMediator_sendMessage.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.mediator {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj_SendMessage;
6 | import mvcexpress.mvc.Mediator;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceMediator_sendMessage extends TraceObj_SendMessage {
16 |
17 | public var type:String;
18 | public var params:Object;
19 |
20 | public function TraceMediator_sendMessage(moduleName:String, $mediatorObject:Mediator, $type:String, $params:Object, preSend:Boolean) {
21 | use namespace pureLegsCore;
22 |
23 | super(((preSend) ? MvcTraceActions.MEDIATOR_SENDMESSAGE : MvcTraceActions.MEDIATOR_SENDMESSAGE_CLEAN), moduleName);
24 | mediatorObject = $mediatorObject;
25 | type = $type;
26 | params = $params;
27 | //
28 | canPrint = false;
29 | }
30 |
31 | }
32 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/mediatorMap/TraceMediatorMap_map.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.mediatorMap {
3 | import mvcexpress.core.traceObjects.MvcTraceActions;
4 | import mvcexpress.core.traceObjects.TraceObj;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version 2.0.rc1
12 | */
13 | public class TraceMediatorMap_map extends TraceObj {
14 |
15 | public var viewClass:Class;
16 | public var mediatorClass:Class;
17 | public var injectClass:Class;
18 |
19 | public function TraceMediatorMap_map(moduleName:String, $viewClass:Class, $mediatorClass:Class, $injectClass:Class) {
20 | super(MvcTraceActions.MEDIATORMAP_MAP, moduleName);
21 | viewClass = $viewClass;
22 | mediatorClass = $mediatorClass;
23 | injectClass = $injectClass;
24 | }
25 |
26 | override public function toString():String {
27 | if (injectClass) {
28 | return "§§§+ " + MvcTraceActions.MEDIATORMAP_MAP + " > viewClass : " + viewClass + "(as " + injectClass + "), mediatorClass : " + mediatorClass + " {" + moduleName + "}";
29 | } else {
30 | return "§§§+ " + MvcTraceActions.MEDIATORMAP_MAP + " > viewClass : " + viewClass + ", mediatorClass : " + mediatorClass + " {" + moduleName + "}";
31 | }
32 | }
33 |
34 | }
35 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/mediatorMap/TraceMediatorMap_mediate.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.mediatorMap {
3 | import flash.display.DisplayObject;
4 |
5 | import mvcexpress.core.traceObjects.MvcTraceActions;
6 | import mvcexpress.core.traceObjects.TraceObj;
7 | import mvcexpress.mvc.Mediator;
8 |
9 | /**
10 | * Class for mvcExpress tracing. (debug mode only)
11 | * @author Raimundas Banevicius (http://mvcexpress.org/)
12 | * @private
13 | *
14 | * @version 2.0.rc1
15 | */
16 | public class TraceMediatorMap_mediate extends TraceObj {
17 | public var viewObject:Object;
18 | public var mediatorObject:Mediator;
19 | public var viewClass:Class;
20 | public var mediatorClass:Class;
21 | public var mediatorClassName:String;
22 |
23 | public var view:DisplayObject;
24 | public var dependencies:Vector.;
25 |
26 | public var handleObjects:Vector.;
27 |
28 | public function TraceMediatorMap_mediate(moduleName:String, $viewObject:Object, $mediatorObject:Mediator, $viewClass:Class, $mediatorClass:Class, $mediatorClassName:String) {
29 | super(MvcTraceActions.MEDIATORMAP_MEDIATE, moduleName);
30 | viewObject = $viewObject;
31 | mediatorObject = $mediatorObject;
32 | viewClass = $viewClass;
33 | mediatorClass = $mediatorClass;
34 | mediatorClassName = $mediatorClassName;
35 | }
36 |
37 | override public function toString():String {
38 | return "§*+ " + MvcTraceActions.MEDIATORMAP_MEDIATE + " > viewObject : " + viewObject + " (viewClass:" + viewClass + ")" + " WITH > mediatorClass : " + mediatorClass + " {" + moduleName + "}";
39 | }
40 |
41 | }
42 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/mediatorMap/TraceMediatorMap_unmap.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.mediatorMap {
3 | import mvcexpress.core.traceObjects.MvcTraceActions;
4 | import mvcexpress.core.traceObjects.TraceObj;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version 2.0.rc1
12 | */
13 | public class TraceMediatorMap_unmap extends TraceObj {
14 |
15 | public var viewClass:Class;
16 | public var mediatorClass:Class;
17 |
18 | public function TraceMediatorMap_unmap(moduleName:String, $viewClass:Class, $mediatorClass:Class) {
19 | super(MvcTraceActions.MEDIATORMAP_UNMAP, moduleName);
20 | viewClass = $viewClass;
21 | mediatorClass = $mediatorClass;
22 | }
23 |
24 | override public function toString():String {
25 | if (mediatorClass) {
26 | return "§§§- " + MvcTraceActions.MEDIATORMAP_UNMAP + " > viewClass : " + viewClass + " from " + mediatorClass + " {" + moduleName + "}";
27 | } else {
28 | return "§§§- " + MvcTraceActions.MEDIATORMAP_UNMAP + " > viewClass : " + viewClass + " from ALL mediators. {" + moduleName + "}";
29 |
30 | }
31 | }
32 |
33 | }
34 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/mediatorMap/TraceMediatorMap_unmediate.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.mediatorMap {
3 | import mvcexpress.core.traceObjects.MvcTraceActions;
4 | import mvcexpress.core.traceObjects.TraceObj;
5 | import mvcexpress.mvc.Mediator;
6 |
7 | /**
8 | * Class for mvcExpress tracing. (debug mode only)
9 | * @author Raimundas Banevicius (http://mvcexpress.org/)
10 | * @private
11 | *
12 | * @version 2.0.rc1
13 | */
14 | public class TraceMediatorMap_unmediate extends TraceObj {
15 | public var viewObject:Object;
16 | public var mediatorObject:Mediator;
17 | public var viewClass:Class;
18 | public var mediatorClass:Class;
19 | public var mediatorClassName:String;
20 |
21 | public function TraceMediatorMap_unmediate(moduleName:String, $viewObject:Object) {
22 | super(MvcTraceActions.MEDIATORMAP_UNMEDIATE, moduleName);
23 | viewObject = $viewObject;
24 | }
25 |
26 | override public function toString():String {
27 | return "§*- " + MvcTraceActions.MEDIATORMAP_UNMEDIATE + " > viewObject : " + viewObject + " {" + moduleName + "}";
28 | }
29 |
30 | }
31 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/messenger/TraceMessenger_addHandler.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.messenger {
3 | import mvcexpress.core.traceObjects.MvcTraceActions;
4 | import mvcexpress.core.traceObjects.TraceObj;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version 2.0.rc1
12 | */
13 | public class TraceMessenger_addHandler extends TraceObj {
14 |
15 | public var type:String;
16 | public var handler:Function;
17 | public var handlerClassName:String;
18 |
19 | public function TraceMessenger_addHandler(moduleName:String, $type:String, $handler:Function, $handlerClassName:String) {
20 | super(MvcTraceActions.MESSENGER_ADDHANDLER, moduleName);
21 | type = $type;
22 | handler = $handler;
23 | handlerClassName = $handlerClassName;
24 | }
25 |
26 | override public function toString():String {
27 | return "••<+ " + MvcTraceActions.MESSENGER_ADDHANDLER + " > type : " + type + ", handlerClassName : " + handlerClassName + " {" + moduleName + "}";
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/messenger/TraceMessenger_removeHandler.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.messenger {
3 | import mvcexpress.core.traceObjects.MvcTraceActions;
4 | import mvcexpress.core.traceObjects.TraceObj;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version 2.0.rc1
12 | */
13 | public class TraceMessenger_removeHandler extends TraceObj {
14 |
15 | public var type:String;
16 | public var handler:Function;
17 |
18 | public function TraceMessenger_removeHandler(moduleName:String, $type:String, $handler:Function) {
19 | super(MvcTraceActions.MESSENGER_REMOVEHANDLER, moduleName);
20 | type = $type;
21 | handler = $handler;
22 | }
23 |
24 | override public function toString():String {
25 | return "••<- " + MvcTraceActions.MESSENGER_REMOVEHANDLER + " > type : " + type + " {" + moduleName + "}";
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/messenger/TraceMessenger_send.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.messenger {
3 | import mvcexpress.core.traceObjects.MvcTraceActions;
4 | import mvcexpress.core.traceObjects.TraceObj;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version 2.0.rc1
12 | */
13 | public class TraceMessenger_send extends TraceObj {
14 |
15 | public var type:String;
16 | public var params:Object;
17 |
18 | public function TraceMessenger_send(moduleName:String, $type:String, $params:Object) {
19 | super(MvcTraceActions.MESSENGER_SEND, moduleName);
20 | type = $type;
21 | params = $params;
22 | }
23 |
24 | override public function toString():String {
25 | return "•> " + MvcTraceActions.MESSENGER_SEND + " > type : " + type + ", params : " + params + " {" + moduleName + "}";
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/messenger/TraceMessenger_send_handler.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.messenger {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj;
6 | import mvcexpress.modules.ModuleCore;
7 | import mvcexpress.mvc.Command;
8 | import mvcexpress.mvc.Mediator;
9 | import mvcexpress.mvc.Proxy;
10 |
11 | /**
12 | * Class for mvcExpress tracing. (debug mode only)
13 | * @author Raimundas Banevicius (http://mvcexpress.org/)
14 | * @private
15 | *
16 | * @version 2.0.rc1
17 | */
18 | public class TraceMessenger_send_handler extends TraceObj {
19 |
20 | public var type:String;
21 | public var params:Object;
22 | public var handler:Function;
23 | public var handlerClassName:String;
24 |
25 | public var messageFromModule:ModuleCore;
26 | public var messageFromMediator:Mediator;
27 | public var messageFromProxy:Proxy;
28 | public var messageFromCommand:Command;
29 |
30 | public function TraceMessenger_send_handler(moduleName:String, $type:String, $params:Object, $handler:Function, $handlerClassName:String) {
31 | use namespace pureLegsCore;
32 |
33 | super(MvcTraceActions.MESSENGER_SEND_HANDLER, moduleName);
34 | type = $type;
35 | params = $params;
36 | handler = $handler;
37 | handlerClassName = $handlerClassName;
38 | //
39 | canPrint = false;
40 | }
41 |
42 | }
43 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/moduleBase/TraceModuleBase_sendMessage.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.moduleBase {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj_SendMessage;
6 | import mvcexpress.modules.ModuleCore;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceModuleBase_sendMessage extends TraceObj_SendMessage {
16 |
17 | public var type:String;
18 | public var params:Object;
19 |
20 | public function TraceModuleBase_sendMessage(moduleName:String, $moduleObject:ModuleCore, $type:String, $params:Object, preSend:Boolean) {
21 | use namespace pureLegsCore;
22 |
23 | super(((preSend) ? MvcTraceActions.MODULEBASE_SENDMESSAGE : MvcTraceActions.MODULEBASE_SENDMESSAGE_CLEAN), moduleName);
24 | moduleObject = $moduleObject;
25 | type = $type;
26 | params = $params;
27 | //
28 | canPrint = false;
29 | }
30 |
31 | }
32 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/moduleManager/TraceModuleManager_createModule.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.moduleManager {
3 | import mvcexpress.core.traceObjects.MvcTraceActions;
4 | import mvcexpress.core.traceObjects.TraceObj;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version 2.0.rc1
12 | */
13 | public class TraceModuleManager_createModule extends TraceObj {
14 |
15 | public function TraceModuleManager_createModule(moduleName:String) {
16 | super(MvcTraceActions.MODULEMANAGER_CREATEMODULE, moduleName);
17 | }
18 |
19 | override public function toString():String {
20 | return "#####+ " + MvcTraceActions.MODULEMANAGER_CREATEMODULE + " > moduleName : " + moduleName;
21 | }
22 |
23 | }
24 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/moduleManager/TraceModuleManager_disposeModule.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.moduleManager {
3 | import mvcexpress.core.traceObjects.MvcTraceActions;
4 | import mvcexpress.core.traceObjects.TraceObj;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version 2.0.rc1
12 | */
13 | public class TraceModuleManager_disposeModule extends TraceObj {
14 |
15 | public function TraceModuleManager_disposeModule(moduleName:String) {
16 | super(MvcTraceActions.MODULEMANAGER_DISPOSEMODULE, moduleName);
17 | }
18 |
19 | override public function toString():String {
20 | return "#####- " + MvcTraceActions.MODULEMANAGER_DISPOSEMODULE + " > moduleName : " + moduleName;
21 | }
22 |
23 | }
24 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/proxy/TraceProxy_sendMessage.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.proxy {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj_SendMessage;
6 | import mvcexpress.mvc.Proxy;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceProxy_sendMessage extends TraceObj_SendMessage {
16 |
17 | public var type:String;
18 | public var params:Object;
19 |
20 | public function TraceProxy_sendMessage(moduleName:String, $proxyObject:Proxy, $type:String, $params:Object, preSend:Boolean) {
21 | use namespace pureLegsCore;
22 |
23 | super(((preSend) ? MvcTraceActions.PROXY_SENDMESSAGE : MvcTraceActions.PROXY_SENDMESSAGE_CLEAN), moduleName);
24 | proxyObject = $proxyObject;
25 | type = $type;
26 | params = $params;
27 | }
28 |
29 | }
30 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/proxyMap/TraceProxyMap_injectPending.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.proxyMap {
3 | import mvcexpress.core.inject.InjectRuleVO;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj;
6 |
7 | /**
8 | * Class for mvcExpress tracing. (debug mode only)
9 | * @author Raimundas Banevicius (http://mvcexpress.org/)
10 | * @private
11 | *
12 | * @version 2.0.rc1
13 | */
14 | public class TraceProxyMap_injectPending extends TraceObj {
15 |
16 | public var hostObject:Object;
17 | public var injectObject:Object;
18 | public var rule:InjectRuleVO;
19 |
20 | public function TraceProxyMap_injectPending(moduleName:String, $hostObject:Object, $injectObject:Object, $rule:InjectRuleVO) {
21 | super(MvcTraceActions.PROXYMAP_INJECTPENDING, moduleName);
22 | hostObject = $hostObject;
23 | injectObject = $injectObject;
24 | rule = $rule;
25 | }
26 |
27 | override public function toString():String {
28 | return "!!!!! " + MvcTraceActions.PROXYMAP_INJECTPENDING + " > for injectId:" + rule.injectId + "(needed in " + hostObject + ")" + " {" + moduleName + "}";
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/proxyMap/TraceProxyMap_injectStuff.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.proxyMap {
3 | import mvcexpress.core.inject.InjectRuleVO;
4 | import mvcexpress.core.namespace.pureLegsCore;
5 | import mvcexpress.core.traceObjects.MvcTraceActions;
6 | import mvcexpress.core.traceObjects.TraceObj;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceProxyMap_injectStuff extends TraceObj {
16 |
17 | public var hostObject:Object;
18 | public var injectObject:Object;
19 | public var rule:InjectRuleVO;
20 |
21 | public function TraceProxyMap_injectStuff(moduleName:String, $hostObject:Object, $injectObject:Object, $rule:InjectRuleVO) {
22 | use namespace pureLegsCore;
23 |
24 | super(MvcTraceActions.PROXYMAP_INJECTSTUFF, moduleName);
25 | hostObject = $hostObject;
26 | injectObject = $injectObject;
27 | rule = $rule;
28 | //
29 | canPrint = false;
30 | }
31 |
32 | }
33 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/proxyMap/TraceProxyMap_lazyMap.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.proxyMap {
3 | import flash.display.DisplayObject;
4 |
5 | import mvcexpress.core.traceObjects.MvcTraceActions;
6 | import mvcexpress.core.traceObjects.TraceObj;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceProxyMap_lazyMap extends TraceObj {
16 |
17 | public var proxyClass:Class;
18 | public var injectClass:Class;
19 | public var name:String;
20 | public var proxyParams:Array;
21 |
22 | public var dependencies:Vector.;
23 |
24 | public var view:DisplayObject;
25 |
26 | public function TraceProxyMap_lazyMap(moduleName:String, $proxyClass:Class, $injectClass:Class, $name:String, $proxyParams:Array) {
27 | super(MvcTraceActions.PROXYMAP_LAZYMAP, moduleName);
28 | proxyParams = $proxyParams;
29 | proxyClass = $proxyClass;
30 | injectClass = $injectClass;
31 | name = $name;
32 | }
33 |
34 | override public function toString():String {
35 | return "¶¶¶+ " + MvcTraceActions.PROXYMAP_LAZYMAP + " > proxyClass : " + proxyClass + ", injectClass : " + injectClass + ", name : " + name + ", proxyParams : " + proxyParams + " {" + moduleName + "}";
36 | }
37 |
38 | }
39 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/proxyMap/TraceProxyMap_map.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.proxyMap {
3 | import flash.display.DisplayObject;
4 |
5 | import mvcexpress.core.traceObjects.MvcTraceActions;
6 | import mvcexpress.core.traceObjects.TraceObj;
7 | import mvcexpress.mvc.Proxy;
8 |
9 | /**
10 | * Class for mvcExpress tracing. (debug mode only)
11 | * @author Raimundas Banevicius (http://mvcexpress.org/)
12 | * @private
13 | *
14 | * @version 2.0.rc1
15 | */
16 | public class TraceProxyMap_map extends TraceObj {
17 |
18 | public var proxyObject:Proxy;
19 | public var injectClass:Class;
20 | public var name:String;
21 |
22 | public var dependencies:Vector.;
23 |
24 | public var view:DisplayObject;
25 |
26 | public function TraceProxyMap_map(moduleName:String, $proxyObject:Proxy, $injectClass:Class, $name:String) {
27 | super(MvcTraceActions.PROXYMAP_MAP, moduleName);
28 | proxyObject = $proxyObject;
29 | injectClass = $injectClass;
30 | name = $name;
31 | }
32 |
33 | override public function toString():String {
34 | return "¶¶¶+ " + MvcTraceActions.PROXYMAP_MAP + " > proxyObject : " + proxyObject + ", injectClass : " + injectClass + ", name : " + name + " {" + moduleName + "}";
35 | }
36 |
37 | }
38 | }
--------------------------------------------------------------------------------
/src/mvcexpress/core/traceObjects/proxyMap/TraceProxyMap_unmap.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.core.traceObjects.proxyMap {
3 | import flash.display.DisplayObject;
4 |
5 | import mvcexpress.core.traceObjects.MvcTraceActions;
6 | import mvcexpress.core.traceObjects.TraceObj;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceProxyMap_unmap extends TraceObj {
16 |
17 | public var injectClass:Class;
18 | public var name:String;
19 |
20 | public var dependencies:Vector.;
21 |
22 | public var view:DisplayObject;
23 |
24 | public function TraceProxyMap_unmap(moduleName:String, $injectClass:Class, $name:String) {
25 | super(MvcTraceActions.PROXYMAP_UNMAP, moduleName);
26 | injectClass = $injectClass;
27 | name = $name;
28 | }
29 |
30 | override public function toString():String {
31 | return "¶¶¶¶- " + MvcTraceActions.COMMANDMAP_UNMAP + " > injectClass : " + injectClass + ", name : " + name + " {" + moduleName + "}";
32 | }
33 |
34 | }
35 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/combo/scopedLive/mvc/PooledCommandScopedLive.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.combo.scopedLive.mvc {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.extensions.live.core.ProcessMapLive;
5 | import mvcexpress.extensions.live.modules.ModuleLive;
6 | import mvcexpress.extensions.scoped.mvc.PooledCommandScoped;
7 |
8 | use namespace pureLegsCore;
9 |
10 | /**
11 | * Command that is automatically pooled.
12 | * All PooledCommand's are automatically pooled after execution - unless lock() is used.
13 | * @author Raimundas Banevicius (http://mvcexpress.org/)
14 | *
15 | * @version live.1.0.beta2
16 | */
17 | public class PooledCommandScopedLive extends PooledCommandScoped {
18 |
19 | /** Handles application processes. */
20 | public var processMap:ProcessMapLive;
21 |
22 | //----------------------------------
23 | // Extension checking: INTERNAL, DEBUG ONLY.
24 | //----------------------------------
25 |
26 | /** @private */
27 | CONFIG::debug
28 | static pureLegsCore var extension_id:int = ModuleLive.pureLegsCore::EXTENSION_LIVE_ID;
29 |
30 | /** @private */
31 | CONFIG::debug
32 | static pureLegsCore var extension_name:String = ModuleLive.pureLegsCore::EXTENSION_LIVE_NAME
33 |
34 | }
35 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/core/inject/InjectRuleTaskVO.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.live.core.inject {
3 | import mvcexpress.core.inject.InjectRuleVO;
4 |
5 | /**
6 | * FOR INTERNAL USE ONLY.
7 | * Value Object to keep injection rules - what have to be injected there.
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version live.1.0.beta2
12 | */
13 | public class InjectRuleTaskVO extends InjectRuleVO {
14 |
15 | /** FOR INTERNAL USE ONLY. Scope name for injection. */
16 | public var scopeName:String;
17 |
18 | CONFIG::debug
19 | override public function toString():String {
20 | return "[InjectRuleVO varName=" + varName + " injectId=" + injectId + " scopeName=" + scopeName + "]";
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/engine/ProcessTimerVO.as:
--------------------------------------------------------------------------------
1 | package mvcexpress.extensions.live.engine {
2 |
3 | /**
4 | * INTERNAL.
5 | * @private
6 | *
7 | * @author Raimundas Banevicius (http://mvcexpress.org/)
8 | */
9 | public class ProcessTimerVO {
10 |
11 | // ms passed from last tick.
12 | public var ms:int;
13 |
14 | // seconds passed from last tick.
15 | public var sec:Number;
16 |
17 | // current timer
18 | public var timerCurrent:int;
19 |
20 | // last timer
21 | public var timerLast:int;
22 | }
23 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/mvc/PooledCommandLive.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.live.mvc {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.extensions.live.core.ProcessMapLive;
5 | import mvcexpress.extensions.live.modules.ModuleLive;
6 | import mvcexpress.mvc.PooledCommand;
7 |
8 | use namespace pureLegsCore;
9 |
10 | /**
11 | * Command that is automatically pooled.
12 | * All PooledCommand's are automatically pooled after execution - unless lock() is used.
13 | * @author Raimundas Banevicius (http://mvcexpress.org/)
14 | *
15 | * @version live.1.0.beta2
16 | */
17 | public class PooledCommandLive extends PooledCommand {
18 |
19 | /** Handles application processes. */
20 | public var processMap:ProcessMapLive;
21 |
22 | //----------------------------------
23 | // Extension checking: INTERNAL, DEBUG ONLY.
24 | //----------------------------------
25 |
26 | /** @private */
27 | CONFIG::debug
28 | static pureLegsCore var extension_id:int = ModuleLive.pureLegsCore::EXTENSION_LIVE_ID;
29 |
30 | /** @private */
31 | CONFIG::debug
32 | static pureLegsCore var extension_name:String = ModuleLive.pureLegsCore::EXTENSION_LIVE_NAME
33 |
34 | }
35 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/taskTests/TaskTestVO.as:
--------------------------------------------------------------------------------
1 | package mvcexpress.extensions.live.taskTests {
2 |
3 | /**
4 | * FOR INTERNAL USE ONLY.
5 | * @author rBanevicius
6 | * @private
7 | *
8 | * @version live.1.0.beta2
9 | */
10 | public class TaskTestVO {
11 |
12 | public var testFunction:Function;
13 |
14 | public var totalCount:int;
15 |
16 | public var totalDelay:int;
17 |
18 | public var currentTimer:uint;
19 |
20 | public var currentDelay:int = 0;
21 | }
22 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/taskTests/TestRuleVO.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.live.taskTests {
3 | import mvcexpress.extensions.live.core.inject.InjectRuleTaskVO;
4 |
5 | /**
6 | * FOR INTERNAL USE ONLY.
7 | * @author Raimundas Banevicius (http://mvcexpress.org/)
8 | * @private
9 | *
10 | * @version live.1.0.beta2
11 | */
12 | public class TestRuleVO extends InjectRuleTaskVO {
13 |
14 | public var functionName:String;
15 |
16 | public var testDelay:int = 0;
17 |
18 | public var testCount:int = 1;
19 |
20 | }
21 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/traceObjects/TraceProcess_sendMessage.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.live.traceObjects {
3 | import mvcexpress.core.traceObjects.*;
4 | import mvcexpress.extensions.live.engine.Process;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version live.1.0.beta2
12 | */
13 | public class TraceProcess_sendMessage extends TraceObj_SendMessage {
14 |
15 | public var type:String;
16 | public var params:Object;
17 |
18 | private var processObject:Process;
19 |
20 | public function TraceProcess_sendMessage(action:String, moduleName:String, $processObject:Process, $type:String, $params:Object) {
21 | super(action, moduleName);
22 | processObject = $processObject;
23 | type = $type;
24 | params = $params;
25 | //
26 | canPrint = false;
27 | }
28 |
29 | }
30 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/traceObjects/process/TraceProcess_addFirstTask.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.live.traceObjects.process {
3 | import mvcexpress.core.traceObjects.TraceObj;
4 | import mvcexpress.extensions.live.traceObjects.MvcTraceActionsLive;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version live.1.0.beta2
12 | */
13 | public class TraceProcess_addFirstTask extends TraceObj {
14 |
15 | public var taskClass:Class;
16 | public var name:String;
17 | public var skip:Boolean;
18 |
19 | public function TraceProcess_addFirstTask(action:String, moduleName:String, $taskClass:Class, $name:String, $skip:Boolean = false) {
20 | super(action, moduleName);
21 | skip = $skip;
22 | taskClass = $taskClass;
23 | name = $name;
24 | }
25 |
26 | override public function toString():String {
27 | if (skip) {
28 | return "ÆÆÆ+ " + MvcTraceActionsLive.PROCESS_ADDFIRSTTASK + "WARNING!: this task is already added. > taskClass : " + taskClass + ", name : " + name + " {" + moduleName + "}";
29 | }
30 | return "ÆÆÆ+ " + MvcTraceActionsLive.PROCESS_ADDFIRSTTASK + " > taskClass : " + taskClass + ", name : " + name + " {" + moduleName + "}";
31 | }
32 |
33 | }
34 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/traceObjects/process/TraceProcess_addHandler.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.live.traceObjects.process {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.TraceObj;
5 | import mvcexpress.extensions.live.engine.Process;
6 | import mvcexpress.extensions.live.traceObjects.MvcTraceActionsLive;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version live.1.0.beta2
14 | */
15 | public class TraceProcess_addHandler extends TraceObj {
16 |
17 | public var type:String;
18 | public var handler:Function;
19 | public var processObject:Process;
20 |
21 | public function TraceProcess_addHandler(moduleName:String, $processObject:Process, $type:String, $handler:Function) {
22 | use namespace pureLegsCore;
23 |
24 | super(MvcTraceActionsLive.PROCESS_ADDHANDLER, moduleName);
25 | processObject = $processObject;
26 | type = $type;
27 | handler = $handler;
28 | //
29 | canPrint = false;
30 | }
31 |
32 | }
33 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/traceObjects/process/TraceProcess_addTask.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.live.traceObjects.process {
3 | import mvcexpress.core.traceObjects.TraceObj;
4 | import mvcexpress.extensions.live.traceObjects.MvcTraceActionsLive;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version live.1.0.beta2
12 | */
13 | public class TraceProcess_addTask extends TraceObj {
14 |
15 | public var taskClass:Class;
16 | public var name:String;
17 | public var skip:Boolean;
18 |
19 | public function TraceProcess_addTask(action:String, moduleName:String, $taskClass:Class, $name:String, $skip:Boolean = false) {
20 | super(action, moduleName);
21 | skip = $skip;
22 | taskClass = $taskClass;
23 | name = $name;
24 | }
25 |
26 | override public function toString():String {
27 | if (skip) {
28 | return "ÆÆÆ+ " + MvcTraceActionsLive.PROCESS_ADDTASK + "WARNING!: this task is already added. > taskClass : " + taskClass + ", name : " + name + " {" + moduleName + "}";
29 | }
30 | return "ÆÆÆ+ " + MvcTraceActionsLive.PROCESS_ADDTASK + " > taskClass : " + taskClass + ", name : " + name + " {" + moduleName + "}";
31 | }
32 |
33 | }
34 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/traceObjects/process/TraceProcess_addTaskAfter.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.live.traceObjects.process {
3 | import mvcexpress.core.traceObjects.TraceObj;
4 | import mvcexpress.extensions.live.traceObjects.MvcTraceActionsLive;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version live.1.0.beta2
12 | */
13 | public class TraceProcess_addTaskAfter extends TraceObj {
14 |
15 | public var taskClass:Class;
16 | public var name:String;
17 | public var skip:Boolean;
18 |
19 | public function TraceProcess_addTaskAfter(action:String, moduleName:String, $taskClass:Class, $name:String, $skip:Boolean = false) {
20 | super(action, moduleName);
21 | skip = $skip;
22 | taskClass = $taskClass;
23 | name = $name;
24 | }
25 |
26 | override public function toString():String {
27 | if (skip) {
28 | return "ÆÆÆ+ " + MvcTraceActionsLive.PROCESS_ADDTASKAFTER + "WARNING!: this task is already added. > taskClass : " + taskClass + ", name : " + name + " {" + moduleName + "}";
29 | }
30 | return "ÆÆÆ+ " + MvcTraceActionsLive.PROCESS_ADDTASKAFTER + " > taskClass : " + taskClass + ", name : " + name + " {" + moduleName + "}";
31 | }
32 |
33 | }
34 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/traceObjects/process/TraceProcess_disableTask.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.live.traceObjects.process {
3 | import mvcexpress.core.traceObjects.TraceObj;
4 | import mvcexpress.extensions.live.traceObjects.MvcTraceActionsLive;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version live.1.0.beta2
12 | */
13 | public class TraceProcess_disableTask extends TraceObj {
14 |
15 | public var taskClass:Class;
16 | public var name:String;
17 |
18 | public function TraceProcess_disableTask(action:String, moduleName:String, $taskClass:Class, $name:String) {
19 | super(action, moduleName);
20 | taskClass = $taskClass;
21 | name = $name;
22 | }
23 |
24 | override public function toString():String {
25 | return "ÆÆÆ/ " + MvcTraceActionsLive.PROCESS_DISABLETASK + " > taskClass : " + taskClass + ", name : " + name + " {" + moduleName + "}";
26 | }
27 |
28 | }
29 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/traceObjects/process/TraceProcess_enableTask.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.live.traceObjects.process {
3 | import mvcexpress.core.traceObjects.TraceObj;
4 | import mvcexpress.extensions.live.traceObjects.MvcTraceActionsLive;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version live.1.0.beta2
12 | */
13 | public class TraceProcess_enableTask extends TraceObj {
14 |
15 | public var taskClass:Class;
16 | public var name:String;
17 |
18 | public function TraceProcess_enableTask(action:String, moduleName:String, $taskClass:Class, $name:String) {
19 | super(action, moduleName);
20 | taskClass = $taskClass;
21 | name = $name;
22 | }
23 |
24 | override public function toString():String {
25 | return "ÆÆÆ* " + MvcTraceActionsLive.PROCESS_ENABLETASK + " > taskClass : " + taskClass + ", name : " + name + " {" + moduleName + "}";
26 | }
27 |
28 | }
29 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/traceObjects/process/TraceProcess_removeAllTasks.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.live.traceObjects.process {
3 | import mvcexpress.core.traceObjects.TraceObj;
4 | import mvcexpress.extensions.live.traceObjects.MvcTraceActionsLive;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version live.1.0.beta2
12 | */
13 | public class TraceProcess_removeAllTasks extends TraceObj {
14 |
15 | public function TraceProcess_removeAllTasks(action:String, moduleName:String) {
16 | super(action, moduleName);
17 | }
18 |
19 | override public function toString():String {
20 | return "ÆÆ-- " + MvcTraceActionsLive.PROCESS_REMOVEALLTASKS + " {" + moduleName + "}";
21 | }
22 |
23 | }
24 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/traceObjects/process/TraceProcess_removeTask.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.live.traceObjects.process {
3 | import mvcexpress.core.traceObjects.TraceObj;
4 | import mvcexpress.extensions.live.traceObjects.MvcTraceActionsLive;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version live.1.0.beta2
12 | */
13 | public class TraceProcess_removeTask extends TraceObj {
14 |
15 | public var taskClass:Class;
16 | public var name:String;
17 |
18 | public function TraceProcess_removeTask(action:String, moduleName:String, $taskClass:Class, $name:String) {
19 | super(action, moduleName);
20 | taskClass = $taskClass;
21 | name = $name;
22 | }
23 |
24 | override public function toString():String {
25 | return "ÆÆÆ- " + MvcTraceActionsLive.PROCESS_REMOVETASK + " > taskClass : " + taskClass + ", name : " + name + " {" + moduleName + "}";
26 | }
27 |
28 | }
29 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/traceObjects/processMap/TraceProcessMap_provide.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.live.traceObjects.processMap {
3 | import mvcexpress.core.traceObjects.TraceObj;
4 | import mvcexpress.extensions.live.traceObjects.MvcTraceActionsLive;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version live.1.0.beta2
12 | */
13 | public class TraceProcessMap_provide extends TraceObj {
14 |
15 | public var name:String;
16 | public var object:Object;
17 |
18 | public function TraceProcessMap_provide(action:String, moduleName:String, $name:String, $object:Object) {
19 | super(action, moduleName);
20 | name = $name;
21 | object = $object;
22 | }
23 |
24 | override public function toString():String {
25 | return "ÆÆ++ " + MvcTraceActionsLive.PROCESSMAP_PROVIDE + " > name : " + name + ", object : " + object + " {" + moduleName + "}";
26 | }
27 |
28 | }
29 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/live/traceObjects/processMap/TraceProcessMap_unprovide.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.live.traceObjects.processMap {
3 | import mvcexpress.core.traceObjects.TraceObj;
4 | import mvcexpress.extensions.live.traceObjects.MvcTraceActionsLive;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version live.1.0.beta2
12 | */
13 | public class TraceProcessMap_unprovide extends TraceObj {
14 |
15 | public var name:String;
16 | public var object:Object;
17 |
18 | public function TraceProcessMap_unprovide(action:String, moduleName:String, $name:String, $object:Object) {
19 | super(action, moduleName);
20 | name = $name;
21 | object = $object;
22 | }
23 |
24 | override public function toString():String {
25 | return "ÆÆ-- " + MvcTraceActionsLive.PROCESSMAP_UNPROVIDE + " > name : " + name + ", object : " + object + " {" + moduleName + "}";
26 | }
27 |
28 | }
29 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/scoped/core/inject/InjectRuleScopedVO.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.scoped.core.inject {
3 | import mvcexpress.core.inject.InjectRuleVO;
4 |
5 | /**
6 | * FOR INTERNAL USE ONLY.
7 | * Value Object to keep injection rules - what have to be injected there.
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | *
10 | * @version scoped.1.0.beta2
11 | */
12 | public class InjectRuleScopedVO extends InjectRuleVO {
13 |
14 | /** FOR INTERNAL USE ONLY. Scope name for injection. */
15 | public var scopeName:String;
16 |
17 | CONFIG::debug
18 | override public function toString():String {
19 | return "[InjectRuleVO varName=" + varName + " injectClassAndName=" + injectId + " scopeName=" + scopeName + "]";
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/scoped/core/traceObjects/TraceCommand_sendScopeMessage.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.scoped.core.traceObjects {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj_SendMessage;
6 | import mvcexpress.mvc.Command;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceCommand_sendScopeMessage extends TraceObj_SendMessage {
16 |
17 | public var type:String;
18 | public var params:Object;
19 |
20 | public function TraceCommand_sendScopeMessage(moduleName:String, $commandObject:Command, $type:String, $params:Object, preSend:Boolean) {
21 | use namespace pureLegsCore;
22 |
23 | super(((preSend) ? MvcTraceActions.COMMAND_SENDSCOPEMESSAGE : MvcTraceActions.COMMAND_SENDSCOPEMESSAGE_CLEAN), moduleName);
24 | commandObject = $commandObject;
25 | type = $type;
26 | params = $params;
27 | //
28 | canPrint = false;
29 | }
30 |
31 | }
32 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/scoped/core/traceObjects/TraceMediator_sendScopeMessage.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.scoped.core.traceObjects {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj_SendMessage;
6 | import mvcexpress.mvc.Mediator;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceMediator_sendScopeMessage extends TraceObj_SendMessage {
16 |
17 | public var type:String;
18 | public var params:Object;
19 |
20 | public function TraceMediator_sendScopeMessage(moduleName:String, $mediatorObject:Mediator, $type:String, $params:Object, preSend:Boolean) {
21 | use namespace pureLegsCore;
22 |
23 | super(((preSend) ? MvcTraceActions.MEDIATOR_SENDSCOPEMESSAGE : MvcTraceActions.MEDIATOR_SENDSCOPEMESSAGE_CLEAN), moduleName);
24 | mediatorObject = $mediatorObject;
25 | type = $type;
26 | params = $params;
27 | //
28 | canPrint = false;
29 | }
30 |
31 | }
32 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/scoped/core/traceObjects/TraceModuleBase_sendScopeMessage.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.scoped.core.traceObjects {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj_SendMessage;
6 | import mvcexpress.modules.ModuleCore;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceModuleBase_sendScopeMessage extends TraceObj_SendMessage {
16 |
17 | public var type:String;
18 | public var params:Object;
19 |
20 | public function TraceModuleBase_sendScopeMessage(moduleName:String, $moduleObject:ModuleCore, $type:String, $params:Object, preSend:Boolean) {
21 | use namespace pureLegsCore;
22 |
23 | super(((preSend) ? MvcTraceActions.MODULEBASE_SENDSCOPEMESSAGE : MvcTraceActions.MODULEBASE_SENDSCOPEMESSAGE_CLEAN), moduleName);
24 | moduleObject = $moduleObject;
25 | type = $type;
26 | params = $params;
27 | //
28 | canPrint = false;
29 | }
30 |
31 | }
32 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/scoped/core/traceObjects/TraceModuleManager_registerScope.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.scoped.core.traceObjects {
3 | import mvcexpress.core.traceObjects.MvcTraceActions;
4 | import mvcexpress.core.traceObjects.TraceObj;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version 2.0.rc1
12 | */
13 | public class TraceModuleManager_registerScope extends TraceObj {
14 |
15 | public var scopeName:String;
16 |
17 | public var messageSending:Boolean;
18 |
19 | public var messageReceiving:Boolean;
20 |
21 | public var proxieMap:Boolean;
22 |
23 | public function TraceModuleManager_registerScope(moduleName:String, $scopeName:String, $messageSending:Boolean, $messageReceiving:Boolean, $proxieMap:Boolean) {
24 | super(MvcTraceActions.MODULEMANAGER_CREATEMODULE, moduleName);
25 | $scopeName = $scopeName;
26 | $messageSending = $messageSending;
27 | $messageReceiving = $messageReceiving;
28 | $proxieMap = $proxieMap;
29 |
30 | }
31 |
32 | override public function toString():String {
33 | return "##**++ " + MvcTraceActions.MODULEMANAGER_CREATEMODULE + " > moduleName : " + moduleName + " scopeName=" + scopeName + " messageSending=" + messageSending + " messageReceiving=" + messageReceiving + " proxieMap=" + proxieMap + "]";
34 | }
35 |
36 | }
37 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/scoped/core/traceObjects/TraceModuleManager_unregisterScope.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.scoped.core.traceObjects {
3 | import mvcexpress.core.traceObjects.MvcTraceActions;
4 | import mvcexpress.core.traceObjects.TraceObj;
5 |
6 | /**
7 | * Class for mvcExpress tracing. (debug mode only)
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | * @private
10 | *
11 | * @version 2.0.rc1
12 | */
13 | public class TraceModuleManager_unregisterScope extends TraceObj {
14 |
15 | public var scopeName:String;
16 |
17 | public function TraceModuleManager_unregisterScope(moduleName:String, $scopeName:String) {
18 | super(MvcTraceActions.MODULEMANAGER_UNREGISTERSCOPE, moduleName);
19 | scopeName = $scopeName;
20 | }
21 |
22 | override public function toString():String {
23 | return "##**-- " + MvcTraceActions.MODULEMANAGER_UNREGISTERSCOPE + " > moduleName : " + moduleName + ", scopeName : " + scopeName;
24 | }
25 |
26 | }
27 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/scoped/core/traceObjects/TraceProxyMap_scopeMap.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.scoped.core.traceObjects {
3 | import flash.display.DisplayObject;
4 |
5 | import mvcexpress.core.traceObjects.MvcTraceActions;
6 | import mvcexpress.core.traceObjects.TraceObj;
7 | import mvcexpress.mvc.Proxy;
8 |
9 | /**
10 | * Class for mvcExpress tracing. (debug mode only)
11 | * @author Raimundas Banevicius (http://mvcexpress.org/)
12 | * @private
13 | *
14 | * @version 2.0.rc1
15 | */
16 | public class TraceProxyMap_scopeMap extends TraceObj {
17 |
18 | public var scopeName:String;
19 | public var proxyObject:Proxy;
20 | public var injectClass:Class;
21 | public var name:String;
22 |
23 | public var dependencies:Vector.;
24 |
25 | public var view:DisplayObject;
26 |
27 | public function TraceProxyMap_scopeMap(moduleName:String, $scopeName:String, $proxyObject:Proxy, $injectClass:Class, $name:String) {
28 | super(MvcTraceActions.PROXYMAP_SCOPEMAP, moduleName);
29 | scopeName = $scopeName;
30 | proxyObject = $proxyObject;
31 | injectClass = $injectClass;
32 | name = $name;
33 | }
34 |
35 | override public function toString():String {
36 | return "{$}¶¶¶+ " + MvcTraceActions.PROXYMAP_SCOPEMAP + " > scopeName : " + scopeName + "proxyObject : " + proxyObject + ", injectClass : " + injectClass + ", name : " + name + " {" + moduleName + "}";
37 | }
38 |
39 | }
40 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/scoped/core/traceObjects/TraceProxyMap_scopeUnmap.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.scoped.core.traceObjects {
3 | import flash.display.DisplayObject;
4 |
5 | import mvcexpress.core.traceObjects.MvcTraceActions;
6 | import mvcexpress.core.traceObjects.TraceObj;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceProxyMap_scopeUnmap extends TraceObj {
16 |
17 | public var scopeName:String;
18 | public var injectClass:Class;
19 | public var name:String;
20 |
21 | public var dependencies:Vector.;
22 |
23 | public var view:DisplayObject;
24 |
25 | public function TraceProxyMap_scopeUnmap(moduleName:String, $scopeName:String, $injectClass:Class, $name:String) {
26 | super(MvcTraceActions.PROXYMAP_SCOPEUNMAP, moduleName);
27 | scopeName = $scopeName;
28 | injectClass = $injectClass;
29 | name = $name;
30 | }
31 |
32 | override public function toString():String {
33 | return "{$}¶¶¶¶- " + MvcTraceActions.PROXYMAP_SCOPEUNMAP + " > scopeName : " + scopeName + ", injectClass : " + injectClass + ", name : " + name + " {" + moduleName + "}";
34 | }
35 |
36 | }
37 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/scoped/core/traceObjects/TraceProxyMap_scopedInjectPending.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.scoped.core.traceObjects {
3 | import mvcexpress.core.inject.InjectRuleVO;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj;
6 |
7 | /**
8 | * Class for mvcExpress tracing. (debug mode only)
9 | * @author Raimundas Banevicius (http://mvcexpress.org/)
10 | * @private
11 | *
12 | * @version 2.0.rc1
13 | */
14 | public class TraceProxyMap_scopedInjectPending extends TraceObj {
15 |
16 | public var scopeName:String;
17 | public var hostObject:Object;
18 | public var injectObject:Object;
19 | public var rule:InjectRuleVO;
20 |
21 | public function TraceProxyMap_scopedInjectPending($scopeName:String, moduleName:String, $hostObject:Object, $injectObject:Object, $rule:InjectRuleVO) {
22 | super(MvcTraceActions.PROXYMAP_INJECTPENDING, moduleName);
23 | scopeName = $scopeName;
24 | hostObject = $hostObject;
25 | injectObject = $injectObject;
26 | rule = $rule;
27 | }
28 |
29 | override public function toString():String {
30 | return "!!!!! " + MvcTraceActions.PROXYMAP_INJECTPENDING + " > for scopeName:" + scopeName + " with id:" + rule.injectId + "(needed in " + hostObject + ")" + " {" + moduleName + "}";
31 | }
32 | }
33 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/scoped/core/traceObjects/TraceProxy_sendScopeMessage.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.scoped.core.traceObjects {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj_SendMessage;
6 | import mvcexpress.mvc.Proxy;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceProxy_sendScopeMessage extends TraceObj_SendMessage {
16 |
17 | public var type:String;
18 | public var params:Object;
19 |
20 | public function TraceProxy_sendScopeMessage(moduleName:String, $proxyObject:Proxy, $type:String, $params:Object, preSend:Boolean) {
21 | use namespace pureLegsCore;
22 |
23 | super(((preSend) ? MvcTraceActions.PROXY_SENDSCOPEMESSAGE : MvcTraceActions.PROXY_SENDSCOPEMESSAGE_CLEAN), moduleName);
24 | proxyObject = $proxyObject;
25 | type = $type;
26 | params = $params;
27 | //
28 | canPrint = false;
29 | }
30 |
31 | }
32 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/unpuremvc/patterns/command/UnpureICommand.as:
--------------------------------------------------------------------------------
1 | /*
2 | PureMVC - Copyright(c) 2006-08 Futurescale, Inc., Some rights reserved.
3 | Your reuse is governed by the Creative Commons Attribution 3.0 United States License
4 | */
5 | package mvcexpress.extensions.unpuremvc.patterns.command {
6 | import mvcexpress.extensions.unpuremvc.patterns.observer.UnpureNotification;
7 |
8 | /**
9 | * The interface definition for a PureMVC Command.
10 | *
11 | * @see mvcexpress.extensions.unpuremvc.interfaces INotification
12 | *
13 | * @version unpuremvc.1.0.beta2
14 | */
15 | public interface UnpureICommand {
16 | /**
17 | * Execute the ICommand
's logic to handle a given INotification
.
18 | *
19 | * @param note an INotification
to handle.
20 | */
21 | function execute(notification:UnpureNotification):void;
22 | }
23 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/workers/core/traceObjects/command/TraceCommand_sendWorkerMessage.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.workers.core.traceObjects.command {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj_SendMessage;
6 | import mvcexpress.mvc.Command;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceCommand_sendWorkerMessage extends TraceObj_SendMessage {
16 |
17 | public var type:String;
18 | public var params:Object;
19 |
20 | public function TraceCommand_sendWorkerMessage(moduleName:String, $commandObject:Command, $type:String, $params:Object, preSend:Boolean) {
21 | use namespace pureLegsCore;
22 |
23 | super(((preSend) ? MvcTraceActions.COMMAND_SENDSCOPEMESSAGE : MvcTraceActions.COMMAND_SENDSCOPEMESSAGE_CLEAN), moduleName);
24 | commandObject = $commandObject;
25 | type = $type;
26 | params = $params;
27 | //
28 | canPrint = false;
29 | }
30 |
31 | }
32 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/workers/core/traceObjects/mediator/TraceMediator_sendWorkerMessage.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.workers.core.traceObjects.mediator {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj_SendMessage;
6 | import mvcexpress.mvc.Mediator;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceMediator_sendWorkerMessage extends TraceObj_SendMessage {
16 |
17 | public var type:String;
18 | public var params:Object;
19 |
20 | public function TraceMediator_sendWorkerMessage(moduleName:String, $mediatorObject:Mediator, $type:String, $params:Object, preSend:Boolean) {
21 | use namespace pureLegsCore;
22 |
23 | super(((preSend) ? MvcTraceActions.MEDIATOR_SENDSCOPEMESSAGE : MvcTraceActions.MEDIATOR_SENDSCOPEMESSAGE_CLEAN), moduleName);
24 | mediatorObject = $mediatorObject;
25 | type = $type;
26 | params = $params;
27 | //
28 | canPrint = false;
29 | }
30 |
31 | }
32 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/workers/core/traceObjects/moduleBase/TraceModuleBase_sendWorkerMessage.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.workers.core.traceObjects.moduleBase {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj_SendMessage;
6 | import mvcexpress.modules.ModuleCore;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceModuleBase_sendWorkerMessage extends TraceObj_SendMessage {
16 |
17 | public var type:String;
18 | public var params:Object;
19 |
20 | public function TraceModuleBase_sendWorkerMessage(moduleName:String, $moduleObject:ModuleCore, $type:String, $params:Object, preSend:Boolean) {
21 | use namespace pureLegsCore;
22 |
23 | super(((preSend) ? MvcTraceActions.MODULEBASE_SENDSCOPEMESSAGE : MvcTraceActions.MODULEBASE_SENDSCOPEMESSAGE_CLEAN), moduleName);
24 | moduleObject = $moduleObject;
25 | type = $type;
26 | params = $params;
27 | //
28 | canPrint = false;
29 | }
30 |
31 | }
32 | }
--------------------------------------------------------------------------------
/srcExtensions/mvcexpress/extensions/workers/core/traceObjects/proxy/TraceProxy_sendWorkerMessage.as:
--------------------------------------------------------------------------------
1 | // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
2 | package mvcexpress.extensions.workers.core.traceObjects.proxy {
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.core.traceObjects.MvcTraceActions;
5 | import mvcexpress.core.traceObjects.TraceObj_SendMessage;
6 | import mvcexpress.mvc.Proxy;
7 |
8 | /**
9 | * Class for mvcExpress tracing. (debug mode only)
10 | * @author Raimundas Banevicius (http://mvcexpress.org/)
11 | * @private
12 | *
13 | * @version 2.0.rc1
14 | */
15 | public class TraceProxy_sendWorkerMessage extends TraceObj_SendMessage {
16 |
17 | public var type:String;
18 | public var params:Object;
19 |
20 | public function TraceProxy_sendWorkerMessage(moduleName:String, $proxyObject:Proxy, $type:String, $params:Object, preSend:Boolean) {
21 | use namespace pureLegsCore;
22 |
23 | super(((preSend) ? MvcTraceActions.PROXY_SENDSCOPEMESSAGE : MvcTraceActions.PROXY_SENDSCOPEMESSAGE_CLEAN), moduleName);
24 | proxyObject = $proxyObject;
25 | type = $type;
26 | params = $params;
27 | //
28 | canPrint = false;
29 | }
30 |
31 | }
32 | }
--------------------------------------------------------------------------------
/test/MvcExpressTestFlexRunner.mxml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/test/MvcExpressTestRunner.as:
--------------------------------------------------------------------------------
1 | package {
2 | import flash.display.Sprite;
3 | import flash.display.Stage;
4 | import flash.display.StageAlign;
5 | import flash.display.StageScaleMode;
6 |
7 | import noiseandheat.flexunit.visuallistener.VisualListener;
8 |
9 | import org.flexunit.internals.TraceListener;
10 | import org.flexunit.runner.FlexUnitCore;
11 |
12 | /**
13 | * COMMENT
14 | * @author Raimundas Banevicius (http://mvcexpress.org/)
15 | */
16 | public class MvcExpressTestRunner extends Sprite {
17 | private var listener:VisualListener;
18 |
19 | static public var stage:Stage;
20 |
21 | public function MvcExpressTestRunner() {
22 |
23 | MvcExpressTestRunner.stage = this.stage;
24 |
25 | var core:FlexUnitCore = new FlexUnitCore();
26 |
27 | this.stage.align = StageAlign.TOP_LEFT;
28 | this.stage.scaleMode = StageScaleMode.NO_SCALE;
29 |
30 | /**If you don't need graphical test results, comment out the line below and the MXML declaring the TestRunnerBase. **/
31 | //core.addListener(new UIListener(uiListener));
32 | //core.addListener(new CIListener());
33 |
34 | /**If you would like to see text output in verbose mode, umcomment either of the follow listeners **/
35 | core.addListener(new TraceListener());
36 | //core.addListener( TextListener.getDefaultTextListener( LogEventLevel.DEBUG ) ); - For Flex Projects
37 |
38 | listener = new VisualListener(this.stage.stageWidth, this.stage.stageHeight);
39 | addChild(listener);
40 | core.addListener(listener);
41 | core.run(AllTestSuites);
42 | }
43 |
44 | }
45 | }
--------------------------------------------------------------------------------
/test/constants/TestExtensionDict.as:
--------------------------------------------------------------------------------
1 | package constants {
2 | import flash.utils.Dictionary;
3 |
4 | import mvcexpress.core.namespace.pureLegsCore;
5 | import mvcexpress.modules.ModuleCore;
6 |
7 | use namespace pureLegsCore;
8 |
9 | public class TestExtensionDict {
10 |
11 | private static var defaultExtensionDict:Dictionary;
12 |
13 |
14 | static public function getDefaultExtensionDict():Dictionary {
15 | if (!defaultExtensionDict) {
16 | defaultExtensionDict = new Dictionary();
17 | CONFIG::debug {
18 | defaultExtensionDict[ModuleCore.pureLegsCore::EXTENSION_CORE_ID] = true;
19 | }
20 | }
21 | return defaultExtensionDict;
22 | }
23 |
24 |
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/test/integration/aGenericExtension/fake/core/FakeExtensionCommandMap.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericExtension.fake.core {
2 | import flash.utils.Dictionary;
3 |
4 | import integration.aGenericExtension.fake.module.FakeExtensionModule;
5 |
6 | import mvcexpress.core.CommandMap;
7 | import mvcexpress.core.MediatorMap;
8 | import mvcexpress.core.ProxyMap;
9 | import mvcexpress.core.messenger.Messenger;
10 | import mvcexpress.core.namespace.pureLegsCore;
11 |
12 | use namespace pureLegsCore;
13 |
14 | public class FakeExtensionCommandMap extends CommandMap {
15 | public function FakeExtensionCommandMap($moduleName:String, $messenger:Messenger, $proxyMap:ProxyMap, $mediatorMap:MediatorMap) {
16 | super($moduleName, $messenger, $proxyMap, $mediatorMap);
17 | }
18 |
19 | //----------------------------------
20 | // Extension checking: INTERNAL, DEBUG ONLY.
21 | //----------------------------------
22 |
23 | CONFIG::debug
24 | override pureLegsCore function setSupportedExtensions(supportedExtensions:Dictionary):void {
25 | super.setSupportedExtensions(supportedExtensions);
26 | if (!SUPPORTED_EXTENSIONS[FakeExtensionModule.EXTENSION_TEST_ID]) {
27 | throw Error("This extension is not supported by current module. You need " + FakeExtensionModule.EXTENSION_TEST_NAME + " extension enabled.");
28 | }
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/test/integration/aGenericExtension/fake/core/FakeExtensionMediatorMap.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericExtension.fake.core {
2 | import flash.utils.Dictionary;
3 |
4 | import integration.aGenericExtension.fake.module.FakeExtensionModule;
5 |
6 | import mvcexpress.core.MediatorMap;
7 | import mvcexpress.core.ProxyMap;
8 | import mvcexpress.core.messenger.Messenger;
9 | import mvcexpress.core.namespace.pureLegsCore;
10 |
11 | use namespace pureLegsCore;
12 |
13 | public class FakeExtensionMediatorMap extends MediatorMap {
14 | public function FakeExtensionMediatorMap($moduleName:String, $messenger:Messenger, $proxyMap:ProxyMap) {
15 | super($moduleName, $messenger, $proxyMap);
16 | }
17 |
18 | //----------------------------------
19 | // Extension checking: INTERNAL, DEBUG ONLY.
20 | //----------------------------------
21 |
22 |
23 | CONFIG::debug
24 | override pureLegsCore function setSupportedExtensions(supportedExtensions:Dictionary):void {
25 | use namespace pureLegsCore;
26 |
27 | super.setSupportedExtensions(supportedExtensions);
28 | if (!SUPPORTED_EXTENSIONS[FakeExtensionModule.EXTENSION_TEST_ID]) {
29 | throw Error("This extension is not supported by current module. You need " + FakeExtensionModule.EXTENSION_TEST_NAME + " extension enabled.");
30 | }
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/test/integration/aGenericExtension/fake/core/FakeExtensionMessenger.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericExtension.fake.core {
2 | import flash.utils.Dictionary;
3 |
4 | import integration.aGenericExtension.fake.module.FakeExtensionModule;
5 |
6 | import mvcexpress.core.messenger.Messenger;
7 | import mvcexpress.core.namespace.pureLegsCore;
8 |
9 | use namespace pureLegsCore;
10 |
11 | public class FakeExtensionMessenger extends Messenger {
12 |
13 | public function FakeExtensionMessenger($moduleName:String) {
14 | super($moduleName);
15 | }
16 |
17 |
18 | //----------------------------------
19 | // Extension checking: INTERNAL, DEBUG ONLY.
20 | //----------------------------------
21 |
22 | CONFIG::debug
23 | override pureLegsCore function setSupportedExtensions(supportedExtensions:Dictionary):void {
24 | super.setSupportedExtensions(supportedExtensions);
25 | if (!SUPPORTED_EXTENSIONS[FakeExtensionModule.pureLegsCore::EXTENSION_TEST_ID]) {
26 | throw Error("This extension is not supported by current module. You need " + FakeExtensionModule.pureLegsCore::EXTENSION_TEST_NAME + " extension enabled.");
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/test/integration/aGenericExtension/fake/core/FakeExtensionProxyMap.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericExtension.fake.core {
2 | import flash.utils.Dictionary;
3 |
4 | import integration.aGenericExtension.fake.module.FakeExtensionModule;
5 |
6 | import mvcexpress.core.ProxyMap;
7 | import mvcexpress.core.messenger.Messenger;
8 | import mvcexpress.core.namespace.pureLegsCore;
9 |
10 | use namespace pureLegsCore;
11 |
12 | public class FakeExtensionProxyMap extends ProxyMap {
13 | public function FakeExtensionProxyMap($moduleName:String, $messenger:Messenger) {
14 | super($moduleName, $messenger);
15 | }
16 |
17 | //----------------------------------
18 | // Extension checking: INTERNAL, DEBUG ONLY.
19 | //----------------------------------
20 |
21 | CONFIG::debug
22 | override pureLegsCore function setSupportedExtensions(supportedExtensions:Dictionary):void {
23 | super.setSupportedExtensions(supportedExtensions);
24 | if (!SUPPORTED_EXTENSIONS[FakeExtensionModule.EXTENSION_TEST_ID]) {
25 | throw Error("This extension is not supported by current module. You need " + FakeExtensionModule.EXTENSION_TEST_NAME + " extension enabled.");
26 | }
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/test/integration/aGenericExtension/fake/module/FakeExtensionModule.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericExtension.fake.module {
2 | import mvcexpress.core.ExtensionManager;
3 | import mvcexpress.core.namespace.pureLegsCore;
4 | import mvcexpress.modules.ModuleCore;
5 |
6 | use namespace pureLegsCore;
7 |
8 | public class FakeExtensionModule extends ModuleCore {
9 |
10 | public function FakeExtensionModule(moduleName:String = null, extendedMediatorMapClass:Class = null, extendedProxyMapClass:Class = null, extendedCommandMapClass:Class = null, extendedMessengerClass:Class = null) {
11 |
12 | CONFIG::debug {
13 | enableExtension(EXTENSION_TEST_ID);
14 | }
15 |
16 | super(moduleName, extendedMediatorMapClass, extendedProxyMapClass, extendedCommandMapClass, extendedMessengerClass);
17 | }
18 |
19 |
20 | //----------------------------------
21 | // Extension checking: INTERNAL, DEBUG ONLY.
22 | //----------------------------------
23 |
24 | /** @private */
25 | CONFIG::debug
26 | static pureLegsCore var EXTENSION_TEST_ID:int = ExtensionManager.getExtensionIdByName(pureLegsCore::EXTENSION_TEST_NAME);
27 |
28 | /** @private */
29 | CONFIG::debug
30 | static pureLegsCore const EXTENSION_TEST_NAME:String = "test_module";
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/test/integration/aGenericExtension/fake/mvc/FakeExtensionTestCommand.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericExtension.fake.mvc {
2 | import integration.aGenericExtension.fake.module.FakeExtensionModule;
3 |
4 | import mvcexpress.core.namespace.pureLegsCore;
5 | import mvcexpress.mvc.Command;
6 |
7 | use namespace pureLegsCore;
8 |
9 | /**
10 | * TODO:CLASS COMMENT
11 | * @author rbanevicius
12 | */
13 | public class FakeExtensionTestCommand extends Command {
14 |
15 | public function execute(blank:Object):void {
16 |
17 | }
18 |
19 |
20 | //----------------------------------
21 | // Extension checking: INTERNAL, DEBUG ONLY.
22 | //----------------------------------
23 |
24 | /** @private */
25 | CONFIG::debug
26 | static pureLegsCore var extension_id:int = FakeExtensionModule.pureLegsCore::EXTENSION_TEST_ID;
27 |
28 | /** @private */
29 | CONFIG::debug
30 | static pureLegsCore var extension_name:String = FakeExtensionModule.pureLegsCore::EXTENSION_TEST_NAME
31 |
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/test/integration/aGenericExtension/fake/mvc/FakeExtensionTestMediator.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericExtension.fake.mvc {
2 | import flash.display.Sprite;
3 |
4 | import integration.aGenericExtension.fake.module.FakeExtensionModule;
5 |
6 | import mvcexpress.core.namespace.pureLegsCore;
7 | import mvcexpress.mvc.Mediator;
8 |
9 | use namespace pureLegsCore;
10 |
11 | /**
12 | * TODO:CLASS COMMENT
13 | * @author rbanevicius
14 | */
15 | public class FakeExtensionTestMediator extends Mediator {
16 |
17 | [Inject]
18 | public var view:Sprite;
19 |
20 | override protected function onRegister():void {
21 |
22 | }
23 |
24 | override protected function onRemove():void {
25 |
26 | }
27 |
28 |
29 | //----------------------------------
30 | // Extension checking: INTERNAL, DEBUG ONLY.
31 | //----------------------------------
32 |
33 | /** @private */
34 | CONFIG::debug
35 | static pureLegsCore var extension_id:int = FakeExtensionModule.pureLegsCore::EXTENSION_TEST_ID;
36 |
37 | /** @private */
38 | CONFIG::debug
39 | static pureLegsCore var extension_name:String = FakeExtensionModule.pureLegsCore::EXTENSION_TEST_NAME
40 |
41 | }
42 | }
--------------------------------------------------------------------------------
/test/integration/aGenericExtension/fake/mvc/FakeExtensionTestProxy.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericExtension.fake.mvc {
2 | import integration.aGenericExtension.fake.module.FakeExtensionModule;
3 |
4 | import mvcexpress.core.namespace.pureLegsCore;
5 | import mvcexpress.mvc.Proxy;
6 |
7 | use namespace pureLegsCore;
8 |
9 | /**
10 | * TODO:CLASS COMMENT
11 | * @author rbanevicius
12 | */
13 | public class FakeExtensionTestProxy extends Proxy {
14 |
15 | public function FakeExtensionTestProxy() {
16 | }
17 |
18 | override protected function onRegister():void {
19 |
20 | }
21 |
22 | override protected function onRemove():void {
23 | }
24 |
25 | //----------------------------------
26 | // Extension checking: INTERNAL, DEBUG ONLY.
27 | //----------------------------------
28 |
29 | /** @private */
30 | CONFIG::debug
31 | static pureLegsCore var extension_id:int = FakeExtensionModule.pureLegsCore::EXTENSION_TEST_ID;
32 |
33 | /** @private */
34 | CONFIG::debug
35 | static pureLegsCore var extension_name:String = FakeExtensionModule.pureLegsCore::EXTENSION_TEST_NAME
36 |
37 | }
38 | }
--------------------------------------------------------------------------------
/test/integration/aGenericExtension/live/mvc/LiveExtensionTestCommand.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericExtension.live.mvc {
2 | import mvcexpress.extensions.live.mvc.CommandLive;
3 |
4 | /**
5 | * TODO:CLASS COMMENT
6 | * @author Deril
7 | */
8 | public class LiveExtensionTestCommand extends CommandLive {
9 |
10 | public function execute(blank:Object):void {
11 |
12 | }
13 |
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/test/integration/aGenericExtension/live/mvc/LiveExtensionTestMediator.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericExtension.live.mvc {
2 | import flash.display.Sprite;
3 |
4 | import mvcexpress.extensions.live.mvc.MediatorLive;
5 |
6 | /**
7 | * TODO:CLASS COMMENT
8 | * @author Deril
9 | */
10 | public class LiveExtensionTestMediator extends MediatorLive {
11 |
12 | [Inject]
13 | public var view:Sprite;
14 |
15 | override protected function onRegister():void {
16 |
17 | }
18 |
19 | override protected function onRemove():void {
20 | trace("Warning: LiveExtensionTestMediator onRemove() is not implemented!");
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/test/integration/aGenericExtension/live/mvc/LiveExtensionTestProxy.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericExtension.live.mvc {
2 | import mvcexpress.extensions.live.mvc.ProxyLive;
3 |
4 | /**
5 | * TODO:CLASS COMMENT
6 | * @author Deril
7 | */
8 | public class LiveExtensionTestProxy extends ProxyLive {
9 |
10 | public function LiveExtensionTestProxy() {
11 | }
12 |
13 | override protected function onRegister():void {
14 |
15 | }
16 |
17 | override protected function onRemove():void {
18 | trace("Warning: LiveExtensionTestProxy onRemove() not implemented!");
19 | }
20 |
21 | }
22 | }
--------------------------------------------------------------------------------
/test/integration/aGenericExtension/scoped/mvc/ScopedExtensionTestCommand.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericExtension.scoped.mvc {
2 | import mvcexpress.extensions.scoped.mvc.CommandScoped;
3 |
4 | /**
5 | * TODO:CLASS COMMENT
6 | * @author Deril
7 | */
8 | public class ScopedExtensionTestCommand extends CommandScoped {
9 |
10 | public function execute(blank:Object):void {
11 |
12 | }
13 |
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/test/integration/aGenericExtension/scoped/mvc/ScopedExtensionTestMediator.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericExtension.scoped.mvc {
2 | import flash.display.Sprite;
3 |
4 | import mvcexpress.extensions.scoped.mvc.MediatorScoped;
5 |
6 | /**
7 | * TODO:CLASS COMMENT
8 | * @author Deril
9 | */
10 | public class ScopedExtensionTestMediator extends MediatorScoped {
11 |
12 | [Inject]
13 | public var view:Sprite;
14 |
15 | override protected function onRegister():void {
16 |
17 | }
18 |
19 | override protected function onRemove():void {
20 | trace("Warning: LiveExtensionTestMediator onRemove() is not implemented!");
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/test/integration/aGenericExtension/scoped/mvc/ScopedExtensionTestProxy.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericExtension.scoped.mvc {
2 | import mvcexpress.extensions.scoped.mvc.ProxyScoped;
3 |
4 | /**
5 | * TODO:CLASS COMMENT
6 | * @author Deril
7 | */
8 | public class ScopedExtensionTestProxy extends ProxyScoped {
9 |
10 | public function ScopedExtensionTestProxy() {
11 | }
12 |
13 | override protected function onRegister():void {
14 |
15 | }
16 |
17 | override protected function onRemove():void {
18 | trace("Warning: LiveExtensionTestProxy onRemove() not implemented!");
19 | }
20 |
21 | }
22 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/constants/GenericScopeIds.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.constants {
2 |
3 | public class GenericScopeIds {
4 |
5 | static public const TEST_SCOPE:String = "GenericScopeIds_testScope";
6 |
7 | }
8 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/constants/GenericTestMessage.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.constants {
2 |
3 | public class GenericTestMessage {
4 |
5 | static public const TEST_MESSAGE:String = "GenericTestMessage_testMessage";
6 | }
7 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/constants/GenericTestStrings.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.constants {
2 |
3 | public class GenericTestStrings {
4 | static public var data1:String = "GenericTestStrings_testData_1";
5 | }
6 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/controller/GenericCommand.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.controller {
2 | import mvcexpress.mvc.Command;
3 |
4 | public class GenericCommand extends Command {
5 |
6 | public function execute(blank:Object):void {
7 |
8 | }
9 |
10 | }
11 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/controller/GenericCommand_withInject.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.controller {
2 | import integration.aGenericTestObjects.model.GenericTestProxy;
3 |
4 | import mvcexpress.mvc.Command;
5 |
6 | public class GenericCommand_withInject extends Command {
7 |
8 | [Inject]
9 | public var genericTestProxy:GenericTestProxy;
10 |
11 | public function execute(blank:Object):void {
12 |
13 | }
14 |
15 | }
16 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/controller/GenericCommand_withScopedInject.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.controller {
2 | import integration.aGenericTestObjects.model.GenericTestProxy;
3 |
4 | import mvcexpress.mvc.Command;
5 |
6 | public class GenericCommand_withScopedInject extends Command {
7 |
8 | [Inject(scope="GenericScopeIds_testScope")]
9 | public var genericTestProxy:GenericTestProxy;
10 |
11 | public function execute(blank:Object):void {
12 |
13 | }
14 |
15 | }
16 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/model/GenericTestProxy.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.model {
2 | import mvcexpress.mvc.Proxy;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author rBanevicius
7 | */
8 | public class GenericTestProxy extends Proxy implements IGenericTestProxy {
9 |
10 | public var testData:String;
11 | private var onRegisterMessage:String;
12 |
13 | public static var ASYNC_REGISTER_FUNCTION:Function;
14 |
15 | public function GenericTestProxy(onRegisterMessage:String = null) {
16 | this.onRegisterMessage = onRegisterMessage;
17 |
18 | }
19 |
20 | override protected function onRegister():void {
21 | if (onRegisterMessage) {
22 | sendMessage(onRegisterMessage);
23 | }
24 | if (ASYNC_REGISTER_FUNCTION != null) {
25 | ASYNC_REGISTER_FUNCTION();
26 | }
27 | }
28 |
29 | override protected function onRemove():void {
30 |
31 | }
32 |
33 |
34 | public function sendMessageTest(type:String, params:Object = null):void {
35 | super.sendMessage(type, params);
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/model/GenericTestProxy_withInject.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.model {
2 | import mvcexpress.mvc.Proxy;
3 |
4 | public class GenericTestProxy_withInject extends Proxy {
5 |
6 | [Inject]
7 | public var genericTestProxy:GenericTestProxy;
8 |
9 | public function GenericTestProxy_withInject() {
10 |
11 | }
12 |
13 | override protected function onRegister():void {
14 |
15 | }
16 |
17 | override protected function onRemove():void {
18 |
19 | }
20 |
21 | }
22 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/model/GenericTestProxy_withScopedInject.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.model {
2 | import mvcexpress.mvc.Proxy;
3 |
4 | public class GenericTestProxy_withScopedInject extends Proxy {
5 |
6 | [Inject(scope="GenericScopeIds_testScope")]
7 | public var genericTestProxy:GenericTestProxy;
8 |
9 | public function GenericTestProxy_withScopedInject() {
10 |
11 | }
12 |
13 | override protected function onRegister():void {
14 |
15 | }
16 |
17 | override protected function onRemove():void {
18 |
19 | }
20 |
21 | }
22 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/model/IGenericTestProxy.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.model {
2 | public interface IGenericTestProxy {
3 | }
4 | }
5 |
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/model/scoped/GenericTestProxyScoped.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.model.scoped {
2 | import integration.aGenericTestObjects.model.*;
3 |
4 | import mvcexpress.extensions.scoped.mvc.ProxyScoped;
5 |
6 | import mvcexpress.mvc.Proxy;
7 |
8 | /**
9 | * CLASS COMMENT
10 | * @author rBanevicius
11 | */
12 | public class GenericTestProxyScoped extends ProxyScoped implements IGenericTestProxy {
13 |
14 | public var testData:String;
15 | private var onRegisterMessage:String;
16 |
17 | public static var ASYNC_REGISTER_FUNCTION:Function;
18 |
19 | public function GenericTestProxyScoped(onRegisterMessage:String = null) {
20 | this.onRegisterMessage = onRegisterMessage;
21 |
22 | }
23 |
24 | override protected function onRegister():void {
25 | if (onRegisterMessage) {
26 | sendMessage(onRegisterMessage);
27 | }
28 | if (ASYNC_REGISTER_FUNCTION != null) {
29 | ASYNC_REGISTER_FUNCTION();
30 | }
31 | }
32 |
33 | override protected function onRemove():void {
34 |
35 | }
36 |
37 |
38 | public function sendMessageTest(type:String, params:Object = null):void {
39 | super.sendMessage(type, params);
40 | }
41 | }
42 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/view/GenericViewObject.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.view {
2 | import flash.display.Sprite;
3 |
4 | public class GenericViewObject extends Sprite {
5 |
6 | public function GenericViewObject() {
7 |
8 | }
9 |
10 | }
11 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/view/GenericViewObjectMediator.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.view {
2 | import mvcexpress.mvc.Mediator;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author rBanevicius
7 | */
8 | public class GenericViewObjectMediator extends Mediator {
9 |
10 | [Inject]
11 | public var view:GenericViewObject;
12 |
13 | //[Inject]
14 | //public var myProxy:MyProxy;
15 |
16 | override protected function onRegister():void {
17 |
18 | }
19 |
20 | override protected function onRemove():void {
21 |
22 | }
23 |
24 | }
25 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/view/GenericViewObjectMediator_handlingMessage.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.view {
2 | import integration.aGenericTestObjects.constants.GenericTestMessage;
3 |
4 | import mvcexpress.mvc.Mediator;
5 |
6 | /**
7 | * CLASS COMMENT
8 | * @author rBanevicius
9 | */
10 | public class GenericViewObjectMediator_handlingMessage extends Mediator {
11 |
12 | [Inject]
13 | public var view:GenericViewObject;
14 |
15 | override protected function onRegister():void {
16 | addHandler(GenericTestMessage.TEST_MESSAGE, handleTestMessage);
17 | }
18 |
19 | private function handleTestMessage(blank:Object):void {
20 |
21 | }
22 |
23 | override protected function onRemove():void {
24 |
25 | }
26 |
27 | }
28 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/view/GenericViewObjectMediator_handlingScopeMessage.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.view {
2 | import integration.aGenericTestObjects.constants.GenericScopeIds;
3 | import integration.aGenericTestObjects.constants.GenericTestMessage;
4 |
5 | import mvcexpress.extensions.scoped.mvc.MediatorScoped;
6 |
7 | /**
8 | * CLASS COMMENT
9 | * @author rBanevicius
10 | */
11 | public class GenericViewObjectMediator_handlingScopeMessage extends MediatorScoped {
12 |
13 | [Inject]
14 | public var view:GenericViewObject;
15 |
16 | override protected function onRegister():void {
17 | addScopeHandler(GenericScopeIds.TEST_SCOPE, GenericTestMessage.TEST_MESSAGE, handleTestMessage);
18 | }
19 |
20 | private function handleTestMessage(blank:Object):void {
21 |
22 | }
23 |
24 | override protected function onRemove():void {
25 |
26 | }
27 |
28 | }
29 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/view/GenericViewObjectMediator_withInject.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.view {
2 | import integration.aGenericTestObjects.model.GenericTestProxy;
3 |
4 | import mvcexpress.mvc.Mediator;
5 |
6 | /**
7 | * CLASS COMMENT
8 | * @author rBanevicius
9 | */
10 | public class GenericViewObjectMediator_withInject extends Mediator {
11 |
12 | [Inject]
13 | public var view:GenericViewObject;
14 |
15 | [Inject]
16 | public var genericTestProxy:GenericTestProxy;
17 |
18 | public static var ASYNC_REGISTER_FUNCTION:Function;
19 |
20 | override protected function onRegister():void {
21 | if (ASYNC_REGISTER_FUNCTION != null) {
22 | ASYNC_REGISTER_FUNCTION();
23 | }
24 | }
25 |
26 | override protected function onRemove():void {
27 |
28 | }
29 |
30 | }
31 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/view/GenericViewObjectMediator_withInterfaceInject.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.view {
2 | import integration.aGenericTestObjects.model.IGenericTestProxy;
3 |
4 | import mvcexpress.mvc.Mediator;
5 |
6 | /**
7 | * CLASS COMMENT
8 | * @author rBanevicius
9 | */
10 | public class GenericViewObjectMediator_withInterfaceInject extends Mediator {
11 |
12 | [Inject]
13 | public var view:GenericViewObject;
14 |
15 | [Inject]
16 | public var genericTestProxy:IGenericTestProxy;
17 |
18 | public static var ASYNC_REGISTER_FUNCTION:Function;
19 |
20 | override protected function onRegister():void {
21 | if (ASYNC_REGISTER_FUNCTION != null) {
22 | ASYNC_REGISTER_FUNCTION();
23 | }
24 | }
25 |
26 | override protected function onRemove():void {
27 |
28 | }
29 |
30 | }
31 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/view/GenericViewObjectMediator_withScopedInject.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.view {
2 | import integration.aGenericTestObjects.model.GenericTestProxy;
3 |
4 | import mvcexpress.mvc.Mediator;
5 |
6 | /**
7 | * CLASS COMMENT
8 | * @author rBanevicius
9 | */
10 | public class GenericViewObjectMediator_withScopedInject extends Mediator {
11 |
12 | [Inject]
13 | public var view:GenericViewObject;
14 |
15 | [Inject(scope="GenericScopeIds_testScope")]
16 | public var genericTestProxy:GenericTestProxy;
17 |
18 | override protected function onRegister():void {
19 | trace("GenericViewObjectMediator_withScopedInject.onRegister");
20 |
21 | }
22 |
23 | override protected function onRemove():void {
24 |
25 | }
26 |
27 | }
28 | }
--------------------------------------------------------------------------------
/test/integration/aGenericTestObjects/view/GenericViewObjectMediator_withScopedInject_handlingScopeMessage.as:
--------------------------------------------------------------------------------
1 | package integration.aGenericTestObjects.view {
2 | import integration.aGenericTestObjects.constants.GenericScopeIds;
3 | import integration.aGenericTestObjects.constants.GenericTestMessage;
4 | import integration.aGenericTestObjects.constants.GenericTestStrings;
5 | import integration.aGenericTestObjects.model.GenericTestProxy;
6 | import integration.aGenericTestObjects.model.scoped.GenericTestProxyScoped;
7 |
8 | import mvcexpress.extensions.scoped.mvc.MediatorScoped;
9 |
10 | /**
11 | * CLASS COMMENT
12 | * @author rBanevicius
13 | */
14 | public class GenericViewObjectMediator_withScopedInject_handlingScopeMessage extends MediatorScoped {
15 |
16 | [Inject]
17 | public var view:GenericViewObject;
18 |
19 | [Inject(scope="GenericScopeIds_testScope")]
20 | public var genericTestProxy:GenericTestProxyScoped;
21 |
22 | override protected function onRegister():void {
23 | trace("GenericViewObjectMediator_withScopedInject.onRegister");
24 |
25 | addScopeHandler(GenericScopeIds.TEST_SCOPE, GenericTestMessage.TEST_MESSAGE, handleTestMessage);
26 |
27 | }
28 |
29 | private function handleTestMessage(blank:Object):void {
30 | trace("GenericViewObjectMediator_withScopedInject_handlingScopeMessage.handleTestMessage > blank : " + blank);
31 | genericTestProxy.testData = GenericTestStrings.data1;
32 | }
33 |
34 | override protected function onRemove():void {
35 |
36 | }
37 |
38 | }
39 | }
--------------------------------------------------------------------------------
/test/integration/aframworkHelpers/ProxyMapCleaner.as:
--------------------------------------------------------------------------------
1 | package integration.aframworkHelpers {
2 | import flash.utils.Dictionary;
3 | import mvcexpress.core.messenger.Messenger;
4 | import mvcexpress.core.ProxyMap;
5 |
6 | /**
7 | * ...
8 | * @author Deril
9 | */
10 | public class ProxyMapCleaner extends ProxyMap {
11 |
12 | public static function clear():void {
13 | qualifiedClassNameRegistry = new Dictionary();
14 | classInjectRules = new Dictionary();
15 | }
16 |
17 | public function ProxyMapCleaner() {
18 | super(null, null);
19 | }
20 |
21 | }
22 |
23 | }
--------------------------------------------------------------------------------
/test/integration/commandPooling/testObj/CommPoolingDependencyProxy.as:
--------------------------------------------------------------------------------
1 | package integration.commandPooling.testObj {
2 | import mvcexpress.mvc.Proxy;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class CommPoolingDependencyProxy extends Proxy {
9 | private var _proxyName:String;
10 |
11 | public function CommPoolingDependencyProxy(proxyName:String = "undefined") {
12 | this._proxyName = proxyName;
13 |
14 | }
15 |
16 | override protected function onRegister():void {
17 |
18 | }
19 |
20 | override protected function onRemove():void {
21 |
22 | }
23 |
24 | public function get proxyName():String {
25 | return _proxyName;
26 | }
27 |
28 | }
29 | }
--------------------------------------------------------------------------------
/test/integration/commandPooling/testObj/CommandPoolingModule.as:
--------------------------------------------------------------------------------
1 | package integration.commandPooling.testObj {
2 | import mvcexpress.core.CommandMap;
3 | import mvcexpress.core.ProxyMap;
4 | import mvcexpress.modules.ModuleCore;
5 |
6 | public class CommandPoolingModule extends ModuleCore {
7 | static public const NAME:String = "CommandPoolingModule";
8 |
9 | public function CommandPoolingModule() {
10 | super(CommandPoolingModule.NAME);
11 | }
12 |
13 | public function getCommandMap():CommandMap {
14 | return commandMap;
15 | }
16 |
17 | public function getProxyMap():ProxyMap {
18 | return proxyMap;
19 | }
20 |
21 | public function sendLocalMessage(type:String):void {
22 | sendMessage(type);
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/test/integration/commandPooling/testObj/controller/CommPoolingDependantCommand.as:
--------------------------------------------------------------------------------
1 | package integration.commandPooling.testObj.controller {
2 | import integration.commandPooling.testObj.CommPoolingDependencyProxy;
3 |
4 | import mvcexpress.mvc.PooledCommand;
5 |
6 | /**
7 | * CLASS COMMENT
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | */
10 | public class CommPoolingDependantCommand extends PooledCommand {
11 |
12 | static public var test:String = "aoeuaoeu";
13 |
14 | static public var constructCount:int = 0;
15 | static public var executeCount:int = 0;
16 |
17 | [Inject]
18 | public var dependency:CommPoolingDependencyProxy;
19 |
20 | public function CommPoolingDependantCommand() {
21 | CommPoolingDependantCommand.constructCount++;
22 | super();
23 | }
24 |
25 | public function execute(blank:Object):void {
26 | CommPoolingDependantCommand.executeCount++;
27 | }
28 |
29 | }
30 | }
--------------------------------------------------------------------------------
/test/integration/commandPooling/testObj/controller/CommPoolingDependencyRemove.as:
--------------------------------------------------------------------------------
1 | package integration.commandPooling.testObj.controller {
2 | import mvcexpress.mvc.Command;
3 |
4 | public class CommPoolingDependencyRemove extends Command {
5 |
6 | public function execute(proxyClass:Class):void {
7 | proxyMap.unmap(proxyClass);
8 | }
9 |
10 | }
11 | }
--------------------------------------------------------------------------------
/test/integration/commandPooling/testObj/controller/CommPoolingLockedCommand.as:
--------------------------------------------------------------------------------
1 | package integration.commandPooling.testObj.controller {
2 | import mvcexpress.mvc.PooledCommand;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class CommPoolingLockedCommand extends PooledCommand {
9 |
10 | static public var test:String = "aoeuaoeu";
11 |
12 | static public var constructCount:int = 0;
13 | static public var executeCount:int = 0;
14 |
15 | public function CommPoolingLockedCommand() {
16 | CommPoolingLockedCommand.constructCount++;
17 | super();
18 | }
19 |
20 | public function execute(blank:Object):void {
21 | CommPoolingLockedCommand.executeCount++;
22 | lock();
23 | }
24 |
25 | }
26 | }
--------------------------------------------------------------------------------
/test/integration/commandPooling/testObj/controller/CommPoolingLockedFailCommand.as:
--------------------------------------------------------------------------------
1 | package integration.commandPooling.testObj.controller {
2 | import integration.commandPooling.CommandPoolingTests;
3 | import integration.commandPooling.testObj.CommPoolingDependencyProxy;
4 |
5 | import mvcexpress.mvc.PooledCommand;
6 |
7 | /**
8 | * CLASS COMMENT
9 | * @author Raimundas Banevicius (http://mvcexpress.org/)
10 | */
11 | public class CommPoolingLockedFailCommand extends PooledCommand {
12 |
13 | static public var test:String = "aoeuaoeu";
14 |
15 | static public var executedProxyNames:String = "";
16 |
17 | [Inject]
18 | public var dependency:CommPoolingDependencyProxy;
19 |
20 | public function CommPoolingLockedFailCommand() {
21 | super();
22 | }
23 |
24 | public function execute(blank:Object):void {
25 | lock();
26 | CommPoolingLockedFailCommand.executedProxyNames += dependency.proxyName;
27 | sendMessage(CommandPoolingTests.EXECUTE_REMOVED_DEPENDENCY_COMMAND, CommPoolingDependencyProxy);
28 | unlock();
29 | }
30 |
31 | }
32 | }
--------------------------------------------------------------------------------
/test/integration/commandPooling/testObj/controller/CommPoolingSimpleCommand.as:
--------------------------------------------------------------------------------
1 | package integration.commandPooling.testObj.controller {
2 | import mvcexpress.mvc.PooledCommand;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class CommPoolingSimpleCommand extends PooledCommand {
9 |
10 | static public var test:String = "aoeuaoeu";
11 |
12 | static public var constructCount:int = 0;
13 | static public var executeCount:int = 0;
14 |
15 | //[Inject]
16 | //public var myProxy:MyProxy;
17 |
18 | public function CommPoolingSimpleCommand() {
19 | CommPoolingSimpleCommand.constructCount++;
20 | super();
21 | }
22 |
23 | public function execute(blank:Object):void {
24 | CommPoolingSimpleCommand.executeCount++;
25 | }
26 |
27 | }
28 | }
--------------------------------------------------------------------------------
/test/integration/commandPooling/testObj/controller/CommPoolingUnlockedCommand.as:
--------------------------------------------------------------------------------
1 | package integration.commandPooling.testObj.controller {
2 | import mvcexpress.mvc.PooledCommand;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class CommPoolingUnlockedCommand extends PooledCommand {
9 |
10 | static public var test:String = "aoeuaoeu";
11 |
12 | static public var constructCount:int = 0;
13 | static public var executeCount:int = 0;
14 |
15 | public function CommPoolingUnlockedCommand() {
16 | CommPoolingUnlockedCommand.constructCount++;
17 | super();
18 | }
19 |
20 | public function execute(blank:Object):void {
21 | CommPoolingUnlockedCommand.executeCount++;
22 | unlock();
23 | }
24 |
25 | }
26 | }
--------------------------------------------------------------------------------
/test/integration/extensionChecking/ExtensionCheckingTestsLive.as:
--------------------------------------------------------------------------------
1 | package integration.extensionChecking {
2 | import integration.aGenericExtension.fake.core.FakeExtensionMessenger;
3 | import integration.aGenericExtension.fake.module.FakeExtensionModule;
4 | import integration.aGenericExtension.live.GenericLiveExtensionModule;
5 | import integration.aGenericExtension.live.mvc.LiveExtensionTestCommand;
6 | import integration.aGenericExtension.live.mvc.LiveExtensionTestMediator;
7 | import integration.aGenericExtension.live.mvc.LiveExtensionTestProxy;
8 |
9 | import mvcexpress.core.namespace.pureLegsCore;
10 | import mvcexpress.extensions.live.core.CommandMapLive;
11 | import mvcexpress.extensions.live.core.MediatorMapLive;
12 | import mvcexpress.extensions.live.core.ProxyMapLive;
13 | import mvcexpress.extensions.live.modules.ModuleLive;
14 |
15 | /**
16 | * COMMENT
17 | * @author
18 | */
19 | public class ExtensionCheckingTestsLive extends ExtensionCheckingTestsBase {
20 |
21 |
22 | public function ExtensionCheckingTestsLive() {
23 |
24 |
25 | CONFIG::debug {
26 | use namespace pureLegsCore;
27 |
28 | FakeExtensionModule.EXTENSION_TEST_ID = ModuleLive.EXTENSION_LIVE_ID;
29 | }
30 |
31 | extensionModuleClass = GenericLiveExtensionModule;
32 |
33 | extensionCommandMapClass = CommandMapLive;
34 | extensionProxyMapClass = ProxyMapLive;
35 | extensionMediatorMapClass = MediatorMapLive;
36 |
37 | extensionMessendegClass = FakeExtensionMessenger; // FAKE
38 |
39 | extensionCommandClass = LiveExtensionTestCommand;
40 | extensionProxyClass = LiveExtensionTestProxy;
41 | extensionMediatorClass = LiveExtensionTestMediator;
42 |
43 |
44 | }
45 |
46 | }
47 | }
--------------------------------------------------------------------------------
/test/integration/extensionChecking/ExtensionCheckingTestsScoped.as:
--------------------------------------------------------------------------------
1 | package integration.extensionChecking {
2 | import integration.aGenericExtension.fake.core.FakeExtensionMediatorMap;
3 | import integration.aGenericExtension.fake.core.FakeExtensionMessenger;
4 | import integration.aGenericExtension.fake.module.FakeExtensionModule;
5 | import integration.aGenericExtension.scoped.GenericScopedExtensionModule;
6 | import integration.aGenericExtension.scoped.mvc.ScopedExtensionTestCommand;
7 | import integration.aGenericExtension.scoped.mvc.ScopedExtensionTestMediator;
8 | import integration.aGenericExtension.scoped.mvc.ScopedExtensionTestProxy;
9 |
10 | import mvcexpress.core.namespace.pureLegsCore;
11 | import mvcexpress.extensions.scoped.core.CommandMapScoped;
12 | import mvcexpress.extensions.scoped.core.ProxyMapScoped;
13 | import mvcexpress.extensions.scoped.modules.ModuleScoped;
14 |
15 | /**
16 | * COMMENT
17 | * @author
18 | */
19 | public class ExtensionCheckingTestsScoped extends ExtensionCheckingTestsBase {
20 |
21 |
22 | public function ExtensionCheckingTestsScoped() {
23 |
24 | CONFIG::debug {
25 | use namespace pureLegsCore;
26 |
27 | FakeExtensionModule.EXTENSION_TEST_ID = ModuleScoped.EXTENSION_SCOPED_ID;
28 | }
29 |
30 | extensionModuleClass = GenericScopedExtensionModule;
31 |
32 | extensionCommandMapClass = CommandMapScoped;
33 | extensionProxyMapClass = ProxyMapScoped;
34 | extensionMediatorMapClass = FakeExtensionMediatorMap; // FAKE
35 |
36 | extensionMessendegClass = FakeExtensionMessenger; // FAKE
37 |
38 | extensionCommandClass = ScopedExtensionTestCommand;
39 | extensionProxyClass = ScopedExtensionTestProxy;
40 | extensionMediatorClass = ScopedExtensionTestMediator;
41 |
42 |
43 | }
44 |
45 | }
46 | }
--------------------------------------------------------------------------------
/test/integration/lazyProxy/testObj/moduleA/LazyNormalProxy.as:
--------------------------------------------------------------------------------
1 | package integration.lazyProxy.testObj.moduleA {
2 | import mvcexpress.mvc.Proxy;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author rbanevicius
7 | */
8 | public class LazyNormalProxy extends Proxy {
9 |
10 | [Inject]
11 | public var lazyProxy:LazyProxy;
12 |
13 | public function LazyNormalProxy() {
14 |
15 | }
16 |
17 | override protected function onRegister():void {
18 |
19 | }
20 |
21 | override protected function onRemove():void {
22 |
23 | }
24 |
25 | }
26 | }
--------------------------------------------------------------------------------
/test/integration/lazyProxy/testObj/moduleA/LazyProxy.as:
--------------------------------------------------------------------------------
1 | package integration.lazyProxy.testObj.moduleA {
2 | import mvcexpress.mvc.Proxy;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author rbanevicius
7 | */
8 | public class LazyProxy extends Proxy {
9 |
10 | public static var instantiateCount:int = 0;
11 |
12 | public function LazyProxy() {
13 | LazyProxy.instantiateCount++;
14 | }
15 |
16 | override protected function onRegister():void {
17 |
18 | }
19 |
20 | override protected function onRemove():void {
21 |
22 | }
23 |
24 | }
25 | }
--------------------------------------------------------------------------------
/test/integration/lazyProxy/testObj/moduleA/LazyProxyModuleA.as:
--------------------------------------------------------------------------------
1 | package integration.lazyProxy.testObj.moduleA {
2 | import flash.display.Sprite;
3 |
4 | import mvcexpress.modules.ModuleCore;
5 |
6 | /**
7 | * COMMENT : todo
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | */
10 | public class LazyProxyModuleA extends ModuleCore {
11 | static public const NAME:String = "LazyProxyModuleA";
12 |
13 | public function LazyProxyModuleA() {
14 | super(LazyProxyModuleA.NAME);
15 | }
16 |
17 | public function lazyMap():void {
18 | proxyMap.lazyMap(LazyProxy);
19 | }
20 |
21 | public function normalMap():void {
22 | proxyMap.map(new LazyProxy());
23 | }
24 |
25 | public function createProxyWithLazyInject():void {
26 | proxyMap.map(new LazyNormalProxy());
27 | }
28 |
29 | public function mapNotProxy():void {
30 | proxyMap.lazyMap(Sprite);
31 | }
32 |
33 | public function mapWithParams(params:Array):void {
34 | proxyMap.lazyMap(LazyProxy, null, null, null, params);
35 | }
36 |
37 | }
38 | }
--------------------------------------------------------------------------------
/test/integration/mediating/MediatingTestingVars.as:
--------------------------------------------------------------------------------
1 | package integration.mediating {
2 | public class MediatingTestingVars {
3 |
4 | static public var timesRegistered:int = 0;
5 | public static var viewObject:Object;
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/test/integration/mediating/testObj/MediatingModule.as:
--------------------------------------------------------------------------------
1 | package integration.mediating.testObj {
2 | import mvcexpress.core.MediatorMap;
3 | import mvcexpress.modules.ModuleCore;
4 |
5 | public class MediatingModule extends ModuleCore {
6 | static public const NAME:String = "MediatingModule";
7 |
8 | public function MediatingModule() {
9 | super(MediatingModule.NAME);
10 | }
11 |
12 | public function getMediatorMap():MediatorMap {
13 | return mediatorMap;
14 | }
15 |
16 | }
17 | }
--------------------------------------------------------------------------------
/test/integration/mediating/testObj/view/MediatingBaseViewMediator.as:
--------------------------------------------------------------------------------
1 | package integration.mediating.testObj.view {
2 | import integration.mediating.MediatingTestingVars;
3 | import integration.mediating.testObj.view.viewObj.MediatingBaseView;
4 |
5 | import mvcexpress.mvc.Mediator;
6 |
7 | public class MediatingBaseViewMediator extends Mediator {
8 |
9 | [Inject]
10 | public var view:MediatingBaseView;
11 |
12 | //[Inject]
13 | //public var myProxy:MyProxy;
14 |
15 | override protected function onRegister():void {
16 | MediatingTestingVars.timesRegistered++;
17 | MediatingTestingVars.viewObject = view;
18 | }
19 |
20 | override protected function onRemove():void {
21 |
22 | }
23 |
24 | }
25 | }
--------------------------------------------------------------------------------
/test/integration/mediating/testObj/view/MediatingIViewMediator.as:
--------------------------------------------------------------------------------
1 | package integration.mediating.testObj.view {
2 | import integration.mediating.MediatingTestingVars;
3 | import integration.mediating.testObj.view.viewObj.IMediatingView;
4 |
5 | import mvcexpress.mvc.Mediator;
6 |
7 | public class MediatingIViewMediator extends Mediator {
8 |
9 | [Inject]
10 | public var view:IMediatingView;
11 |
12 | //[Inject]
13 | //public var myProxy:MyProxy;
14 |
15 | override protected function onRegister():void {
16 | MediatingTestingVars.timesRegistered++;
17 | MediatingTestingVars.viewObject = view;
18 | }
19 |
20 | override protected function onRemove():void {
21 |
22 | }
23 |
24 | }
25 | }
--------------------------------------------------------------------------------
/test/integration/mediating/testObj/view/MediatingViewMediator.as:
--------------------------------------------------------------------------------
1 | package integration.mediating.testObj.view {
2 | import integration.mediating.MediatingTestingVars;
3 | import integration.mediating.testObj.view.viewObj.MediatingView;
4 |
5 | import mvcexpress.mvc.Mediator;
6 |
7 | public class MediatingViewMediator extends Mediator {
8 |
9 | [Inject]
10 | public var view:MediatingView;
11 |
12 | //[Inject]
13 | //public var myProxy:MyProxy;
14 |
15 | override protected function onRegister():void {
16 | MediatingTestingVars.timesRegistered++;
17 | MediatingTestingVars.viewObject = view;
18 | }
19 |
20 | override protected function onRemove():void {
21 |
22 | }
23 |
24 | }
25 | }
--------------------------------------------------------------------------------
/test/integration/mediating/testObj/view/chain/MediatingChainBaseViewMediator.as:
--------------------------------------------------------------------------------
1 | package integration.mediating.testObj.view.chain {
2 | import integration.mediating.MediatingTestingVars;
3 | import integration.mediating.testObj.view.viewObj.MediatingBaseView;
4 |
5 | import mvcexpress.mvc.Mediator;
6 |
7 | public class MediatingChainBaseViewMediator extends Mediator {
8 |
9 | [Inject]
10 | public var view:MediatingBaseView;
11 |
12 | //[Inject]
13 | //public var myProxy:MyProxy;
14 |
15 | override protected function onRegister():void {
16 | MediatingTestingVars.timesRegistered++;
17 | MediatingTestingVars.viewObject = view;
18 | }
19 |
20 | override protected function onRemove():void {
21 |
22 | }
23 |
24 | }
25 | }
--------------------------------------------------------------------------------
/test/integration/mediating/testObj/view/chain/MediatingChainIViewMediator.as:
--------------------------------------------------------------------------------
1 | package integration.mediating.testObj.view.chain {
2 | import integration.mediating.testObj.view.viewObj.IMediatingView;
3 |
4 | public class MediatingChainIViewMediator extends MediatingChainViewMediator {
5 |
6 | [Inject]
7 | public var interfaceView:IMediatingView;
8 |
9 | //[Inject]
10 | //public var myProxy:MyProxy;
11 |
12 | override protected function onRegister():void {
13 | super.onRegister();
14 | }
15 |
16 | override protected function onRemove():void {
17 |
18 | }
19 |
20 | }
21 | }
--------------------------------------------------------------------------------
/test/integration/mediating/testObj/view/chain/MediatingChainViewMediator.as:
--------------------------------------------------------------------------------
1 | package integration.mediating.testObj.view.chain {
2 | import integration.mediating.testObj.view.viewObj.MediatingView;
3 |
4 | public class MediatingChainViewMediator extends MediatingChainBaseViewMediator {
5 |
6 | [Inject]
7 | public var extendedView:MediatingView;
8 |
9 | //[Inject]
10 | //public var myProxy:MyProxy;
11 |
12 | override protected function onRegister():void {
13 | super.onRegister();
14 | }
15 |
16 | override protected function onRemove():void {
17 |
18 | }
19 |
20 | }
21 | }
--------------------------------------------------------------------------------
/test/integration/mediating/testObj/view/viewObj/IMediatingView.as:
--------------------------------------------------------------------------------
1 | package integration.mediating.testObj.view.viewObj {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public interface IMediatingView {
8 |
9 |
10 | function doStuff():void;
11 | }
12 | }
--------------------------------------------------------------------------------
/test/integration/mediating/testObj/view/viewObj/MediatingBaseView.as:
--------------------------------------------------------------------------------
1 | package integration.mediating.testObj.view.viewObj {
2 | import flash.display.Sprite;
3 |
4 | public class MediatingBaseView extends Sprite implements IMediatingView {
5 |
6 |
7 | public function MediatingBaseView() {
8 |
9 | }
10 |
11 | /* INTERFACE integration.mediating.testObj.IMediatingIntefrafe */
12 |
13 | public function doStuff():void {
14 |
15 | }
16 |
17 | }
18 | }
--------------------------------------------------------------------------------
/test/integration/mediating/testObj/view/viewObj/MediatingView.as:
--------------------------------------------------------------------------------
1 | package integration.mediating.testObj.view.viewObj {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class MediatingView extends MediatingBaseView {
8 |
9 | public function MediatingView() {
10 | }
11 |
12 |
13 | }
14 | }
--------------------------------------------------------------------------------
/test/integration/mediating/testObj/view/viewObj/MediatingWrongView.as:
--------------------------------------------------------------------------------
1 | package integration.mediating.testObj.view.viewObj {
2 | import flash.display.Sprite;
3 |
4 | /**
5 | * COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class MediatingWrongView extends Sprite {
9 |
10 | public function MediatingWrongView() {
11 |
12 | }
13 |
14 | }
15 | }
--------------------------------------------------------------------------------
/test/integration/moduleInitTests/ModuleInitTests.as:
--------------------------------------------------------------------------------
1 | package integration.moduleInitTests {
2 | import flexunit.framework.Assert;
3 |
4 | import integration.moduleInitTests.testObj.InitTestModuleCore;
5 |
6 | /**
7 | * COMMENT
8 | * @author mindscriptact
9 | */
10 | public class ModuleInitTests {
11 |
12 | private var module:Object;
13 |
14 | [Before]
15 |
16 | public function runBeforeEveryTest():void {
17 |
18 | }
19 |
20 | [After]
21 |
22 | public function runAfterEveryTest():void {
23 | if (module) {
24 | module["disposeModule"]();
25 | }
26 | }
27 |
28 | //----------------------------------
29 | // moduleCore
30 | //----------------------------------
31 |
32 | [Test]
33 |
34 | public function moduleInit_coreAutoInit_notNull():void {
35 | var testModule:InitTestModuleCore = new InitTestModuleCore();
36 | module = testModule;
37 |
38 | Assert.assertNotNull("ModuleCore proxyMap should be not null after autoInit", testModule.getProxyMap());
39 | Assert.assertNotNull("ModuleCore commandMap should be not null after autoInit", testModule.getCommandMap());
40 | Assert.assertNotNull("ModuleCore mediatorMap should be not null after autoInit", testModule.getMediatorMap());
41 | }
42 |
43 | }
44 | }
--------------------------------------------------------------------------------
/test/integration/moduleInitTests/testObj/InitTestModuleCore.as:
--------------------------------------------------------------------------------
1 | package integration.moduleInitTests.testObj {
2 | import mvcexpress.core.CommandMap;
3 | import mvcexpress.core.MediatorMap;
4 | import mvcexpress.core.ProxyMap;
5 | import mvcexpress.modules.ModuleCore;
6 |
7 | /**
8 | * COMMENT : todo
9 | * @author mindscriptact
10 | */
11 | public class InitTestModuleCore extends ModuleCore {
12 |
13 | static public const NAME:String = "InitTestModuleCore";
14 |
15 | public function InitTestModuleCore() {
16 | super(InitTestModuleCore.NAME);
17 | }
18 |
19 | override protected function onInit():void {
20 |
21 | }
22 |
23 | override protected function onDispose():void {
24 |
25 | }
26 |
27 | public function getProxyMap():ProxyMap {
28 | return proxyMap;
29 | }
30 |
31 | public function getCommandMap():CommandMap {
32 | return commandMap;
33 | }
34 |
35 | public function getMediatorMap():MediatorMap {
36 | return mediatorMap;
37 | }
38 |
39 | }
40 | }
--------------------------------------------------------------------------------
/test/integration/proxyMap/testObj/TestConstCommand.as:
--------------------------------------------------------------------------------
1 | package integration.proxyMap.testObj {
2 | import integration.aGenericTestObjects.model.GenericTestProxy;
3 |
4 | import mvcexpress.mvc.Command;
5 |
6 | /**
7 | * CLASS COMMENT
8 | * @author Raimundas Banevicius (http://mvcexpress.org)
9 | */
10 | public class TestConstCommand extends Command {
11 |
12 | [Inject(constName="integration.proxyMap.testObj::TestConstObject.TEST_CONST_FOR_PROXY_INJECT")]
13 | public var genericTestProxy:GenericTestProxy;
14 |
15 | public function execute(blank:Object):void {
16 |
17 | }
18 |
19 | }
20 | }
--------------------------------------------------------------------------------
/test/integration/proxyMap/testObj/TestConstObject.as:
--------------------------------------------------------------------------------
1 | package integration.proxyMap.testObj {
2 |
3 | /**
4 | * COMMENT
5 | * @author rBanevicius
6 | */
7 | public class TestConstObject {
8 |
9 | static public const TEST_CONST_FOR_PROXY_INJECT:String = "testConstForProxyInject";
10 |
11 | }
12 | }
--------------------------------------------------------------------------------
/test/integration/proxyMap/testObj/TestContsView.as:
--------------------------------------------------------------------------------
1 | package integration.proxyMap.testObj {
2 | import flash.display.Sprite;
3 |
4 | /**
5 | * COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org)
7 | */
8 | public class TestContsView extends Sprite {
9 |
10 | public function TestContsView() {
11 |
12 | }
13 |
14 | }
15 | }
--------------------------------------------------------------------------------
/test/integration/proxyMap/testObj/TestContsViewMediator.as:
--------------------------------------------------------------------------------
1 | package integration.proxyMap.testObj {
2 |
3 | import integration.aGenericTestObjects.model.GenericTestProxy;
4 |
5 | import mvcexpress.mvc.Mediator;
6 |
7 | /**
8 | * CLASS COMMENT
9 | * @author Raimundas Banevicius (http://mvcexpress.org)
10 | */
11 | public class TestContsViewMediator extends Mediator {
12 |
13 | [Inject]
14 | public var view:TestContsView;
15 |
16 | [Inject(constName="integration.proxyMap.testObj::TestConstObject.TEST_CONST_FOR_PROXY_INJECT")]
17 | public var genericTestProxy:GenericTestProxy;
18 |
19 | override protected function onRegister():void {
20 |
21 | }
22 |
23 | override protected function onRemove():void {
24 |
25 | }
26 |
27 | }
28 | }
--------------------------------------------------------------------------------
/test/integration/proxyMap/testObj/TestProxyInjectFromProxyCommand.as:
--------------------------------------------------------------------------------
1 | package integration.proxyMap.testObj {
2 | import integration.aGenericTestObjects.model.GenericTestProxy;
3 |
4 | import mvcexpress.mvc.Command;
5 |
6 | /**
7 | * CLASS COMMENT
8 | * @author Raimundas Banevicius (http://mvcexpress.org)
9 | */
10 | public class TestProxyInjectFromProxyCommand extends Command {
11 |
12 | [Inject]
13 | public var genericTestProxy:GenericTestProxy;
14 |
15 | public function execute(blank:Object):void {
16 |
17 | }
18 |
19 | }
20 | }
--------------------------------------------------------------------------------
/test/integration/proxyMap/testObj/TestWithConstNameInjectProxy.as:
--------------------------------------------------------------------------------
1 | package integration.proxyMap.testObj {
2 | import integration.aGenericTestObjects.model.GenericTestProxy;
3 |
4 | import mvcexpress.mvc.Proxy;
5 |
6 | /**
7 | * CLASS COMMENT
8 | * @author rBanevicius
9 | */
10 | public class TestWithConstNameInjectProxy extends Proxy {
11 |
12 | [Inject(constName="integration.proxyMap.testObj::TestConstObject.TEST_CONST_FOR_PROXY_INJECT")]
13 | public var genericTestProxy:GenericTestProxy;
14 |
15 | public function TestWithConstNameInjectProxy() {
16 |
17 | }
18 |
19 | override protected function onRegister():void {
20 |
21 | }
22 |
23 | override protected function onRemove():void {
24 |
25 | }
26 |
27 | }
28 | }
--------------------------------------------------------------------------------
/test/integration/scopedMessaging/testObj/moduleA/ChannelViewA.as:
--------------------------------------------------------------------------------
1 | package integration.scopedMessaging.testObj.moduleA {
2 | import flash.display.Sprite;
3 |
4 | /**
5 | * COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class ChannelViewA extends Sprite {
9 | public var test1handled:Boolean = false;
10 | public var test2handled:Boolean = false;
11 | public var test3handled:Boolean = false;
12 | public var test4handled:Boolean = false;
13 | public var test4params:String;
14 | }
15 | }
--------------------------------------------------------------------------------
/test/integration/scopedMessaging/testObj/moduleA/ComTest1Command.as:
--------------------------------------------------------------------------------
1 | package integration.scopedMessaging.testObj.moduleA {
2 | import integration.scopedMessaging.testObj.moduleB.ChannelModuleB;
3 |
4 | import mvcexpress.mvc.Command;
5 |
6 | /**
7 | * CLASS COMMENT
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | */
10 | public class ComTest1Command extends Command {
11 |
12 | //[Inject]
13 | //public var myProxy:MyProxy;
14 |
15 | public function execute(moduleB:ChannelModuleB):void {
16 | moduleB.command1executed = true;
17 | }
18 |
19 | }
20 | }
--------------------------------------------------------------------------------
/test/integration/scopedMessaging/testObj/moduleB/ChannelBMediator.as:
--------------------------------------------------------------------------------
1 | package integration.scopedMessaging.testObj.moduleB {
2 | import flash.display.Sprite;
3 | import flash.events.Event;
4 |
5 | import mvcexpress.extensions.scoped.mvc.MediatorScoped;
6 |
7 | /**
8 | * CLASS COMMENT
9 | * @author Raimundas Banevicius (http://mvcexpress.org/)
10 | */
11 | public class ChannelBMediator extends MediatorScoped {
12 |
13 | [Inject]
14 | public var view:Sprite;
15 |
16 | //[Inject]
17 | //public var myProxy:MyProxy;
18 |
19 | override protected function onRegister():void {
20 | view.addEventListener("sendChannelMessage_test1", sendChannelMessage1);
21 | view.addEventListener("sendChannelMessage_test2", sendChannelMessage2);
22 | view.addEventListener("sendChannelMessage_testChannel_test3", sendChannelMessage3);
23 | view.addEventListener("sendChannelMessage_testChannel_test4_withParams", sendChannelMessage4);
24 | }
25 |
26 | private function sendChannelMessage1(event:Event):void {
27 | sendScopeMessage("default", "test1");
28 | }
29 |
30 | private function sendChannelMessage2(event:Event):void {
31 | sendScopeMessage("default", "test2");
32 | }
33 |
34 | private function sendChannelMessage3(event:Event):void {
35 | sendScopeMessage("testChannel", "test3", null);
36 | }
37 |
38 | private function sendChannelMessage4(event:Event):void {
39 | sendScopeMessage("testChannel", "test4", "test4 params string");
40 | }
41 |
42 | override protected function onRemove():void {
43 |
44 | }
45 |
46 | }
47 | }
--------------------------------------------------------------------------------
/test/integration/scopedProxy/testObj/moduleA/ScopedProxyLocalInjectMediator.as:
--------------------------------------------------------------------------------
1 | package integration.scopedProxy.testObj.moduleA {
2 | import integration.scopedProxy.ScopedProxyTests;
3 |
4 | import mvcexpress.mvc.Mediator;
5 |
6 | /**
7 | * CLASS COMMENT
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | */
10 | public class ScopedProxyLocalInjectMediator extends Mediator {
11 |
12 | [Inject]
13 | public var view:ScopedProxyLocalInjectView;
14 |
15 | [Inject]
16 | public var myProxy:ScopedTestProxy;
17 |
18 | override protected function onRegister():void {
19 | trace("ScopedProxyInjectMediator.onRegister");
20 | view.pushMediatorIn(this);
21 | //ScopedProxyModuleB.TEST_FUNCTION(null);
22 |
23 | addHandler(ScopedProxyTests.SCOPED_PROXY_MESSAGE_NAME, handleScopedMessage);
24 | }
25 |
26 | private function handleScopedMessage(testdata:String):void {
27 | trace("ScopedProxyInjectMediator.handleScopedMessage > testdata : " + testdata);
28 | myProxy.storedData = testdata;
29 | }
30 |
31 | override protected function onRemove():void {
32 |
33 | }
34 |
35 | public function sendDataToProxy(testData:String):void {
36 | myProxy.storedData = testData;
37 | }
38 |
39 | }
40 | }
--------------------------------------------------------------------------------
/test/integration/scopedProxy/testObj/moduleA/ScopedProxyLocalInjectView.as:
--------------------------------------------------------------------------------
1 | package integration.scopedProxy.testObj.moduleA {
2 | import flash.display.Sprite;
3 |
4 | /**
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class ScopedProxyLocalInjectView extends Sprite {
8 |
9 | private var scopedProxyLocalInjectMediator:ScopedProxyLocalInjectMediator;
10 |
11 | public function pushMediatorIn(scopedProxyLocalInjectMediator:ScopedProxyLocalInjectMediator):void {
12 | this.scopedProxyLocalInjectMediator = scopedProxyLocalInjectMediator;
13 |
14 | }
15 |
16 | public function sendDataToProxy(testData:String):void {
17 | scopedProxyLocalInjectMediator.sendDataToProxy(testData);
18 | }
19 | }
20 | }
--------------------------------------------------------------------------------
/test/integration/scopedProxy/testObj/moduleA/ScopedTestProxy.as:
--------------------------------------------------------------------------------
1 | package integration.scopedProxy.testObj.moduleA {
2 | import integration.scopedProxy.ScopedProxyTests;
3 |
4 | import mvcexpress.extensions.scoped.mvc.ProxyScoped;
5 |
6 | /**
7 | * CLASS COMMENT
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | */
10 | public class ScopedTestProxy extends ProxyScoped {
11 | public var storedData:String;
12 |
13 | public function ScopedTestProxy() {
14 |
15 | }
16 |
17 |
18 | override protected function onRegister():void {
19 |
20 | }
21 |
22 | override protected function onRemove():void {
23 |
24 | }
25 |
26 |
27 | public function trigerMessage(messagedata:String):void {
28 | sendMessage(ScopedProxyTests.SCOPED_PROXY_MESSAGE_NAME, messagedata);
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/test/integration/scopedProxy/testObj/moduleB/ScopedProxpyTestCommand.as:
--------------------------------------------------------------------------------
1 | package integration.scopedProxy.testObj.moduleB {
2 | import integration.scopedProxy.testObj.moduleA.ScopedTestProxy;
3 |
4 | import mvcexpress.mvc.Command;
5 |
6 | /**
7 | * CLASS COMMENT
8 | * @author rbanevicius
9 | */
10 | public class ScopedProxpyTestCommand extends Command {
11 |
12 | [Inject(scope="proxyScope")]
13 | public var myProxy:ScopedTestProxy;
14 |
15 | public function execute(testData:String):void {
16 | myProxy.storedData = testData;
17 | }
18 |
19 | }
20 | }
--------------------------------------------------------------------------------
/test/integration/scopedProxy/testObj/moduleB/ScopedProxyInjectMediator.as:
--------------------------------------------------------------------------------
1 | package integration.scopedProxy.testObj.moduleB {
2 | import integration.scopedProxy.ScopedProxyTests;
3 | import integration.scopedProxy.testObj.moduleA.ScopedTestProxy;
4 |
5 | import mvcexpress.extensions.scoped.mvc.MediatorScoped;
6 |
7 | /**
8 | * CLASS COMMENT
9 | * @author Raimundas Banevicius (http://mvcexpress.org/)
10 | */
11 | public class ScopedProxyInjectMediator extends MediatorScoped {
12 |
13 | [Inject]
14 | public var view:ScopedProxyInjectView;
15 |
16 | [Inject(scope="proxyScope")]
17 | public var myProxy:ScopedTestProxy;
18 |
19 | override protected function onRegister():void {
20 | trace("ScopedProxyInjectMediator.onRegister");
21 | view.pushMediatorIn(this);
22 | ScopedProxyModuleB.TEST_FUNCTION(null);
23 |
24 | addScopeHandler(ScopedProxyTests.SCOPED_PROXY_SCOPE_NAME, ScopedProxyTests.SCOPED_PROXY_MESSAGE_NAME, handleScopedMessage);
25 | }
26 |
27 | private function handleScopedMessage(testdata:String):void {
28 | trace("ScopedProxyInjectMediator.handleScopedMessage > testdata : " + testdata);
29 | myProxy.storedData = testdata;
30 | view.testData = testdata;
31 | }
32 |
33 | override protected function onRemove():void {
34 |
35 | }
36 |
37 | public function sendDataToProxy(testData:String):void {
38 | myProxy.storedData = testData;
39 | }
40 |
41 | }
42 | }
--------------------------------------------------------------------------------
/test/integration/scopedProxy/testObj/moduleB/ScopedProxyInjectProxy.as:
--------------------------------------------------------------------------------
1 | package integration.scopedProxy.testObj.moduleB {
2 | import integration.scopedProxy.testObj.moduleA.ScopedTestProxy;
3 |
4 | import mvcexpress.mvc.Proxy;
5 |
6 | /**
7 | * CLASS COMMENT
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | */
10 | public class ScopedProxyInjectProxy extends Proxy {
11 |
12 | [Inject(scope="proxyScope")]
13 | public var myProxy:ScopedTestProxy;
14 |
15 | public function ScopedProxyInjectProxy() {
16 |
17 | }
18 |
19 | public function storeTestData(testData:String):void {
20 | myProxy.storedData = testData;
21 | }
22 |
23 | override protected function onRegister():void {
24 | trace("ScopedProxyInjectProxy.onRegister");
25 |
26 | }
27 |
28 | override protected function onRemove():void {
29 |
30 | }
31 |
32 | }
33 | }
--------------------------------------------------------------------------------
/test/integration/scopedProxy/testObj/moduleB/ScopedProxyInjectView.as:
--------------------------------------------------------------------------------
1 | package integration.scopedProxy.testObj.moduleB {
2 | import flash.display.Sprite;
3 |
4 | /**
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class ScopedProxyInjectView extends Sprite {
8 |
9 | public var testData:String;
10 |
11 | private var scopedProxyInjectMediator:ScopedProxyInjectMediator;
12 |
13 | public function pushMediatorIn(scopedProxyInjectMediator:ScopedProxyInjectMediator):void {
14 | trace("ScopedProxyInjectView.pushMediatorIn > scopedProxyInjectMediator : " + scopedProxyInjectMediator);
15 | this.scopedProxyInjectMediator = scopedProxyInjectMediator;
16 |
17 | }
18 |
19 | public function sendDataToProxy(testData:String):void {
20 | trace("ScopedProxyInjectView.sendDataToProxy > testData : " + testData);
21 | trace("scopedProxyInjectMediator : " + scopedProxyInjectMediator);
22 | scopedProxyInjectMediator.sendDataToProxy(testData);
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/test/suites/SuiteModuleNames.as:
--------------------------------------------------------------------------------
1 | package suites {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class SuiteModuleNames {
8 | static public const MAIN_MODULE:String = "mainModule";
9 | static public const EXTERNAL_MODULE:String = "externalModule";
10 | }
11 | }
--------------------------------------------------------------------------------
/test/suites/TestViewEvent.as:
--------------------------------------------------------------------------------
1 | package suites {
2 | import flash.events.Event;
3 |
4 | /**
5 | * COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class TestViewEvent extends Event {
9 |
10 | static public const ADD_LOCAL_HANDLER:String = "addLocalHandler";
11 | static public const ADD_REMOTE_HANDLER:String = "addRemoteHandler";
12 | static public const TRIGER_ADD_HANDLER:String = "trigerAddHandler";
13 | static public const REMOVE_LOCAL_HANDLER:String = "removeLocalHandler";
14 | static public const REMOVE_REMOTE_HANDLER:String = "removeRemoteHandler";
15 | static public const TEST_GET_PROXY_CLASS:String = "testGetProxyClass";
16 |
17 | public var messageType:String;
18 | public var testClass:Class;
19 |
20 | public function TestViewEvent(type:String, messageType:String = null, testClass:Class = null) {
21 | super(type);
22 | this.testClass = testClass;
23 | this.messageType = messageType;
24 | }
25 |
26 | }
27 | }
--------------------------------------------------------------------------------
/test/suites/commandMap/commands/ExtendedSuperParamCommand.as:
--------------------------------------------------------------------------------
1 | package suites.commandMap.commands {
2 | import mvcexpress.mvc.Command;
3 |
4 | import suites.testObjects.ExtendedTestObject;
5 |
6 | /**
7 | */
8 | public class ExtendedSuperParamCommand extends Command {
9 |
10 | public function execute(params:ExtendedTestObject):void {
11 |
12 | }
13 |
14 | }
15 | }
--------------------------------------------------------------------------------
/test/suites/commandMap/commands/ExtendedeSuperInterfaceParamsCommand.as:
--------------------------------------------------------------------------------
1 | package suites.commandMap.commands {
2 | import mvcexpress.mvc.Command;
3 |
4 | import suites.testObjects.IExtendedTestObject;
5 |
6 | /**
7 | */
8 | public class ExtendedeSuperInterfaceParamsCommand extends Command {
9 |
10 | public function execute(params:IExtendedTestObject):void {
11 |
12 | }
13 |
14 | }
15 | }
--------------------------------------------------------------------------------
/test/suites/commandMap/commands/NoExecuteCommand.as:
--------------------------------------------------------------------------------
1 | package suites.commandMap.commands {
2 | import mvcexpress.mvc.Command;
3 |
4 | /**
5 | * COMMENT
6 | * @author
7 | */
8 | public class NoExecuteCommand extends Command {
9 |
10 | }
11 | }
--------------------------------------------------------------------------------
/test/suites/commandMap/commands/NoParamsCommand.as:
--------------------------------------------------------------------------------
1 | package suites.commandMap.commands {
2 | import mvcexpress.mvc.Command;
3 |
4 | /**
5 | * COMMENT
6 | * @author
7 | */
8 | public class NoParamsCommand extends Command {
9 |
10 | public function execute():void {
11 |
12 | }
13 |
14 | }
15 | }
--------------------------------------------------------------------------------
/test/suites/commandMap/commands/SuperInterfaceParamCommand.as:
--------------------------------------------------------------------------------
1 | package suites.commandMap.commands {
2 | import mvcexpress.mvc.Command;
3 |
4 | import suites.testObjects.ITestObject;
5 |
6 | /**
7 | */
8 | public class SuperInterfaceParamCommand extends Command {
9 |
10 | public function execute(params:ITestObject):void {
11 |
12 | }
13 |
14 | }
15 | }
--------------------------------------------------------------------------------
/test/suites/commandMap/commands/SuperParamCommand.as:
--------------------------------------------------------------------------------
1 | package suites.commandMap.commands {
2 | import mvcexpress.mvc.Command;
3 |
4 | import suites.testObjects.TestObject;
5 |
6 | /**
7 | */
8 | public class SuperParamCommand extends Command {
9 |
10 | public function execute(params:TestObject):void {
11 |
12 | }
13 |
14 | }
15 | }
--------------------------------------------------------------------------------
/test/suites/commandMap/commands/TestCommand1.as:
--------------------------------------------------------------------------------
1 | package suites.commandMap.commands {
2 | import mvcexpress.mvc.Command;
3 |
4 | /**
5 | * COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class TestCommand1 extends Command {
9 |
10 | static public var TEST_FUNCTION:Function = function (msg:*):void {
11 | //trace("TestCommand1 executed...")
12 | };
13 |
14 | public function execute(params:Object):void {
15 | //trace("TestCommand1.execute > params : " + params);
16 | TestCommand1.TEST_FUNCTION(params);
17 | }
18 |
19 | }
20 | }
--------------------------------------------------------------------------------
/test/suites/commandMap/commands/TestCommand2.as:
--------------------------------------------------------------------------------
1 | package suites.commandMap.commands {
2 | import mvcexpress.mvc.Command;
3 |
4 | /**
5 | * COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class TestCommand2 extends Command {
9 |
10 | static public var TEST_FUNCTION:Function = function (msg:*):void {
11 | //trace("TestCommand2 executed...")
12 | };
13 |
14 | public function execute(params:Object):void {
15 | //trace("TestCommand2.execute > params : " + params);
16 | TestCommand2.TEST_FUNCTION(params);
17 |
18 | }
19 |
20 | }
21 | }
--------------------------------------------------------------------------------
/test/suites/commands/CommandsTests.as:
--------------------------------------------------------------------------------
1 | package suites.commands {
2 | /**
3 | * COMMENT
4 | * @author
5 | */
6 | public class CommandsTests {
7 |
8 | [Before]
9 |
10 | public function runBeforeEveryTest():void {
11 |
12 | }
13 |
14 | [After]
15 |
16 | public function runAfterEveryTest():void {
17 |
18 | }
19 |
20 | [Test]
21 | [Ignore]
22 | public function mediator_instantiate():void {
23 |
24 | }
25 |
26 | [Test]
27 | [Ignore]
28 | public function mediator_send_message():void {
29 |
30 | }
31 |
32 | [Test]
33 | [Ignore]
34 | public function mediator_send_message_to_all():void {
35 |
36 | }
37 |
38 | }
39 | }
--------------------------------------------------------------------------------
/test/suites/general/GeneralTests.as:
--------------------------------------------------------------------------------
1 | package suites.general {
2 | import mvcexpress.MvcExpress;
3 |
4 | import org.flexunit.Assert;
5 |
6 | /**
7 | * COMMENT
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | */
10 | public class GeneralTests {
11 |
12 | [Before]
13 |
14 | public function runBeforeEveryTest():void {
15 | }
16 |
17 | [After]
18 |
19 | public function runAfterEveryTest():void {
20 | }
21 |
22 | [Test(description="Version Test")]
23 |
24 | public function general_framework_version():void {
25 | Assert.assertEquals("Version must be defined using 3 numbers, separated by dots.", MvcExpress.VERSION.split(".").length, 3);
26 | }
27 |
28 | [Test(description="Debug flag Test")]
29 |
30 | public function general_debug_flag():void {
31 | CONFIG::debug {
32 | Assert.assertTrue("While compiling in debug - MvcExpress.DEBUG_COMPILE must be true.", MvcExpress.DEBUG_COMPILE);
33 | return;
34 | }
35 | Assert.assertFalse("While compiling in debug - MvcExpress.DEBUG_COMPILE must be false.", MvcExpress.DEBUG_COMPILE);
36 | }
37 |
38 | }
39 | }
--------------------------------------------------------------------------------
/test/suites/mediatorMap/medatorMaptestObj/MediatorMapTestSprite.as:
--------------------------------------------------------------------------------
1 | package suites.mediatorMap.medatorMaptestObj {
2 | import flash.display.Sprite;
3 |
4 | /**
5 | * COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class MediatorMapTestSprite extends Sprite {
9 |
10 | public function MediatorMapTestSprite() {
11 |
12 | }
13 |
14 | }
15 | }
--------------------------------------------------------------------------------
/test/suites/mediatorMap/medatorMaptestObj/MediatorMapTestSpriteMediator.as:
--------------------------------------------------------------------------------
1 | package suites.mediatorMap.medatorMaptestObj {
2 | import mvcexpress.mvc.Mediator;
3 |
4 | /**
5 | * COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class MediatorMapTestSpriteMediator extends Mediator {
9 |
10 | [Inject]
11 | public var view:MediatorMapTestSprite;
12 |
13 | static public var TEST_MESSAGE_TYPE:String = "mediatorMapTestType";
14 |
15 | static public var REGISTER_TEST_FUNCTION:Function = function (msg:* = null):void {
16 | };
17 | static public var REMOVE_TEST_FUNCTION:Function = function (msg:* = null):void {
18 | };
19 | static public var CALLBACK_TEST_FUNCTION:Function = function (msg:* = null):void {
20 | };
21 |
22 | override protected function onRegister():void {
23 | MediatorMapTestSpriteMediator.REGISTER_TEST_FUNCTION();
24 |
25 | addHandler(MediatorMapTestSpriteMediator.TEST_MESSAGE_TYPE, handleTestCallBack);
26 | }
27 |
28 | override protected function onRemove():void {
29 | MediatorMapTestSpriteMediator.REMOVE_TEST_FUNCTION();
30 | }
31 |
32 | private function handleTestCallBack(params:Object):void {
33 | MediatorMapTestSpriteMediator.CALLBACK_TEST_FUNCTION();
34 | }
35 |
36 | }
37 | }
--------------------------------------------------------------------------------
/test/suites/mediatorMap/medatorMaptestObj/MediatorMapTestSpriteMediator2.as:
--------------------------------------------------------------------------------
1 | package suites.mediatorMap.medatorMaptestObj {
2 | import flash.display.Sprite;
3 |
4 | import mvcexpress.mvc.Mediator;
5 |
6 | /**
7 | * COMMENT
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | */
10 | public class MediatorMapTestSpriteMediator2 extends Mediator {
11 |
12 | [Inject]
13 | public var view:Sprite;
14 |
15 | static public var TEST_MESSAGE_TYPE2:String = "mediatorMapTestType";
16 |
17 | static public var REGISTER_TEST_FUNCTION2:Function = function (msg:* = null):void {
18 | };
19 | static public var REMOVE_TEST_FUNCTION2:Function = function (msg:* = null):void {
20 | };
21 | static public var CALLBACK_TEST_FUNCTION2:Function = function (msg:* = null):void {
22 | };
23 |
24 | override protected function onRegister():void {
25 | MediatorMapTestSpriteMediator2.REGISTER_TEST_FUNCTION2();
26 |
27 | addHandler(MediatorMapTestSpriteMediator2.TEST_MESSAGE_TYPE2, handleTestCallBack);
28 | }
29 |
30 | override protected function onRemove():void {
31 | MediatorMapTestSpriteMediator2.REMOVE_TEST_FUNCTION2();
32 | }
33 |
34 | private function handleTestCallBack(params:Object):void {
35 | MediatorMapTestSpriteMediator2.CALLBACK_TEST_FUNCTION2();
36 | }
37 |
38 | }
39 | }
--------------------------------------------------------------------------------
/test/suites/modules/ModularTests.as:
--------------------------------------------------------------------------------
1 | package suites.modules {
2 | import suites.modules.objects.CoreModuleTester;
3 |
4 | /**
5 | * COMMENT
6 | * @author
7 | */
8 | public class ModularTests {
9 |
10 | [Before]
11 |
12 | public function runBeforeEveryTest():void {
13 | }
14 |
15 | [After]
16 |
17 | public function runAfterEveryTest():void {
18 | }
19 |
20 | [Test(description="just instantiating core module")]
21 |
22 | public function modules_construct_core_module():void {
23 | new CoreModuleTester();
24 | }
25 |
26 | }
27 | }
--------------------------------------------------------------------------------
/test/suites/modules/objects/CoreModuleTester.as:
--------------------------------------------------------------------------------
1 | package suites.modules.objects {
2 | import mvcexpress.modules.ModuleCore;
3 |
4 | /**
5 | * COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class CoreModuleTester extends ModuleCore {
9 |
10 | public function CoreModuleTester() {
11 |
12 | }
13 |
14 | }
15 | }
--------------------------------------------------------------------------------
/test/suites/proxies/ProxyTests.as:
--------------------------------------------------------------------------------
1 | package suites.proxies {
2 | /**
3 | * COMMENT
4 | * @author
5 | */
6 | public class ProxyTests {
7 |
8 | [Before]
9 |
10 | public function runBeforeEveryTest():void {
11 |
12 | }
13 |
14 | [After]
15 |
16 | public function runAfterEveryTest():void {
17 |
18 | }
19 |
20 | [Test]
21 | [Ignore]
22 | public function proxy_is_ready():void {
23 |
24 | }
25 |
26 | [Test]
27 | [Ignore]
28 | public function proxy_send_message():void {
29 |
30 | }
31 |
32 | [Test]
33 | [Ignore]
34 | public function proxy_send_message_to_all():void {
35 |
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/test/suites/proxyMap/namedProxyTestObj/NamedProxyTestingProxy.as:
--------------------------------------------------------------------------------
1 | package suites.proxyMap.namedProxyTestObj {
2 | import mvcexpress.mvc.Proxy;
3 |
4 | import suites.proxyMap.proxyTestObj.ITestProxy;
5 | import suites.proxyMap.proxyTestObj.TestProxy;
6 |
7 | /**
8 | * COMMENT
9 | * @author
10 | */
11 | public class NamedProxyTestingProxy extends Proxy {
12 |
13 | [Inject]
14 | public var proxy:TestProxy;
15 |
16 | [Inject]
17 | public var proxyInterface:ITestProxy;
18 |
19 | [Inject(name="namedProxyInterface")]
20 | public var proxyNamedInterface:ITestProxy;
21 |
22 | [Inject(name="namedProxy")]
23 | public var proxyNamed:TestProxy;
24 |
25 | [Inject(name="namedProxyNotNullClass")]
26 | public var proxyNamedNotNullClass:TestProxy;
27 |
28 | }
29 | }
--------------------------------------------------------------------------------
/test/suites/proxyMap/proxyTestObj/ITestProxy.as:
--------------------------------------------------------------------------------
1 | package suites.proxyMap.proxyTestObj {
2 |
3 | /**
4 | * COMMENT
5 | * @author
6 | */
7 | public interface ITestProxy {
8 |
9 | }
10 | }
--------------------------------------------------------------------------------
/test/suites/proxyMap/proxyTestObj/ProxyTestObj.as:
--------------------------------------------------------------------------------
1 | package suites.proxyMap.proxyTestObj {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class ProxyTestObj {
8 |
9 | [Inject]
10 | public var testProxy:TestProxy;
11 |
12 | public function ProxyTestObj() {
13 |
14 | }
15 |
16 | }
17 | }
--------------------------------------------------------------------------------
/test/suites/proxyMap/proxyTestObj/TestProxy.as:
--------------------------------------------------------------------------------
1 | package suites.proxyMap.proxyTestObj {
2 | import mvcexpress.mvc.Proxy;
3 |
4 | /**
5 | * COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class TestProxy extends Proxy implements ITestProxy {
9 |
10 | public function TestProxy() {
11 |
12 | }
13 |
14 | }
15 | }
--------------------------------------------------------------------------------
/test/suites/testExamples/tempObj/TestingObject.as:
--------------------------------------------------------------------------------
1 | package suites.testExamples.tempObj {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class TestingObject {
8 |
9 | public function TestingObject() {
10 |
11 | }
12 |
13 | }
14 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/ExtendedTestObject.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects {
2 |
3 | /**
4 | */
5 | public class ExtendedTestObject extends TestObject implements IExtendedTestObject {
6 |
7 | public function ExtendedTestObject() {
8 |
9 | }
10 |
11 | }
12 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/IExtendedTestObject.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects {
2 |
3 | /**
4 | */
5 | public interface IExtendedTestObject {
6 |
7 | }
8 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/ITestObject.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects {
2 |
3 | /**
4 | */
5 | public interface ITestObject {
6 |
7 | }
8 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/TestObject.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects {
2 |
3 | /**
4 | */
5 | public class TestObject implements ITestObject {
6 |
7 | public function TestObject() {
8 |
9 | }
10 |
11 | }
12 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/controller/GetProxyTestCommand.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.controller {
2 | import mvcexpress.mvc.Command;
3 |
4 | import suites.testObjects.moduleMain.MainDataProxy;
5 |
6 | /**
7 | * CLASS COMMENT
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | */
10 | public class GetProxyTestCommand extends Command {
11 |
12 | [Inject]
13 | public var dataProxy:MainDataProxy;
14 |
15 | public function execute(proxyData:Object):void {
16 | dataProxy.testProxy = proxyMap.getProxy(proxyData.moduleClass, proxyData.moduleName);
17 | }
18 |
19 | }
20 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/model/ExtendedSimpleTestProxy.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.model {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class ExtendedSimpleTestProxy extends SimpleTestProxy {
8 |
9 | public function ExtendedSimpleTestProxy() {
10 |
11 | }
12 |
13 | }
14 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/model/ISimpleTestProxy.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.model {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public interface ISimpleTestProxy {
8 |
9 |
10 | }
11 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/model/SimpleTestProxy.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.model {
2 | import mvcexpress.mvc.Proxy;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class SimpleTestProxy extends Proxy implements ISimpleTestProxy {
9 |
10 | public function SimpleTestProxy() {
11 |
12 | }
13 |
14 | override protected function onRegister():void {
15 |
16 | }
17 |
18 | override protected function onRemove():void {
19 |
20 | }
21 |
22 | }
23 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/moduleExternal/ExternalDataProxy.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.moduleExternal {
2 | import mvcexpress.mvc.Proxy;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class ExternalDataProxy extends Proxy {
9 |
10 | public var localCommandCount:int = 0;
11 | public var localHandlerCount:int = 0;
12 | public var remoteCommandCount:int = 0;
13 | public var remoteHandlerCount:int = 0;
14 |
15 | public function ExternalDataProxy() {
16 |
17 | }
18 |
19 | override protected function onRegister():void {
20 |
21 | }
22 |
23 | override protected function onRemove():void {
24 |
25 | }
26 |
27 | }
28 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/moduleExternal/ExternalLocalCommand.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.moduleExternal {
2 | import mvcexpress.mvc.Command;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class ExternalLocalCommand extends Command {
9 |
10 | [Inject]
11 | public var dataProxy:ExternalDataProxy;
12 |
13 | public function execute(blank:Object):void {
14 | dataProxy.localCommandCount++;
15 | }
16 |
17 | }
18 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/moduleExternal/ExternalRemoteCommand.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.moduleExternal {
2 | import mvcexpress.mvc.Command;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class ExternalRemoteCommand extends Command {
9 |
10 | [Inject]
11 | public var dataProxy:ExternalDataProxy;
12 |
13 | public function execute(blank:Object):void {
14 | dataProxy.remoteCommandCount++;
15 | }
16 |
17 | }
18 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/moduleExternal/ExternalView.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.moduleExternal {
2 | import flash.display.Sprite;
3 |
4 | import suites.TestViewEvent;
5 |
6 | /**
7 | * COMMENT
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | */
10 | public class ExternalView extends Sprite {
11 |
12 | public function ExternalView() {
13 |
14 | }
15 |
16 | public function addLocalhandler(message:String):void {
17 | dispatchEvent(new TestViewEvent(TestViewEvent.ADD_LOCAL_HANDLER, message));
18 | }
19 |
20 | public function addRemoteHandler(message:String):void {
21 | dispatchEvent(new TestViewEvent(TestViewEvent.ADD_REMOTE_HANDLER, message));
22 | }
23 |
24 | public function removeLocalhandler(message:String):void {
25 | dispatchEvent(new TestViewEvent(TestViewEvent.REMOVE_LOCAL_HANDLER, message));
26 | }
27 |
28 | public function removeRemoteHandler(message:String):void {
29 | dispatchEvent(new TestViewEvent(TestViewEvent.REMOVE_REMOTE_HANDLER, message));
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/moduleMain/MainDataProxy.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.moduleMain {
2 | import mvcexpress.mvc.Proxy;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class MainDataProxy extends Proxy {
9 |
10 | public var localCommandCount:int = 0;
11 | public var localHandlerCount:int = 0;
12 | public var remoteCommandCount:int = 0;
13 | public var remoteHandlerCount:int = 0;
14 |
15 | public var testProxy:Proxy;
16 |
17 | public function MainDataProxy() {
18 |
19 | }
20 |
21 | override protected function onRegister():void {
22 |
23 | }
24 |
25 | override protected function onRemove():void {
26 |
27 | }
28 |
29 | public function getTestProxy(proxyClass:Class, name:String):Proxy {
30 | return proxyMap.getProxy(proxyClass, name);
31 | }
32 | }
33 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/moduleMain/MainLocalCommand.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.moduleMain {
2 | import mvcexpress.mvc.Command;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class MainLocalCommand extends Command {
9 |
10 | [Inject]
11 | public var dataProxy:MainDataProxy;
12 |
13 | public function execute(blank:Object):void {
14 | dataProxy.localCommandCount++;
15 | }
16 |
17 | }
18 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/moduleMain/MainRemoteCommand.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.moduleMain {
2 | import mvcexpress.mvc.Command;
3 |
4 | /**
5 | * CLASS COMMENT
6 | * @author Raimundas Banevicius (http://mvcexpress.org/)
7 | */
8 | public class MainRemoteCommand extends Command {
9 |
10 | [Inject]
11 | public var dataProxy:MainDataProxy;
12 |
13 | public function execute(blank:Object):void {
14 | dataProxy.remoteCommandCount++;
15 | }
16 |
17 | }
18 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/moduleMain/MainView.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.moduleMain {
2 | import flash.display.Sprite;
3 |
4 | import suites.TestViewEvent;
5 |
6 | /**
7 | * COMMENT
8 | * @author Raimundas Banevicius (http://mvcexpress.org/)
9 | */
10 | public class MainView extends Sprite {
11 |
12 | public function MainView() {
13 | }
14 |
15 | public function addLocalhandler(message:String):void {
16 | dispatchEvent(new TestViewEvent(TestViewEvent.ADD_LOCAL_HANDLER, message));
17 | }
18 |
19 | public function addRemoteHandler(message:String):void {
20 | dispatchEvent(new TestViewEvent(TestViewEvent.ADD_REMOTE_HANDLER, message));
21 | }
22 |
23 | public function removeLocalhandler(message:String):void {
24 | dispatchEvent(new TestViewEvent(TestViewEvent.REMOVE_LOCAL_HANDLER, message));
25 | }
26 |
27 | public function removeRemoteHandler(message:String):void {
28 | dispatchEvent(new TestViewEvent(TestViewEvent.REMOVE_REMOTE_HANDLER, message));
29 | }
30 |
31 | public function testGetProxyClass(proxyClass:Class, name:String = ""):void {
32 | dispatchEvent(new TestViewEvent(TestViewEvent.TEST_GET_PROXY_CLASS, name, proxyClass));
33 | }
34 |
35 | }
36 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/moduleTest/TestModule.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.moduleTest {
2 | /**
3 | * COMMENT : todo
4 | * @author Raimundas Banevicius (http://mvcexpress.org/)
5 | */
6 | public class TestModule extends ModuleSprite {
7 |
8 | static public const NAME:String = "TestModule";
9 |
10 | public function TestModule() {
11 | super(TestModule.NAME);
12 | }
13 |
14 | override protected function onInit():void {
15 |
16 | }
17 |
18 | override protected function onDispose():void {
19 |
20 | }
21 |
22 | }
23 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/view/MediatorSprite.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.view {
2 | import flash.display.Sprite;
3 | import flash.events.Event;
4 |
5 | import suites.TestViewEvent;
6 |
7 | /**
8 | * COMMENT
9 | * @author
10 | */
11 | public class MediatorSprite extends Sprite {
12 |
13 | public var mediator:MediatorSpriteMediator;
14 |
15 | public var child1:MediatorSpriteDispacherChild = new MediatorSpriteDispacherChild();
16 | public var child2:MediatorSpriteDispacherChild = new MediatorSpriteDispacherChild();
17 |
18 | public function MediatorSprite() {
19 | this.addChild(child1);
20 | this.addChild(child2);
21 | }
22 |
23 | public function tryAddingHandlerTwice():void {
24 | dispatchEvent(new TestViewEvent(TestViewEvent.TRIGER_ADD_HANDLER));
25 | }
26 |
27 | public function sendTestEvent():void {
28 | dispatchEvent(new Event("test"));
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/test/suites/testObjects/view/MediatorSpriteDispacherChild.as:
--------------------------------------------------------------------------------
1 | package suites.testObjects.view {
2 | import flash.display.Sprite;
3 | import flash.events.Event;
4 |
5 | public class MediatorSpriteDispacherChild extends Sprite {
6 |
7 | public function MediatorSpriteDispacherChild() {
8 |
9 | }
10 |
11 | public function sendTestEvent():void {
12 | dispatchEvent(new Event("test"));
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/test/suites/utils/objects/ClassA.as:
--------------------------------------------------------------------------------
1 | package suites.utils.objects {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class ClassA {
8 |
9 | public function ClassA() {
10 |
11 | }
12 |
13 | }
14 | }
--------------------------------------------------------------------------------
/test/suites/utils/objects/ClassASubclass.as:
--------------------------------------------------------------------------------
1 | package suites.utils.objects {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class ClassASubclass extends ClassA {
8 |
9 | public function ClassASubclass() {
10 |
11 | }
12 |
13 | }
14 | }
--------------------------------------------------------------------------------
/test/suites/utils/objects/ClassASubclassSubclass.as:
--------------------------------------------------------------------------------
1 | package suites.utils.objects {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class ClassASubclassSubclass extends ClassASubclass {
8 |
9 | public function ClassASubclassSubclass() {
10 |
11 | }
12 |
13 | }
14 | }
--------------------------------------------------------------------------------
/test/suites/utils/objects/ClassB.as:
--------------------------------------------------------------------------------
1 | package suites.utils.objects {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class ClassB {
8 |
9 | public function ClassB() {
10 |
11 | }
12 |
13 | }
14 | }
--------------------------------------------------------------------------------
/test/suites/utils/objects/ClassBSubclass.as:
--------------------------------------------------------------------------------
1 | package suites.utils.objects {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class ClassBSubclass extends ClassB {
8 |
9 | public function ClassBSubclass() {
10 |
11 | }
12 |
13 | }
14 | }
--------------------------------------------------------------------------------
/test/suites/utils/objects/ConstantsA.as:
--------------------------------------------------------------------------------
1 | package suites.utils.objects {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class ConstantsA {
8 |
9 | static public const AAAA:String = "aaaaaaaaaaaaaaaaaaaaaaaa";
10 |
11 | }
12 | }
--------------------------------------------------------------------------------
/test/suites/utils/objects/ConstantsAB.as:
--------------------------------------------------------------------------------
1 | package suites.utils.objects {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class ConstantsAB {
8 |
9 | static public const AAAA:String = "aaaaaaaaaaaaaaaaaaaaaaaa";
10 | static public const BBBB:String = "bbbbbbbbbbbbbbbbbbbbbbbb";
11 |
12 | }
13 | }
--------------------------------------------------------------------------------
/test/suites/utils/objects/ConstantsB.as:
--------------------------------------------------------------------------------
1 | package suites.utils.objects {
2 |
3 | /**
4 | * COMMENT
5 | * @author Raimundas Banevicius (http://mvcexpress.org/)
6 | */
7 | public class ConstantsB {
8 |
9 | static public const BBBB:String = "bbbbbbbbbbbbbbbbbbbbbbbb";
10 |
11 | }
12 | }
--------------------------------------------------------------------------------
/test/utils/AsyncUtil.as:
--------------------------------------------------------------------------------
1 | package utils {
2 |
3 | import flash.events.Event;
4 | import flash.events.EventDispatcher;
5 |
6 | import org.flexunit.async.Async;
7 |
8 | public class AsyncUtil extends EventDispatcher {
9 |
10 | public static const ASYNC_EVENT:String = "asyncEvent";
11 |
12 | private var _testCase:Object;
13 | private var _callback:Function;
14 | private var _passThroughArgs:Array;
15 | private var _callbackArgs:Array;
16 |
17 | public function AsyncUtil(testCase:Object, callback:Function, passThroughArgs:Array = null) {
18 | _testCase = testCase;
19 | _callback = callback;
20 | _passThroughArgs = passThroughArgs;
21 | }
22 |
23 | public static function asyncHandler(testCase:Object, callback:Function = null, passThroughArgs:Array = null, timeout:Number = 1500, timeouthandler:Function = null):Function {
24 | var asyncUtil:AsyncUtil = new AsyncUtil(testCase, callback, passThroughArgs);
25 | asyncUtil.addEventListener(ASYNC_EVENT, Async.asyncHandler(testCase, asyncUtil.asyncEventHandler, timeout, passThroughArgs, timeouthandler));
26 | return asyncUtil.asyncCallbackHandler;
27 | }
28 |
29 | public function asyncEventHandler(ev:Event, flexUnitPassThroughArgs:Object = null):void {
30 | if (_passThroughArgs) {
31 | _callbackArgs = _callbackArgs.concat(_passThroughArgs);
32 | }
33 | if (_callback != null) {
34 | _callback.apply(null, _callbackArgs);
35 | }
36 | }
37 |
38 | public function asyncCallbackHandler(...args:Array):void {
39 | _callbackArgs = args;
40 | dispatchEvent(new Event(ASYNC_EVENT));
41 | }
42 |
43 | }
44 |
45 | }
--------------------------------------------------------------------------------