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/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-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-core/src/main/actionscript/org/springextensions/actionscript/eventbus/impl/ClassEntry.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.impl {
17 |
18 |
19 | /**
20 | *
21 | * @author Roland Zwaga
22 | * @productionversion SpringActionscript 2.0
23 | */
24 | public class ClassEntry {
25 |
26 | private var _clazz:Class;
27 | private var _topic:Object;
28 |
29 | /**
30 | * Creates a new 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-core/src/main/actionscript/org/springextensions/actionscript/eventbus/impl/EventTypeEntry.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.impl {
17 |
18 |
19 | /**
20 | *
21 | * @author Roland Zwaga
22 | * @productionversion SpringActionscript 2.0
23 | */
24 | public class EventTypeEntry {
25 |
26 | private var _eventType:String;
27 | private var _topic:Object;
28 |
29 | /**
30 | * Creates a new 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-core/src/main/actionscript/org/springextensions/actionscript/ioc/Constants.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 {
17 |
18 | /**
19 | * @author Christophe Herreman
20 | * @productionversion SpringActionscript 2.0
21 | */
22 | public class Constants {
23 | public static const OBJECTS:String = "objects";
24 | public static const OBJECT:String = "object";
25 | public static const INTERFACE:String = "interface";
26 | public static const PROPERTY:String = "property";
27 | public static const ID_ATTRIBUTE:String = "id";
28 | public static const SCOPE_ATTRIBUTE:String = "scope";
29 | public static const SINGLETON_ATTRIBUTE:String = "singleton";
30 | public static const LAZYINIT_ATTRIBUTE:String = "lazy-init";
31 | public static const CLASS_ATTRIBUTE:String = "class";
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/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-core/src/main/actionscript/org/springextensions/actionscript/ioc/SpringConstants.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 {
17 |
18 | /**
19 | * @author Christophe Herreman
20 | */
21 | public final class SpringConstants {
22 | public static const BEANS:String = "beans";
23 | public static const BEAN:String = "bean";
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/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/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-core/src/main/actionscript/org/springextensions/actionscript/ioc/config/ITextFilesLoader.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 | import org.as3commons.async.operation.IOperation;
19 | import org.as3commons.async.operation.IOperationQueue;
20 | import org.springextensions.actionscript.ioc.config.property.TextFileURI;
21 |
22 | public interface ITextFilesLoader extends IOperationQueue {
23 |
24 | function addURIs(URIs:Vector.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/config/impl/metadata/WaitingOperation.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 |
18 | import org.as3commons.async.operation.impl.AbstractOperation;
19 |
20 | /**
21 | *
22 | * @author Roland Zwaga
23 | * @productionversion SpringActionscript 2.0
24 | */
25 | public class WaitingOperation extends AbstractOperation {
26 | /**
27 | * Creates a new WaitingOperation
instance.
28 | */
29 | public function WaitingOperation() {
30 | super();
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/config/impl/xml/namespacehandler/impl/task/nodeparser/AbstractTaskDefinitionParser.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.namespacehandler.impl.task.nodeparser {
17 | import org.springextensions.actionscript.ioc.config.impl.xml.namespacehandler.impl.AbstractObjectDefinitionParser;
18 | import org.springextensions.actionscript.ioc.config.impl.xml.ns.spring_actionscript_task;
19 |
20 | use namespace spring_actionscript_task;
21 |
22 | /**
23 | * Base class for definition parsers dealing with task elements
24 | * @author Roland
25 | */
26 | public class AbstractTaskDefinitionParser extends AbstractObjectDefinitionParser {
27 |
28 | /**
29 | * Creates a new AbstractTaskDefinitionParser
instance.
30 | */
31 | public function AbstractTaskDefinitionParser() {
32 | super();
33 | }
34 |
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/config/impl/xml/ns/spring_actionscript_eventbus.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
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/main/actionscript/org/springextensions/actionscript/ioc/config/impl/xml/ns/spring_actionscript_objects.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 namespace used in context files.
20 | *
21 | * @author Christophe Herreman
22 | */
23 | public namespace spring_actionscript_objects = "http://www.springactionscript.org/schema/objects";
24 | }
25 |
--------------------------------------------------------------------------------
/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/config/impl/xml/ns/spring_actionscript_task.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 | * namespace for 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/impl/xml/ns/spring_actionscript_util.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 util namespace
20 | *
21 | * @author Christophe Herreman
22 | */
23 | public namespace spring_actionscript_util = "http://www.springactionscript.org/schema/util";
24 | }
25 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/config/property/IPropertiesParser.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 | /**
19 | *
20 | * @author Roland Zwaga
21 | * @productionversion SpringActionscript 2.0
22 | */
23 | public interface IPropertiesParser {
24 | function parseProperties(source:*, provider:IPropertiesProvider):void;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/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.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/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/error/ResolveReferenceError.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 | * Thrown to indicate that a reference could not be resolved.
20 | *
21 | *
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-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/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/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/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/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/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/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-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/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/main/actionscript/org/springextensions/actionscript/metadata/ISpringMetadaProcessor.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 | *
22 | * @author Roland Zwaga
23 | * @productionversion SpringActionscript 2.0
24 | */
25 | public interface ISpringMetadaProcessor extends IMetadataProcessor {
26 | function get processBeforeInitialization():Boolean;
27 | function set processBeforeInitialization(value:Boolean):void;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/object/IPropertyEditor.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 | * A property editor converts strings to typed objects.
20 | * Typically these strings are found in the Spring Actionscript configuration XML.
21 | * @author Christophe Herreman
22 | * @productionversion SpringActionscript 2.0
23 | */
24 | public interface IPropertyEditor {
25 |
26 | /**
27 | * The string that will be converted into an object. For example: org.springextensions.actionscript.collections.TypedCollection
28 | */
29 | function get text():String;
30 | /**
31 | * @private
32 | */
33 | function set text(value:String):void;
34 |
35 | /**
36 | * The result of the string-to-object conversion.
37 | */
38 | function get value():*;
39 | /**
40 | * @private
41 | */
42 | function set value(v:*):void;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/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/object/ITypeConverter.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 | * Converts a string value to a typed object.
20 | *
21 | * @author Christophe Herreman
22 | * @productionversion SpringActionscript 2.0
23 | */
24 | public interface ITypeConverter {
25 |
26 | /**
27 | * Convert the given value to the required type.
28 | *
29 | * @param value the value to convert
30 | * @param requiredType the type to convert to
31 | */
32 | function convertIfNecessary(value:*, requiredType:Class=null):*;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/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-core/src/main/assembly/sources.xml:
--------------------------------------------------------------------------------
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/ioc/config/impl/xml/preprocess/impl/SpringNamesPreprocessorTest.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.preprocess.impl {
17 | import org.flexunit.asserts.assertEquals;
18 | import org.springextensions.actionscript.ioc.config.impl.xml.preprocess.IXMLObjectDefinitionsPreprocessor;
19 |
20 |
21 | public class SpringNamesPreprocessorTest {
22 |
23 | public function SpringNamesPreprocessorTest() {
24 | super();
25 | }
26 |
27 | [Test]
28 | public function testPreprocess():void {
29 | var input:XML = new XML('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/TestInvalidFactoryObject.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]
19 | /**
20 | *
21 | * @author Roland Zwaga
22 | */
23 | public class TestInvalidFactoryObject {
24 | /**
25 | * Creates a new 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/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/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/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/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/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 |
--------------------------------------------------------------------------------
/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-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedComponentWithDependencyCheck.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(dependencyCheck="simple")]
19 | public class AnnotatedComponentWithDependencyCheck {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedComponentWithDependencyCheck() {
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/AnnotatedComponentWithDestroyMethod.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(destroyMethod="dispose")]
19 | public class AnnotatedComponentWithDestroyMethod {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedComponentWithDestroyMethod() {
27 | }
28 |
29 | public function dispose():void {
30 |
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/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-core/src/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedComponentWithPrimaryLazyInitAndFactoryMethod.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(primary="true", factoryMethod="createNew", factoryObjectName="factoryName", lazyInit="true")]
19 | public class AnnotatedComponentWithPrimaryLazyInitAndFactoryMethod {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedComponentWithPrimaryLazyInitAndFactoryMethod() {
27 | }
28 |
29 | public static function createNew():AnnotatedComponentWithPrimaryLazyInitAndFactoryMethod {
30 | return new AnnotatedComponentWithPrimaryLazyInitAndFactoryMethod();
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/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/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/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-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/test/actionscript/org/springextensions/actionscript/test/testtypes/metadatascan/AnnotatedLazyInitPrototypeComponent.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(lazyInit="true", scope="prototype")]
19 | public class AnnotatedLazyInitPrototypeComponent {
20 |
21 | [Ignore]
22 | [Test(description="This test is being ignored")]
23 | public function testDummy():void {
24 | }
25 |
26 | public function AnnotatedLazyInitPrototypeComponent() {
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/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/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/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/metadatascan/IAnnotatedComponent.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 | /**
20 | * @author Christophe Herreman
21 | */
22 | public interface IAnnotatedComponent {
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/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/test/resources/context-with-task.xml:
--------------------------------------------------------------------------------
1 |
2 | ConstructorArg
instance
27 | */
28 | public function ConstructorArg() {
29 | super();
30 | }
31 |
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/spring-actionscript-flex/src/main/actionscript/org/springextensions/actionscript/ioc/config/impl/xml/ns/spring_actionscript_messaging.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 messaging namespace
20 | * @docref xml-schema-based-configuration.html#the_messaging_schema
21 | * @author Christophe Herreman
22 | * @productionversion SpringActionscript 2.0
23 | */
24 | public namespace spring_actionscript_messaging = "http://www.springactionscript.org/schema/messaging";
25 | }
26 |
--------------------------------------------------------------------------------
/spring-actionscript-flex/src/main/actionscript/org/springextensions/actionscript/ioc/config/impl/xml/ns/spring_actionscript_rpc.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 RPC namespace
20 | *
21 | * @author Christophe Herreman
22 | * @productionversion SpringActionscript 2.0
23 | */
24 | public namespace spring_actionscript_rpc = "http://www.springactionscript.org/schema/rpc";
25 | }
26 |
--------------------------------------------------------------------------------
/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-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-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-flex/src/test/actionscript/org/springextensions/actionscript/test/testtypes/MXMLConfig.mxml:
--------------------------------------------------------------------------------
1 |
2 | IController
interface.
22 | * @author Roland Zwaga
23 | */
24 | public interface IMVCEventObjectPostProcessor extends IObjectPostProcessor {
25 |
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/spring-actionscript-samples/cafe-townsend-bootstrap/src/main/actionscript/org/springextensions/actionscript/Main.mxml:
--------------------------------------------------------------------------------
1 |
2 |
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 | *
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/resources/assets/Employees.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 | *
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-multi-module/src/main/resources/assets/Employees.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 | *
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/resources/assets/Employees.xml:
--------------------------------------------------------------------------------
1 |
2 |
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 | *
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/src/main/resources/assets/Employees.xml:
--------------------------------------------------------------------------------
1 |
2 |