{"id":13745065,"url":"https://github.com/SlevinBE/Springas-subviewcontext","last_synced_at":"2025-05-09T04:33:30.774Z","repository":{"id":1748347,"uuid":"2574466","full_name":"SlevinBE/Springas-subviewcontext","owner":"SlevinBE","description":"An extension for Spring Actionscript 1 which enables you to create a context for a subview of your application.","archived":false,"fork":false,"pushed_at":"2011-10-21T06:48:14.000Z","size":96,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-04T05:05:37.101Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SlevinBE.png","metadata":{"files":{"readme":"README.textile","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-14T05:42:38.000Z","updated_at":"2013-12-12T13:35:24.000Z","dependencies_parsed_at":"2022-09-07T17:40:38.751Z","dependency_job_id":null,"html_url":"https://github.com/SlevinBE/Springas-subviewcontext","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlevinBE%2FSpringas-subviewcontext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlevinBE%2FSpringas-subviewcontext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlevinBE%2FSpringas-subviewcontext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SlevinBE%2FSpringas-subviewcontext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SlevinBE","download_url":"https://codeload.github.com/SlevinBE/Springas-subviewcontext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224819777,"owners_count":17375324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T05:01:21.587Z","updated_at":"2024-11-15T17:31:11.754Z","avatar_url":"https://github.com/SlevinBE.png","language":"ActionScript","readme":"h2. Introduction\n\nAn extension for Spring Actionscript 1 which enables you to create a context for a subview of your application, just like it's\nalready possible for modules.\n\nh2. Important!\n\nThis extension is made for spring-actionscript 1.x. It won't be necessary to use this extension for spring-actionscript 2.0\nsince this functionality will be build in.\n\nh2. How to use the extension\n\nh3. Setup\n\n1. The first thing you need to do is to define an applicationContext for your subview, this \napplicationContext will contain the objects specific for your subview (like presentationmodels, mediators, models,...).\n\n2. Then you have to instantiate your context in your subview, like this: \n\n_tabApplicationContext = new RootComponentXMLApplicationContext(this); // this == the subview\n_tabApplicationContext.parent = parentApplicationContext;\n_tabApplicationContext.addConfigLocation(\"applicationSubViewContext.xml\");\n_tabApplicationContext.load();\n\n3. from now on the dependencies of your subview and its subcomponents will be automatically injected when they get instantiated.\n\nh3. Popups\n\nPopups are somewhat special when it comes to injection. Because popups aren't added to the default displayList it's\nimpossible for the extension to know when the popup is added to the view. Therefore you have to manually register the popup\nwith the applicationContext. Follow these steps to do this:\n\n1. define the AutowireViewRegistrator class as a singleton in your subview applicationContext.\n\n2. define a property of type IViewRegistrator in the class where the popup is created, like this:\n\u003cpre\u003e[Autowired]\npublic var viewRegistrator:IViewRegistrator;\n\u003c/pre\u003e\n\n3. then register the popup with the viewRegistrator:\n\u003cpre\u003eviewRegistrator.registerView(popup);\u003c/pre\u003e\n\n4. from now on your popup (and any new subcomponents) will get autowired.\n\n","funding_links":[],"categories":["Unsorted"],"sub_categories":["Other API"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSlevinBE%2FSpringas-subviewcontext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSlevinBE%2FSpringas-subviewcontext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSlevinBE%2FSpringas-subviewcontext/lists"}