├── spring-actionscript-core
└── src
│ ├── test
│ ├── resources
│ │ ├── testfile1.txt
│ │ ├── testfile2.txt
│ │ ├── testfile3.txt
│ │ ├── simple-context.xml
│ │ └── context-with-task.xml
│ └── actionscript
│ │ ├── org
│ │ └── springextensions
│ │ │ └── actionscript
│ │ │ ├── test
│ │ │ └── testtypes
│ │ │ │ ├── EmbeddedEmptyContext.xml
│ │ │ │ ├── metadatascan
│ │ │ │ ├── IAnnotatedComponent.as
│ │ │ │ ├── AnnotatedScopedComponent.as
│ │ │ │ ├── AnnotatedNamedComponent.as
│ │ │ │ ├── AnnotatedComponent.as
│ │ │ │ ├── AnnotatedNamedComponent2.as
│ │ │ │ ├── AnnotatedComponentWithAutowired.as
│ │ │ │ ├── AnnotatedLazyInitPrototypeComponent.as
│ │ │ │ ├── AnnotatedComponentWithDependencyCheck.as
│ │ │ │ ├── AnnotatedComponentWithDependsOn.as
│ │ │ │ ├── AnnotatedComponentWithSkips.as
│ │ │ │ ├── AnnotatedComponentWithConstructor.as
│ │ │ │ ├── AnnotatedComponentWithDestroyMethod.as
│ │ │ │ ├── AnnotatedComponentInOtherPackage.as
│ │ │ │ ├── ComponentWithProperties.as
│ │ │ │ ├── AnnotatedComponentWithPropertiesWithRefs.as
│ │ │ │ ├── AnnotatedComponentWithPropertiesWithExplicitValues.as
│ │ │ │ ├── AnnotatedComponentWithPropertiesWithPlaceholders.as
│ │ │ │ ├── AnnotatedComponentWithMethodInvocations.as
│ │ │ │ └── AnnotatedComponentWithPrimaryLazyInitAndFactoryMethod.as
│ │ │ │ ├── TestClassWithMetadata.as
│ │ │ │ ├── IAutowireProcessorAwareObjectFactory.as
│ │ │ │ ├── EmbeddedContexts.as
│ │ │ │ ├── eventbus
│ │ │ │ ├── IEventBusAndListener.as
│ │ │ │ └── TestEventHandler.as
│ │ │ │ ├── MockDefinitionProviderResultOperation.as
│ │ │ │ ├── AutowiredAnnotatedClass.as
│ │ │ │ ├── AutowiredExternalPropertyAnnotatedClass.as
│ │ │ │ ├── TestInvalidFactoryObject.as
│ │ │ │ ├── stage
│ │ │ │ └── DummyStageProcessor.as
│ │ │ │ ├── TestFactoryObject.as
│ │ │ │ ├── ClassWithStaticFactoryMethod.as
│ │ │ │ └── TestClassFactory.as
│ │ │ ├── ioc
│ │ │ ├── factory
│ │ │ │ └── impl
│ │ │ │ │ └── MethodInvokingFactoryObjectTest.as
│ │ │ └── config
│ │ │ │ └── impl
│ │ │ │ └── xml
│ │ │ │ └── preprocess
│ │ │ │ └── impl
│ │ │ │ └── SpringNamesPreprocessorTest.as
│ │ │ └── object
│ │ │ └── propertyeditor
│ │ │ └── ClassPropertyEditorTest.as
│ │ └── integration
│ │ └── testtypes
│ │ └── DummyEvent.as
│ └── main
│ ├── assembly
│ └── sources.xml
│ └── actionscript
│ └── org
│ └── springextensions
│ └── actionscript
│ ├── ioc
│ ├── SpringConstants.as
│ ├── config
│ │ ├── impl
│ │ │ ├── xml
│ │ │ │ ├── ns
│ │ │ │ │ ├── spring_actionscript_util.as
│ │ │ │ │ ├── spring_actionscript_objects.as
│ │ │ │ │ ├── spring_actionscript_task.as
│ │ │ │ │ ├── spring_actionscript_eventbus.as
│ │ │ │ │ └── spring_actionscript_stageprocessing.as
│ │ │ │ └── namespacehandler
│ │ │ │ │ └── impl
│ │ │ │ │ └── task
│ │ │ │ │ └── nodeparser
│ │ │ │ │ └── AbstractTaskDefinitionParser.as
│ │ │ └── metadata
│ │ │ │ ├── ILoaderInfoAware.as
│ │ │ │ ├── WaitingOperation.as
│ │ │ │ └── ICustomConfigurationClassScanner.as
│ │ ├── property
│ │ │ ├── IPropertiesParser.as
│ │ │ ├── IPropertiesProvider.as
│ │ │ └── error
│ │ │ │ └── PropertyPlaceholderResolverError.as
│ │ ├── IObjectReference.as
│ │ └── ITextFilesLoader.as
│ ├── objectdefinition
│ │ ├── ICustomConfigurator.as
│ │ ├── IObjectDefinitionRegistryAware.as
│ │ └── error
│ │ │ └── ObjectDefinitionNotFoundError.as
│ ├── factory
│ │ ├── error
│ │ │ └── CachedInstanceNotFoundError.as
│ │ ├── IObjectFactoryAware.as
│ │ ├── IInitializingObject.as
│ │ └── process
│ │ │ └── IObjectFactoryPostProcessor.as
│ ├── error
│ │ ├── ObjectFactoryError.as
│ │ └── ResolveReferenceError.as
│ ├── autowire
│ │ └── IAutowireProcessorAware.as
│ ├── Constants.as
│ └── ILazyDependencyManager.as
│ ├── eventbus
│ ├── IEventBusUserRegistryAware.as
│ ├── IEventBusShareManager.as
│ └── impl
│ │ ├── ClassEntry.as
│ │ └── EventTypeEntry.as
│ ├── metadata
│ ├── ISpringMetadaProcessor.as
│ ├── IClassScanner.as
│ └── IMetadataDestroyer.as
│ ├── object
│ ├── ITypeConverter.as
│ ├── propertyeditor
│ │ └── NumberPropertyEditor.as
│ ├── IPropertyEditor.as
│ └── IPropertyEditorRegistry.as
│ └── context
│ ├── config
│ └── IConfigurationPackage.as
│ └── IApplicationContextAware.as
├── README.adoc
├── src
├── docbkx
│ ├── resources
│ │ ├── images
│ │ │ ├── getobjectflow.png
│ │ │ ├── s2-banner-rhs.png
│ │ │ ├── s2_box_logo.png
│ │ │ ├── autowiringflow.png
│ │ │ ├── i21-banner-rhs.jpg
│ │ │ ├── objectwiringflow.png
│ │ │ ├── prebuilder_step1.png
│ │ │ ├── prebuilder_step2.png
│ │ │ ├── prebuilder_step3.png
│ │ │ ├── prebuilder_step4.png
│ │ │ ├── prebuilder_step5.png
│ │ │ ├── xdev-spring_logo.jpg
│ │ │ ├── stageprocessingflow.png
│ │ │ └── flexappcontextwiringflow.png
│ │ ├── asdoctemplate
│ │ │ ├── images
│ │ │ │ ├── logo.jpg
│ │ │ │ ├── collapsed.gif
│ │ │ │ ├── expanded.gif
│ │ │ │ ├── AirIcon12x12.gif
│ │ │ │ ├── inherit-arrow.gif
│ │ │ │ ├── titleTableTop.jpg
│ │ │ │ ├── detailHeaderRule.jpg
│ │ │ │ ├── inheritedSummary.gif
│ │ │ │ ├── titleTableBottom.jpg
│ │ │ │ ├── titleTableMiddle.jpg
│ │ │ │ ├── detailSectionHeader.jpg
│ │ │ │ ├── fisheye_header_logo.png
│ │ │ │ ├── subversion_logo_notxt-16m.png
│ │ │ │ └── P_AlternativeMetadataIndicator_30x28_N.png
│ │ │ ├── override.css
│ │ │ ├── package-frame.html
│ │ │ ├── mxml-tags.html
│ │ │ ├── merge_dita_xml.xslt
│ │ │ └── Overviews_Base.xml
│ │ ├── GraphMLViewer
│ │ │ └── GraphMLViewer.swf
│ │ ├── html
│ │ │ └── index.html
│ │ ├── js
│ │ │ └── springas.js
│ │ ├── xslthl
│ │ │ └── README
│ │ └── xsd
│ │ │ └── spring-actionscript-stageprocessing-1.0.xsd
│ ├── integrations.xml
│ ├── extending-configuration-types.xml
│ ├── graphs.xml
│ └── introduction.xml
├── site
│ ├── resources
│ │ ├── js
│ │ │ └── springas-site.js
│ │ ├── maven
│ │ │ └── spring-actionscript-prebuild-mojo.zip
│ │ └── crossdomain.xml
│ └── xdoc
│ │ └── samples.xml
└── main
│ └── assembly
│ └── sources.xml
├── spring-actionscript-samples
├── cafe-townsend
│ └── src
│ │ └── main
│ │ ├── resources
│ │ └── assets
│ │ │ ├── header.jpg
│ │ │ ├── main.css
│ │ │ └── Employees.xml
│ │ └── actionscript
│ │ └── org
│ │ └── springextensions
│ │ └── actionscript
│ │ ├── samples
│ │ └── cafetownsend
│ │ │ ├── application
│ │ │ ├── service
│ │ │ │ └── IAuthenticationService.as
│ │ │ └── ApplicationEvents.as
│ │ │ ├── ITownsendView.as
│ │ │ ├── domain
│ │ │ └── service
│ │ │ │ └── IEmployeeService.as
│ │ │ ├── presentation
│ │ │ └── MainView.mxml
│ │ │ ├── stage
│ │ │ └── TownsendViewSelector.as
│ │ │ └── infrastructure
│ │ │ └── service
│ │ │ └── InMemoryAuthenticationService.as
│ │ └── domain
│ │ ├── INamed.as
│ │ ├── ICopyFrom.as
│ │ └── IEntity.as
├── cafe-townsend-bootstrap
│ └── src
│ │ └── main
│ │ ├── resources
│ │ ├── assets
│ │ │ ├── header.jpg
│ │ │ └── Employees.xml
│ │ └── mainstyle.css
│ │ └── actionscript
│ │ └── org
│ │ └── springextensions
│ │ └── actionscript
│ │ ├── samples
│ │ └── cafetownsend
│ │ │ ├── application
│ │ │ ├── service
│ │ │ │ └── IAuthenticationService.as
│ │ │ └── ApplicationEvents.as
│ │ │ ├── module
│ │ │ └── MainModule.mxml
│ │ │ ├── ITownsendView.as
│ │ │ ├── domain
│ │ │ └── service
│ │ │ │ └── IEmployeeService.as
│ │ │ ├── presentation
│ │ │ └── MainView.mxml
│ │ │ ├── stage
│ │ │ └── TownsendViewSelector.as
│ │ │ └── infrastructure
│ │ │ └── service
│ │ │ └── InMemoryAuthenticationService.as
│ │ ├── domain
│ │ ├── INamed.as
│ │ ├── ICopyFrom.as
│ │ └── IEntity.as
│ │ └── Main.mxml
├── cafe-townsend-mxml-config
│ └── src
│ │ └── main
│ │ ├── resources
│ │ └── assets
│ │ │ ├── header.jpg
│ │ │ ├── main.css
│ │ │ └── Employees.xml
│ │ └── actionscript
│ │ └── org
│ │ └── springextensions
│ │ └── actionscript
│ │ ├── samples
│ │ └── cafetownsend
│ │ │ ├── application
│ │ │ ├── service
│ │ │ │ └── IAuthenticationService.as
│ │ │ └── ApplicationEvents.as
│ │ │ ├── ITownsendView.as
│ │ │ ├── domain
│ │ │ └── service
│ │ │ │ └── IEmployeeService.as
│ │ │ ├── presentation
│ │ │ └── MainView.mxml
│ │ │ ├── stage
│ │ │ └── TownsendViewSelector.as
│ │ │ └── infrastructure
│ │ │ └── service
│ │ │ └── InMemoryAuthenticationService.as
│ │ └── domain
│ │ ├── INamed.as
│ │ ├── ICopyFrom.as
│ │ └── IEntity.as
├── cafe-townsend-multi-module
│ └── src
│ │ └── main
│ │ ├── resources
│ │ └── assets
│ │ │ ├── header.jpg
│ │ │ ├── main.css
│ │ │ └── Employees.xml
│ │ └── actionscript
│ │ └── org
│ │ └── springextensions
│ │ └── actionscript
│ │ ├── samples
│ │ └── cafetownsend
│ │ │ ├── application
│ │ │ ├── service
│ │ │ │ └── IAuthenticationService.as
│ │ │ ├── ApplicationEvents.as
│ │ │ └── ApplicationController.as
│ │ │ ├── ITownsendView.as
│ │ │ ├── domain
│ │ │ └── service
│ │ │ │ └── IEmployeeService.as
│ │ │ ├── stage
│ │ │ └── TownsendViewSelector.as
│ │ │ └── infrastructure
│ │ │ └── service
│ │ │ └── InMemoryAuthenticationService.as
│ │ └── domain
│ │ ├── INamed.as
│ │ ├── ICopyFrom.as
│ │ └── IEntity.as
└── cafe-townsend-metadata-config
│ └── src
│ └── main
│ ├── resources
│ └── assets
│ │ ├── header.jpg
│ │ ├── main.css
│ │ └── Employees.xml
│ └── actionscript
│ └── org
│ └── springextensions
│ └── actionscript
│ ├── samples
│ └── cafetownsend
│ │ ├── application
│ │ ├── service
│ │ │ └── IAuthenticationService.as
│ │ └── ApplicationEvents.as
│ │ ├── domain
│ │ └── service
│ │ │ └── IEmployeeService.as
│ │ ├── presentation
│ │ └── MainView.mxml
│ │ └── infrastructure
│ │ └── service
│ │ └── InMemoryAuthenticationService.as
│ ├── domain
│ ├── INamed.as
│ ├── ICopyFrom.as
│ └── IEntity.as
│ └── configuration
│ └── AppConfig.as
├── README.md
├── spring-actionscript-flex
└── src
│ ├── test
│ └── actionscript
│ │ └── org
│ │ └── springextensions
│ │ └── actionscript
│ │ ├── test
│ │ └── testtypes
│ │ │ ├── MXMLConfig2.mxml
│ │ │ ├── MXMLConfig.mxml
│ │ │ └── IApplicationContextEventBusRegistryAware.as
│ │ └── ioc
│ │ └── config
│ │ └── impl
│ │ └── mxml
│ │ └── component
│ │ └── InterfaceTest.as
│ └── main
│ └── actionscript
│ └── org
│ └── springextensions
│ └── actionscript
│ ├── ioc
│ └── config
│ │ └── impl
│ │ ├── mxml
│ │ ├── ISpringConfigurationComponent.as
│ │ ├── component
│ │ │ └── ConstructorArg.as
│ │ └── ICustomObjectDefinitionComponent.as
│ │ └── xml
│ │ └── ns
│ │ ├── spring_actionscript_rpc.as
│ │ └── spring_actionscript_messaging.as
│ └── stage
│ └── IgnoreModuleObjectSelector.as
├── toplevel_files.xml
└── spring-actionscript-mvc
└── src
└── main
└── actionscript
└── org
└── springextensions
└── actionscript
└── mvc
└── IMVCEventObjectPostProcessor.as
/spring-actionscript-core/src/test/resources/testfile1.txt:
--------------------------------------------------------------------------------
1 | test1
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/resources/testfile2.txt:
--------------------------------------------------------------------------------
1 | test2
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/resources/testfile3.txt:
--------------------------------------------------------------------------------
1 | test3
--------------------------------------------------------------------------------
/README.adoc:
--------------------------------------------------------------------------------
1 | # spring-actionscript is no longer actively maintained by VMware, Inc.
2 |
3 |
--------------------------------------------------------------------------------
/src/docbkx/resources/images/getobjectflow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/images/getobjectflow.png
--------------------------------------------------------------------------------
/src/docbkx/resources/images/s2-banner-rhs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/images/s2-banner-rhs.png
--------------------------------------------------------------------------------
/src/docbkx/resources/images/s2_box_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/images/s2_box_logo.png
--------------------------------------------------------------------------------
/src/docbkx/resources/images/autowiringflow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/images/autowiringflow.png
--------------------------------------------------------------------------------
/src/docbkx/resources/images/i21-banner-rhs.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/images/i21-banner-rhs.jpg
--------------------------------------------------------------------------------
/src/docbkx/resources/asdoctemplate/images/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/asdoctemplate/images/logo.jpg
--------------------------------------------------------------------------------
/src/docbkx/resources/images/objectwiringflow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/images/objectwiringflow.png
--------------------------------------------------------------------------------
/src/docbkx/resources/images/prebuilder_step1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/images/prebuilder_step1.png
--------------------------------------------------------------------------------
/src/docbkx/resources/images/prebuilder_step2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/images/prebuilder_step2.png
--------------------------------------------------------------------------------
/src/docbkx/resources/images/prebuilder_step3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/images/prebuilder_step3.png
--------------------------------------------------------------------------------
/src/docbkx/resources/images/prebuilder_step4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/images/prebuilder_step4.png
--------------------------------------------------------------------------------
/src/docbkx/resources/images/prebuilder_step5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/images/prebuilder_step5.png
--------------------------------------------------------------------------------
/src/docbkx/resources/images/xdev-spring_logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/images/xdev-spring_logo.jpg
--------------------------------------------------------------------------------
/src/docbkx/resources/GraphMLViewer/GraphMLViewer.swf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/GraphMLViewer/GraphMLViewer.swf
--------------------------------------------------------------------------------
/src/docbkx/resources/images/stageprocessingflow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/spring-attic/spring-actionscript/HEAD/src/docbkx/resources/images/stageprocessingflow.png
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/EmbeddedEmptyContext.xml:
--------------------------------------------------------------------------------
1 |
2 |
Task specific markup
20 | * @author Roland Zwaga
21 | * @productionversion SpringActionscript 2.0
22 | */
23 | public namespace spring_actionscript_task = "http://www.springactionscript.org/schema/task";
24 | }
25 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/config/IObjectReference.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.config {
17 |
18 | /**
19 | * Exposes a reference to an object by its name.
20 | * @author Christophe Herreman
21 | */
22 | public interface IObjectReference {
23 |
24 | /**
25 | * Returns the object name that this reference refers to.
26 | */
27 | function get objectName():String;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend/src/main/actionscript/org/springextensions/actionscript/domain/INamed.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.domain {
17 |
18 | /**
19 | * Interface to be implemented by objects that provide a "name" property.
20 | *
21 | * @author Christophe Herreman
22 | */
23 | public interface INamed {
24 |
25 | /**
26 | * Returns the name of the object.
27 | */
28 | function get name():String;
29 |
30 | }
31 | }
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/eventbus/IEventBusUserRegistryAware.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.eventbus {
17 |
18 | /**
19 | *
20 | * @author Roland Zwaga
21 | * @productionversion SpringActionscript 2.0
22 | */
23 | public interface IEventBusUserRegistryAware {
24 | function get eventBusUserRegistry():IEventBusUserRegistry;
25 | function set eventBusUserRegistry(value:IEventBusUserRegistry):void;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend-bootstrap/src/main/actionscript/org/springextensions/actionscript/domain/INamed.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.domain {
17 |
18 | /**
19 | * Interface to be implemented by objects that provide a "name" property.
20 | *
21 | * @author Christophe Herreman
22 | */
23 | public interface INamed {
24 |
25 | /**
26 | * Returns the name of the object.
27 | */
28 | function get name():String;
29 |
30 | }
31 | }
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/IAutowireProcessorAwareObjectFactory.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes {
17 |
18 | import org.springextensions.actionscript.ioc.autowire.IAutowireProcessorAware;
19 | import org.springextensions.actionscript.ioc.factory.IObjectFactory;
20 |
21 |
22 | public interface IAutowireProcessorAwareObjectFactory extends IObjectFactory, IAutowireProcessorAware {
23 |
24 | }
25 | }
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend-metadata-config/src/main/actionscript/org/springextensions/actionscript/domain/INamed.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.domain {
17 |
18 | /**
19 | * Interface to be implemented by objects that provide a "name" property.
20 | *
21 | * @author Christophe Herreman
22 | */
23 | public interface INamed {
24 |
25 | /**
26 | * Returns the name of the object.
27 | */
28 | function get name():String;
29 |
30 | }
31 | }
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend-metadata-config/src/main/actionscript/org/springextensions/actionscript/samples/cafetownsend/presentation/MainView.mxml:
--------------------------------------------------------------------------------
1 |
2 | XML namespace used for eventbus specific handling.
20 | * @author Roland Zwaga
21 | * @productionversion SpringActionscript 2.0
22 | */
23 | public namespace spring_actionscript_eventbus = "http://www.springactionscript.org/schema/eventbus";
24 | }
25 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedScopedComponent.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.metadatascan {
17 |
18 | [Component(scope="prototype")]
19 | public class AnnotatedScopedComponent {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedScopedComponent() {
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedNamedComponent.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.metadatascan {
17 |
18 | [Component("annotatedNamedComponent")]
19 | public class AnnotatedNamedComponent {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedNamedComponent() {
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/EmbeddedContexts.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes {
17 |
18 |
19 | public final class EmbeddedContexts {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | [Embed(source="EmbeddedEmptyContext.xml", mimeType="application/octet-stream")]
27 | public static var embeddedEmptyContext:Class;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedComponent.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.metadatascan {
17 |
18 | [Component]
19 | public class AnnotatedComponent implements IAnnotatedComponent {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedComponent() {
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedNamedComponent2.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.metadatascan {
17 |
18 | [Component(id="annotatedNamedComponent2")]
19 | public class AnnotatedNamedComponent2 {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedNamedComponent2() {
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/eventbus/IEventBusAndListener.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.eventbus {
17 |
18 | import org.as3commons.eventbus.IEventBus;
19 | import org.as3commons.eventbus.IEventBusListener;
20 |
21 | /**
22 | *
23 | * @author Roland Zwaga
24 | * @productionversion SpringActionscript 2.0
25 | */
26 | public interface IEventBusAndListener extends IEventBusListener, IEventBus {
27 |
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedComponentWithAutowired.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.metadatascan {
17 |
18 | [Component(autowire="byName")]
19 | public class AnnotatedComponentWithAutowired {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedComponentWithAutowired() {
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/docbkx/resources/asdoctemplate/merge_dita_xml.xslt:
--------------------------------------------------------------------------------
1 |
2 |
12 | IController interface.
22 | * @author Roland Zwaga
23 | */
24 | public interface IMVCEventObjectPostProcessor extends IObjectPostProcessor {
25 |
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/config/impl/xml/ns/spring_actionscript_stageprocessing.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.config.impl.xml.ns {
17 |
18 | /**
19 | * XML stage processing namespace
20 | * @author Roland Zwaga
21 | * @productionversion SpringActionscript 2.0
22 | * @docref xml-schema-based-configuration.html#the_stage_processing_schema
23 | */
24 | public namespace spring_actionscript_stageprocessing = "http://www.springactionscript.org/schema/stageprocessing";
25 | }
26 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/objectdefinition/ICustomConfigurator.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.objectdefinition {
17 |
18 | /**
19 | * Describes an object that can perform custom configuration on an instance that cannot be expressed with an IObjectDefinition.
20 | * @author Roland Zwaga
21 | * @productionversion SpringActionscript 2.0
22 | */
23 | public interface ICustomConfigurator {
24 | function execute(instance:*, objectDefinition:IObjectDefinition):*;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/metadata/IClassScanner.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.metadata {
17 | import org.as3commons.metadata.process.IMetadataProcessor;
18 |
19 | /**
20 | * Describes an object that examines one or more classes and performs custom logic accordingly.
21 | *
22 | * @author Roland Zwaga
23 | * @author Christophe Herreman
24 | * @productionversion SpringActionscript 2.0
25 | */
26 | public interface IClassScanner extends IMetadataProcessor {
27 |
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedComponentWithDependsOn.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.metadatascan {
17 |
18 | [Component(dependsOn="objectName1, objectName2")]
19 | public class AnnotatedComponentWithDependsOn {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedComponentWithDependsOn() {
27 | super();
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedComponentWithSkips.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.metadatascan {
17 |
18 | [Component(skipMetaData="true", skipPostProcessors="true")]
19 | public class AnnotatedComponentWithSkips {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedComponentWithSkips() {
27 | super();
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/config/impl/metadata/ILoaderInfoAware.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.config.impl.metadata {
17 | import flash.display.LoaderInfo;
18 |
19 | /**
20 | * Describes an object that needs a reference to a LoaderInfo instance.
21 | * @author Roland Zwaga
22 | * @productionversion SpringActionscript 2.0
23 | */
24 | public interface ILoaderInfoAware {
25 | function get loaderInfo():LoaderInfo;
26 | function set loaderInfo(value:LoaderInfo):void;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/factory/error/CachedInstanceNotFoundError.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2012 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.factory.error {
17 |
18 | /**
19 | *
20 | * @author Roland Zwaga
21 | * @productionversion SpringActionscript 2.0
22 | */
23 | public class CachedInstanceNotFoundError extends Error {
24 |
25 | /**
26 | * Creates a new CachedInstanceNotFoundError instance.
27 | */
28 | public function CachedInstanceNotFoundError(cacheName:String) {
29 | super(cacheName);
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/metadata/IMetadataDestroyer.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.metadata {
17 |
18 | import org.as3commons.metadata.process.IMetadataProcessor;
19 |
20 | /**
21 | * Marker interface that indicates an IMetadataProcessor that needs to be invoked in the destruction
22 | * phase of an object's lifecycle.
23 | * @author Roland Zwaga
24 | * @productionversion SpringActionscript 2.0
25 | */
26 | public interface IMetadataDestroyer extends IMetadataProcessor {
27 |
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/MockDefinitionProviderResultOperation.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes {
17 | import org.as3commons.async.operation.impl.AbstractOperation;
18 |
19 | public class MockDefinitionProviderResultOperation extends AbstractOperation {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function MockDefinitionProviderResultOperation() {
27 | super();
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedComponentWithConstructor.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.metadatascan {
17 |
18 | [Constructor(args="ref=objectName1")]
19 | [Component]
20 | public class AnnotatedComponentWithConstructor {
21 |
22 | [Ignore]
23 | [Test(description="This test is being ignored")]
24 | public function testDummy():void {
25 | }
26 |
27 | public function AnnotatedComponentWithConstructor(obj:Object) {
28 | super();
29 | }
30 |
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend/src/main/actionscript/org/springextensions/actionscript/samples/cafetownsend/presentation/MainView.mxml:
--------------------------------------------------------------------------------
1 |
2 | WaitingOperation instance.
28 | */
29 | public function WaitingOperation() {
30 | super();
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend-bootstrap/src/main/actionscript/org/springextensions/actionscript/samples/cafetownsend/presentation/MainView.mxml:
--------------------------------------------------------------------------------
1 |
2 | ConstructorArg instance
27 | */
28 | public function ConstructorArg() {
29 | super();
30 | }
31 |
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/spring-actionscript-flex/src/test/actionscript/org/springextensions/actionscript/test/testtypes/IApplicationContextEventBusRegistryAware.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes {
17 |
18 | import org.springextensions.actionscript.context.IApplicationContext;
19 | import org.springextensions.actionscript.eventbus.IEventBusUserRegistryAware;
20 |
21 | /**
22 | *
23 | * @author Roland Zwaga
24 | * @productionversion SpringActionscript 2.0
25 | */
26 | public interface IApplicationContextEventBusRegistryAware extends IApplicationContext, IEventBusUserRegistryAware {
27 |
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend-mxml-config/src/main/actionscript/org/springextensions/actionscript/samples/cafetownsend/presentation/MainView.mxml:
--------------------------------------------------------------------------------
1 |
2 | TestEvent instance.
31 | */
32 | public function DummyEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) {
33 | super(type, bubbles, cancelable);
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedComponentInOtherPackage.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.metadatascan {
17 |
18 | [Component(id="annotatedComponentInOtherPackage", initMethod="init")]
19 | public class AnnotatedComponentInOtherPackage {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedComponentInOtherPackage() {
27 | }
28 |
29 | public function init():void {
30 |
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/factory/IObjectFactoryAware.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.factory {
17 |
18 | /**
19 | * Interface to be implemented by all objects that want to know what
20 | * container they run in.
21 | *
22 | * @author Christophe Herreman
23 | * @productionversion SpringActionscript 2.0
24 | */
25 | public interface IObjectFactoryAware {
26 | /**
27 | * @param objectFactory the IObjectFactory instance
28 | */
29 | function set objectFactory(objectFactory:IObjectFactory):void;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/objectdefinition/IObjectDefinitionRegistryAware.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.objectdefinition {
17 |
18 | /**
19 | * Describes an object that needs a reference to an IObjectDefinitionRegistry instance.
20 | * @author Roland Zwaga
21 | * @productionversion SpringActionscript 2.0
22 | */
23 | public interface IObjectDefinitionRegistryAware {
24 | function get objectDefinitionRegistry():IObjectDefinitionRegistry;
25 | function set objectDefinitionRegistry(value:IObjectDefinitionRegistry):void;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/error/ObjectFactoryError.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.error {
17 |
18 |
19 | /**
20 | *
21 | * @author Roland Zwaga
22 | * @productionversion SpringActionscript 2.0
23 | */
24 | public class ObjectFactoryError extends Error {
25 |
26 | public static const FACTORY_NOT_READY:String = "objectFactoryNotReady";
27 | public static const CANNOT_INSTANTIATE_INTERFACE:String = "cannotInstantiateInterface";
28 |
29 | public function ObjectFactoryError(message:*="", id:*=0) {
30 | super(message, id);
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/config/property/IPropertiesProvider.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.config.property {
17 |
18 | public interface IPropertiesProvider {
19 |
20 | function get content():Object;
21 |
22 | function get propertyNames():Vector.TestFactoryObject instance.
26 | */
27 | public function TestInvalidFactoryObject() {
28 | super();
29 | }
30 |
31 | public function createInstance():Object {
32 | return {};
33 | }
34 |
35 | [Ignore]
36 | [Test]
37 | public function testDummy():void {
38 |
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/ComponentWithProperties.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.metadatascan {
17 |
18 | /**
19 | * @author Christophe Herreman
20 | */
21 | [Component]
22 | public class ComponentWithProperties {
23 |
24 | [Ignore]
25 | [Test(description="This test is being ignored")]
26 | public function testDummy():void {
27 | }
28 |
29 | public var property1:AnnotatedComponent;
30 | public var property2:AnnotatedNamedComponent;
31 |
32 | public function ComponentWithProperties() {
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/stage/DummyStageProcessor.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.stage {
17 |
18 | import flash.display.DisplayObject;
19 |
20 | import org.as3commons.stageprocessing.IStageObjectProcessor;
21 |
22 | /**
23 | *
24 | * @author Roland Zwaga
25 | */
26 | public class DummyStageProcessor implements IStageObjectProcessor {
27 |
28 | public function DummyStageProcessor() {
29 | super();
30 | }
31 |
32 | public function process(displayObject:DisplayObject):DisplayObject {
33 | return displayObject;
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/factory/IInitializingObject.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.factory {
17 |
18 | /**
19 | * Objects that should execute behavior after their properties have been
20 | * set, should implement this interface.
21 | *
22 | * @author Christophe Herreman
23 | * @productionversion SpringActionscript 2.0
24 | */
25 | public interface IInitializingObject {
26 |
27 | /**
28 | * Invoked by an object factory after all properties of an object
29 | * have been set.
30 | */
31 | function afterPropertiesSet():void;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/TestFactoryObject.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes {
17 |
18 | [Factory(factoryMethod="createInstance")]
19 | /**
20 | *
21 | * @author Roland Zwaga
22 | */
23 | public class TestFactoryObject {
24 | /**
25 | * Creates a new TestFactoryObject instance.
26 | */
27 | public function TestFactoryObject() {
28 | super();
29 | }
30 |
31 | public function createInstance():Object {
32 | return {};
33 | }
34 |
35 | [Ignore]
36 | [Test]
37 | public function testDummy():void {
38 |
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/ClassWithStaticFactoryMethod.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes {
17 |
18 |
19 | public class ClassWithStaticFactoryMethod {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function ClassWithStaticFactoryMethod() {
27 | super();
28 | }
29 |
30 | public var createdByStaticMethod:Boolean = true;
31 |
32 | public static function newInstance():ClassWithStaticFactoryMethod {
33 | return new ClassWithStaticFactoryMethod();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/TestClassFactory.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes {
17 |
18 |
19 | public class TestClassFactory {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function TestClassFactory() {
27 | super();
28 | }
29 |
30 | public function newInstance():ClassWithStaticFactoryMethod {
31 | var result:ClassWithStaticFactoryMethod = ClassWithStaticFactoryMethod.newInstance();
32 | result.createdByStaticMethod = false;
33 | return result;
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/config/property/error/PropertyPlaceholderResolverError.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.config.property.error {
17 |
18 |
19 | /**
20 | *
21 | * @author Roland Zwaga
22 | * @productionversion SpringActionscript 2.0
23 | */
24 | public class PropertyPlaceholderResolverError extends Error {
25 |
26 | /**
27 | * Creates a new PropertyPlaceholderResolverError instance.
28 | * @param message
29 | * @param id
30 | *
31 | */
32 | public function PropertyPlaceholderResolverError(message:*="", id:*=0) {
33 | super(message, id);
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/factory/process/IObjectFactoryPostProcessor.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.factory.process {
17 | import org.as3commons.async.operation.IOperation;
18 | import org.springextensions.actionscript.ioc.factory.IObjectFactory;
19 |
20 | /**
21 | * @author Christophe Herreman
22 | * @author Roland Zwaga
23 | * @productionversion SpringActionscript 2.0
24 | */
25 | public interface IObjectFactoryPostProcessor {
26 | /**
27 | *
28 | * @param objectFactory
29 | */
30 | function postProcessObjectFactory(objectFactory:IObjectFactory):IOperation;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedComponentWithPropertiesWithRefs.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.metadatascan {
17 |
18 | [Component]
19 | public class AnnotatedComponentWithPropertiesWithRefs {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedComponentWithPropertiesWithRefs() {
27 | }
28 |
29 | [Property(ref="objectName1")]
30 | public var someProperty:String;
31 |
32 | [Property(ref="objectName2")]
33 | public var someOtherProperty:uint;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/spring-actionscript-flex/src/main/actionscript/org/springextensions/actionscript/stage/IgnoreModuleObjectSelector.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.stage {
17 |
18 | import org.as3commons.stageprocessing.IObjectSelector;
19 |
20 | /**
21 | *
22 | * @author Roland Zwaga
23 | * @productionversion SpringActionscript 2.0
24 | */
25 | public class IgnoreModuleObjectSelector implements IObjectSelector {
26 |
27 | /**
28 | * Creates a new IgnoreModuleObjectSelector instance.
29 | */
30 | public function IgnoreModuleObjectSelector() {
31 | super();
32 | }
33 |
34 | public function approve(object:Object):Boolean {
35 | return false;
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedComponentWithPropertiesWithExplicitValues.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.metadatascan {
17 |
18 | [Component]
19 | public class AnnotatedComponentWithPropertiesWithExplicitValues {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedComponentWithPropertiesWithExplicitValues() {
27 | }
28 |
29 | [Property(value="ThisValue")]
30 | public var someProperty:String;
31 |
32 | [Property(value="10")]
33 | public var someOtherProperty:uint;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/eventbus/TestEventHandler.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.eventbus {
17 | import flash.events.Event;
18 |
19 | /**
20 | *
21 | * @author Roland Zwaga
22 | */
23 | public class TestEventHandler {
24 | /**
25 | * Creates a new EventHandler instance.
26 | */
27 | public function TestEventHandler() {
28 | super();
29 | }
30 |
31 | [Ignore]
32 | [Test]
33 | public function testDummy():void {
34 |
35 | }
36 |
37 | public function methodHandler(event:Event):void {
38 |
39 | }
40 |
41 | public var topic:String = "testTopicPropertyValue";
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedComponentWithPropertiesWithPlaceholders.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.metadatascan {
17 |
18 | [Component]
19 | public class AnnotatedComponentWithPropertiesWithPlaceholders {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedComponentWithPropertiesWithPlaceholders() {
27 | }
28 |
29 | [Property(value="${replaceMe1}")]
30 | public var someProperty:String;
31 |
32 | [Property(value="${replaceMe2}")]
33 | public var someOtherProperty:uint;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/resources/context-with-task.xml:
--------------------------------------------------------------------------------
1 |
2 | IApplicationContext.
21 | * @author Roland Zwaga
22 | * @productionversion SpringActionscript 2.0
23 | */
24 | public interface IConfigurationPackage {
25 | /**
26 | * @param applicationContext The specified IApplicationContext that will be configured by the current IConfigurationPackage.
27 | */
28 | function execute(applicationContext:IApplicationContext):void;
29 | }
30 | }
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/autowire/IAutowireProcessorAware.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.autowire {
17 |
18 | /**
19 | * Interface to be implemented by all objects that need a reference to
20 | * an IAutowireProcessor instance.
21 | * @author Roland Zwaga
22 | * @productionversion SpringActionscript 2.0
23 | */
24 | public interface IAutowireProcessorAware {
25 |
26 | /**
27 | * @param autowireProcessor the IAutowireProcessor instance
28 | */
29 | function get autowireProcessor():IAutowireProcessor;
30 | /**
31 | * @private
32 | */
33 | function set autowireProcessor(value:IAutowireProcessor):void;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/object/propertyeditor/NumberPropertyEditor.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.object.propertyeditor {
17 |
18 | /**
19 | * Converts a number represented by a string to a number object.
20 | *
21 | * @author Christophe Herreman
22 | * @productionversion SpringActionscript 2.0
23 | */
24 | public class NumberPropertyEditor extends AbstractPropertyEditor {
25 |
26 | /**
27 | * Creates a new NumberPropertyEditor instance
28 | *
29 | */
30 | public function NumberPropertyEditor() {
31 | super(this);
32 | }
33 |
34 | override public function set text(val:String):void {
35 | value = Number(val);
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend/src/main/actionscript/org/springextensions/actionscript/samples/cafetownsend/stage/TownsendViewSelector.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.samples.cafetownsend.stage {
17 |
18 | import org.as3commons.stageprocessing.IObjectSelector;
19 | import org.springextensions.actionscript.samples.cafetownsend.ITownsendView;
20 |
21 | /**
22 | *
23 | * @author Roland Zwaga
24 | */
25 | public class TownsendViewSelector implements IObjectSelector {
26 | /**
27 | * Creates a new TownsendViewSelector instance.
28 | */
29 | public function TownsendViewSelector() {
30 | super();
31 | }
32 |
33 | public function approve(object:Object):Boolean {
34 | return (object is ITownsendView);
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend-bootstrap/src/main/actionscript/org/springextensions/actionscript/samples/cafetownsend/stage/TownsendViewSelector.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.samples.cafetownsend.stage {
17 |
18 | import org.as3commons.stageprocessing.IObjectSelector;
19 | import org.springextensions.actionscript.samples.cafetownsend.ITownsendView;
20 |
21 | /**
22 | *
23 | * @author Roland Zwaga
24 | */
25 | public class TownsendViewSelector implements IObjectSelector {
26 | /**
27 | * Creates a new TownsendViewSelector instance.
28 | */
29 | public function TownsendViewSelector() {
30 | super();
31 | }
32 |
33 | public function approve(object:Object):Boolean {
34 | return (object is ITownsendView);
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedComponentWithMethodInvocations.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2010 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.test.testtypes.metadatascan {
17 |
18 | [Component]
19 | public class AnnotatedComponentWithMethodInvocations {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedComponentWithMethodInvocations() {
27 | super();
28 | }
29 |
30 | [Invoke(args="ref=objectName1, value=10")]
31 | public function someFunction(obj:Object, count:int):void {
32 |
33 | }
34 |
35 | [Invoke(args="ref=objectName2")]
36 | public function someOtherFunction(obj:Object):void {
37 |
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend-multi-module/src/main/actionscript/org/springextensions/actionscript/samples/cafetownsend/stage/TownsendViewSelector.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.samples.cafetownsend.stage {
17 |
18 | import org.as3commons.stageprocessing.IObjectSelector;
19 | import org.springextensions.actionscript.samples.cafetownsend.ITownsendView;
20 |
21 | /**
22 | *
23 | * @author Roland Zwaga
24 | */
25 | public class TownsendViewSelector implements IObjectSelector {
26 | /**
27 | * Creates a new TownsendViewSelector instance.
28 | */
29 | public function TownsendViewSelector() {
30 | super();
31 | }
32 |
33 | public function approve(object:Object):Boolean {
34 | return (object is ITownsendView);
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend-mxml-config/src/main/actionscript/org/springextensions/actionscript/samples/cafetownsend/stage/TownsendViewSelector.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.samples.cafetownsend.stage {
17 |
18 | import org.as3commons.stageprocessing.IObjectSelector;
19 | import org.springextensions.actionscript.samples.cafetownsend.ITownsendView;
20 |
21 | /**
22 | *
23 | * @author Roland Zwaga
24 | */
25 | public class TownsendViewSelector implements IObjectSelector {
26 | /**
27 | * Creates a new TownsendViewSelector instance.
28 | */
29 | public function TownsendViewSelector() {
30 | super();
31 | }
32 |
33 | public function approve(object:Object):Boolean {
34 | return (object is ITownsendView);
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/spring-actionscript-flex/src/test/actionscript/org/springextensions/actionscript/ioc/config/impl/mxml/component/InterfaceTest.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.config.impl.mxml.component {
17 | import org.flexunit.asserts.assertEquals;
18 |
19 | /**
20 | *
21 | * @author Roland Zwaga
22 | * @productionversion SpringActionscript 2.0
23 | */
24 | public class InterfaceTest {
25 | /**
26 | * Creates a new InterfaceTest instance.
27 | */
28 | public function InterfaceTest() {
29 | super();
30 | }
31 |
32 | [Test]
33 | public function testIsInterface():void {
34 | var intf:Interface = new Interface();
35 | intf.initializeComponent(null, null);
36 | intf.parse();
37 | assertEquals(true, intf.definition.isInterface);
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/ioc/factory/impl/MethodInvokingFactoryObjectTest.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2012 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.factory.impl {
17 | import org.flexunit.asserts.assertFalse;
18 | import org.flexunit.asserts.assertNull;
19 |
20 | public class MethodInvokingFactoryObjectTest {
21 |
22 | public function MethodInvokingFactoryObjectTest() {
23 | }
24 |
25 | [Test]
26 | public function testGetObjectType():void {
27 | var o:MethodInvokingFactoryObject = new MethodInvokingFactoryObject();
28 | assertNull(o.getObjectType());
29 | }
30 |
31 | [Test]
32 | public function testIsSingleton():void {
33 | var o:MethodInvokingFactoryObject = new MethodInvokingFactoryObject();
34 | assertFalse(o.isSingleton);
35 | }
36 |
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/eventbus/IEventBusShareManager.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.eventbus {
17 | import org.as3commons.eventbus.IEventBus;
18 | import org.springextensions.actionscript.context.IApplicationContext;
19 |
20 | /**
21 | * Describes an object that handles the logic of linking up two eventbuses between application contexts.
22 | * @author Roland Zwaga
23 | * @productionversion SpringActionscript 2.0
24 | */
25 | public interface IEventBusShareManager {
26 |
27 | /**
28 | *
29 | * @param childContext
30 | * @param parentEventBus
31 | * @param settings
32 | */
33 | function addChildContextEventBusListener(childContext:IApplicationContext, parentEventBus:IEventBus, settings:EventBusShareSettings):void;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend-metadata-config/src/main/actionscript/org/springextensions/actionscript/configuration/AppConfig.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.configuration {
17 | import org.springextensions.actionscript.eventbus.process.EventHandlerMetadataProcessor;
18 | import org.springextensions.actionscript.eventbus.process.RouteEventsMetaDataProcessor;
19 | import org.springextensions.actionscript.stage.DefaultAutowiringStageProcessor;
20 |
21 | [Configuration]
22 | /**
23 | *
24 | * @author Roland Zwaga
25 | */
26 | public final class AppConfig {
27 | public var stageAutowireProcessor:DefaultAutowiringStageProcessor;
28 | public var eventHandlerMetadataProcessor:EventHandlerMetadataProcessor;
29 | public var routeEventsMetadataProcessor:RouteEventsMetaDataProcessor;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/docbkx/resources/asdoctemplate/Overviews_Base.xml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
14 |
22 | * Author: Erik Westra
23 | * Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
24 | * Since: 0.1
25 | *
ResolveReferenceError
31 | *
32 | * @param message The message describing the reference error
33 | */
34 | public function ResolveReferenceError(message:String = "") {
35 | super(message);
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend/src/main/actionscript/org/springextensions/actionscript/domain/IEntity.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.domain {
17 |
18 | import org.as3commons.lang.ICloneable;
19 | import org.as3commons.lang.IEquals;
20 |
21 | /**
22 | * Describes an entity.
23 | *
24 | *
25 | * Author: Christophe Herreman
26 | * Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
27 | * Since: 0.1
28 | *
25 | * Author: Christophe Herreman
26 | * Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
27 | * Since: 0.1
28 | *
25 | * Author: Christophe Herreman
26 | * Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
27 | * Since: 0.1
28 | *
25 | * Author: Christophe Herreman
26 | * Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
27 | * Since: 0.1
28 | *
25 | * Author: Christophe Herreman
26 | * Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
27 | * Since: 0.1
28 | *
ClassEntry instance.
31 | * @param clazz
32 | * @param topic
33 | */
34 | public function ClassEntry(clazz:Class, topic:Object=null) {
35 | super();
36 | _clazz = clazz;
37 | _topic = topic;
38 | }
39 |
40 | /**
41 | *
42 | */
43 | public function get clazz():Class {
44 | return _clazz;
45 | }
46 |
47 | /**
48 | *
49 | */
50 | public function get topic():Object {
51 | return _topic;
52 | }
53 |
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend/src/main/actionscript/org/springextensions/actionscript/samples/cafetownsend/infrastructure/service/InMemoryAuthenticationService.as:
--------------------------------------------------------------------------------
1 | package org.springextensions.actionscript.samples.cafetownsend.infrastructure.service {
2 |
3 | import org.as3commons.async.operation.IOperation;
4 | import org.as3commons.async.operation.impl.MockOperation;
5 | import org.springextensions.actionscript.samples.cafetownsend.application.service.IAuthenticationService;
6 |
7 | /**
8 | * In-memory implementation of the IAuthenticationService interface.
9 | *
10 | * @author Christophe Herreman
11 | */
12 | public class InMemoryAuthenticationService implements IAuthenticationService {
13 |
14 | // --------------------------------------------------------------------
15 | //
16 | // Constructor
17 | //
18 | // --------------------------------------------------------------------
19 |
20 | public function InMemoryAuthenticationService() {
21 | }
22 |
23 | // --------------------------------------------------------------------
24 | //
25 | // Implementation: IAuthenticationService
26 | //
27 | // --------------------------------------------------------------------
28 |
29 | public function login(username:String, password:String):IOperation {
30 | if ((username == "Flex") && (password == "Spring")) {
31 | return new MockOperation(true);
32 | }
33 | return new MockOperation(false);
34 | }
35 |
36 | public function logout():IOperation {
37 | return new MockOperation(true);
38 | }
39 | }
40 | }
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/ILazyDependencyManager.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2012 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc {
17 | import flash.events.IEventDispatcher;
18 |
19 | import org.springextensions.actionscript.ioc.objectdefinition.impl.PropertyDefinition;
20 |
21 | /**
22 | *
23 | * @author Roland Zwaga
24 | * @productionversion SpringActionscript 2.0
25 | */
26 | public interface ILazyDependencyManager extends IEventDispatcher {
27 | /**
28 | *
29 | * @param objectName
30 | * @param property
31 | * @param instance
32 | */
33 | function registerLazyInjection(objectName:String, property:PropertyDefinition, instance:*):void;
34 | /**
35 | *
36 | * @param dependencyName
37 | * @param dependencyInstance
38 | */
39 | function updateInjections(dependencyName:String, dependencyInstance:*):void;
40 |
41 |
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend-bootstrap/src/main/actionscript/org/springextensions/actionscript/samples/cafetownsend/infrastructure/service/InMemoryAuthenticationService.as:
--------------------------------------------------------------------------------
1 | package org.springextensions.actionscript.samples.cafetownsend.infrastructure.service {
2 |
3 | import org.as3commons.async.operation.IOperation;
4 | import org.as3commons.async.operation.impl.MockOperation;
5 | import org.springextensions.actionscript.samples.cafetownsend.application.service.IAuthenticationService;
6 |
7 | /**
8 | * In-memory implementation of the IAuthenticationService interface.
9 | *
10 | * @author Christophe Herreman
11 | */
12 | public class InMemoryAuthenticationService implements IAuthenticationService {
13 |
14 | // --------------------------------------------------------------------
15 | //
16 | // Constructor
17 | //
18 | // --------------------------------------------------------------------
19 |
20 | public function InMemoryAuthenticationService() {
21 | }
22 |
23 | // --------------------------------------------------------------------
24 | //
25 | // Implementation: IAuthenticationService
26 | //
27 | // --------------------------------------------------------------------
28 |
29 | public function login(username:String, password:String):IOperation {
30 | if ((username == "Flex") && (password == "Spring")) {
31 | return new MockOperation(true);
32 | }
33 | return new MockOperation(false);
34 | }
35 |
36 | public function logout():IOperation {
37 | return new MockOperation(true);
38 | }
39 | }
40 | }
--------------------------------------------------------------------------------
/src/docbkx/resources/xsd/spring-actionscript-stageprocessing-1.0.xsd:
--------------------------------------------------------------------------------
1 |
2 | EventTypeEntry instance.
31 | * @param type
32 | * @param topic
33 | */
34 | public function EventTypeEntry(type:String, topic:Object=null) {
35 | super();
36 | _eventType = type;
37 | _topic = topic;
38 | }
39 |
40 | /**
41 | *
42 | */
43 | public function get eventType():String {
44 | return _eventType;
45 | }
46 |
47 | /**
48 | *
49 | */
50 | public function get topic():Object {
51 | return _topic;
52 | }
53 |
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend-metadata-config/src/main/actionscript/org/springextensions/actionscript/samples/cafetownsend/infrastructure/service/InMemoryAuthenticationService.as:
--------------------------------------------------------------------------------
1 | package org.springextensions.actionscript.samples.cafetownsend.infrastructure.service {
2 |
3 | import org.as3commons.async.operation.IOperation;
4 | import org.as3commons.async.operation.impl.MockOperation;
5 | import org.springextensions.actionscript.samples.cafetownsend.application.service.IAuthenticationService;
6 |
7 | /**
8 | * In-memory implementation of the IAuthenticationService interface.
9 | *
10 | * @author Christophe Herreman
11 | */
12 | [Component]
13 | public class InMemoryAuthenticationService implements IAuthenticationService {
14 |
15 | // --------------------------------------------------------------------
16 | //
17 | // Constructor
18 | //
19 | // --------------------------------------------------------------------
20 |
21 | public function InMemoryAuthenticationService() {
22 | }
23 |
24 | // --------------------------------------------------------------------
25 | //
26 | // Implementation: IAuthenticationService
27 | //
28 | // --------------------------------------------------------------------
29 |
30 | public function login(username:String, password:String):IOperation {
31 | if ((username == "Flex") && (password == "Spring")) {
32 | return new MockOperation(true);
33 | }
34 | return new MockOperation(false);
35 | }
36 |
37 | public function logout():IOperation {
38 | return new MockOperation(true);
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/config/impl/metadata/ICustomConfigurationClassScanner.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.config.impl.metadata {
17 | import org.as3commons.reflect.Metadata;
18 | import org.springextensions.actionscript.context.IApplicationContext;
19 | import org.springextensions.actionscript.ioc.objectdefinition.IObjectDefinition;
20 | import org.springextensions.actionscript.ioc.objectdefinition.IObjectDefinitionRegistry;
21 |
22 | /**
23 | *
24 | * @author Roland Zwaga
25 | * @productionversion SpringActionscript 2.0
26 | */
27 | public interface ICustomConfigurationClassScanner {
28 |
29 | function get metadataNames():Vector.AbstractTaskDefinitionParser instance.
30 | */
31 | public function AbstractTaskDefinitionParser() {
32 | super();
33 | }
34 |
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/object/IPropertyEditorRegistry.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.object {
17 |
18 | /**
19 | * Defines a registry for property editors.
20 | *
21 | * @author Christophe Herreman
22 | * @productionversion SpringActionscript 2.0
23 | */
24 | public interface IPropertyEditorRegistry {
25 |
26 | /**
27 | * Registers the given property editor for the given type.
28 | *
29 | * @param requiredType the type of the property
30 | * @param propertyEditor the property editor to register
31 | */
32 | function registerCustomEditor(requiredType:Class, propertyEditor:IPropertyEditor):void;
33 |
34 | /**
35 | * Finds a property editor that was registered against the given type.
36 | *
37 | * @param requiredType the type of the property
38 | */
39 | function findCustomEditor(requiredType:Class):IPropertyEditor;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/objectdefinition/error/ObjectDefinitionNotFoundError.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.ioc.objectdefinition.error {
17 |
18 | /**
19 | * This error is thrown by the AbstractObjectFactory when the given name for
20 | * an IObjectDefinition could not be found in the configuration while the getObject()
21 | * method is invoked.
ObjectDefinitionNotFoundError instance.
30 | */
31 | public function ObjectDefinitionNotFoundError(message:String="") {
32 | super(message);
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend-multi-module/src/main/actionscript/org/springextensions/actionscript/samples/cafetownsend/application/ApplicationController.as:
--------------------------------------------------------------------------------
1 | package org.springextensions.actionscript.samples.cafetownsend.application {
2 |
3 | import flash.events.Event;
4 |
5 | import org.as3commons.async.operation.IOperation;
6 | import org.as3commons.eventbus.IEventBus;
7 | import org.as3commons.eventbus.IEventBusAware;
8 | import org.as3commons.lang.Assert;
9 | import org.springextensions.actionscript.samples.cafetownsend.application.service.IAuthenticationService;
10 |
11 | /**
12 | * Controller for global application actions.
13 | * @author Christophe Herreman
14 | */
15 | public class ApplicationController implements IEventBusAware {
16 |
17 | private var _authenticationService:IAuthenticationService;
18 |
19 | private var _eventBus:IEventBus;
20 |
21 | public function ApplicationController(authenticationService:IAuthenticationService) {
22 | Assert.notNull("The authentication service should not be null");
23 | _authenticationService = authenticationService;
24 | }
25 |
26 | public function logout():void {
27 | var operation:IOperation = _authenticationService.logout();
28 | operation.addCompleteListener(logout_completeHandler);
29 | }
30 |
31 | private function logout_completeHandler(event:Event):void {
32 | eventBus.dispatch(ApplicationEvents.LOGGED_OUT);
33 | }
34 |
35 | public function get eventBus():IEventBus {
36 | return _eventBus;
37 | }
38 |
39 | public function set eventBus(value:IEventBus):void {
40 | _eventBus = value;
41 | }
42 |
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/test/actionscript/org/springextensions/actionscript/object/propertyeditor/ClassPropertyEditorTest.as:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-2011 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.springextensions.actionscript.object.propertyeditor {
17 | import flash.system.ApplicationDomain;
18 |
19 | import org.flexunit.asserts.assertStrictlyEquals;
20 | import org.flexunit.asserts.assertTrue;
21 |
22 | public class ClassPropertyEditorTest {
23 |
24 | private var _editor:ClassPropertyEditor;
25 |
26 | public function ClassPropertyEditorTest() {
27 | super();
28 | _editor = new ClassPropertyEditor();
29 | }
30 |
31 | [Test]
32 | public function testWithExistingClassName():void {
33 | _editor.text = "flash.system.ApplicationDomain";
34 | assertStrictlyEquals(ApplicationDomain, _editor.value);
35 | }
36 |
37 | [Test(expects = "org.as3commons.lang.ClassNotFoundError")]
38 | public function testWithNonExistingClassName():void {
39 | _editor.text = "flash.generics.WishfulThinking";
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------