Skip to content
Browse files

Moves contents of the org.swiftsuspenders.injection package back into…

… the main package


@darscan notes that injection is what Swiftsuspenders is all about and that is makes no sense to hide that functionality in a sub-package.
  • Loading branch information...
1 parent b332ba2 commit fd6e8fcfbc830e135438a6a83bc6c1a8d5983b65 @tschneidereit committed
Showing with 157 additions and 253 deletions.
  1. +1 −1 src/org/swiftsuspenders/{injection → }/InjectionEvent.as
  2. +21 −22 src/org/swiftsuspenders/{injection → }/InjectionMapping.as
  3. +21 −21 src/org/swiftsuspenders/{injection → }/Injector.as
  4. +1 −1 src/org/swiftsuspenders/{injection → }/InjectorError.as
  5. +1 −1 src/org/swiftsuspenders/{injection → }/MappingEvent.as
  6. +2 −2 src/org/swiftsuspenders/{injection → }/dependencyproviders/ClassProvider.as
  7. +2 −2 src/org/swiftsuspenders/{injection → }/dependencyproviders/DependencyProvider.as
  8. +2 −2 src/org/swiftsuspenders/{injection → }/dependencyproviders/FactoryProvider.as
  9. +2 −2 src/org/swiftsuspenders/{injection → }/dependencyproviders/ForwardingProvider.as
  10. +2 −2 src/org/swiftsuspenders/{injection → }/dependencyproviders/InjectorUsingProvider.as
  11. +1 −1 src/org/swiftsuspenders/{injection → }/dependencyproviders/LocalOnlyProvider.as
  12. +3 −3 src/org/swiftsuspenders/{injection → }/dependencyproviders/OtherMappingProvider.as
  13. +3 −3 src/org/swiftsuspenders/{injection → }/dependencyproviders/SingletonProvider.as
  14. +1 −1 src/org/swiftsuspenders/{injection → }/dependencyproviders/SoftDependencyProvider.as
  15. +2 −2 src/org/swiftsuspenders/{injection → }/dependencyproviders/ValueProvider.as
  16. +1 −1 src/org/swiftsuspenders/reflection/DescribeTypeJSONReflector.as
  17. +1 −1 src/org/swiftsuspenders/reflection/DescribeTypeReflector.as
  18. +1 −1 src/org/swiftsuspenders/typedescriptions/ConstructorInjectionPoint.as
  19. +1 −1 src/org/swiftsuspenders/typedescriptions/InjectionPoint.as
  20. +3 −3 src/org/swiftsuspenders/typedescriptions/MethodInjectionPoint.as
  21. +1 −1 src/org/swiftsuspenders/typedescriptions/NoParamsConstructorInjectionPoint.as
  22. +3 −3 src/org/swiftsuspenders/typedescriptions/PropertyInjectionPoint.as
  23. +1 −1 src/org/swiftsuspenders/typedescriptions/TypeDescription.as
  24. +9 −2 test/SwiftSuspendersTestRunner.as
  25. +0 −2 test/org/swiftsuspenders/ApplicationDomainTests.as
  26. +0 −3 test/org/swiftsuspenders/ChildInjectorTests.as
  27. +5 −9 test/org/swiftsuspenders/DependencyProviderTests.as
  28. +0 −1 test/org/swiftsuspenders/DescribeTypeJSONReflectorTests.as
  29. +0 −1 test/org/swiftsuspenders/DescribeTypeReflectorTests.as
  30. +6 −9 test/org/swiftsuspenders/InjectionMappingTests.as
  31. +6 −13 test/org/swiftsuspenders/InjectorTests.as
  32. +9 −12 test/org/swiftsuspenders/ReflectorTests.as
  33. +1 −1 test/org/swiftsuspenders/suites/SwiftSuspendersTestSuite.as
  34. +1 −4 test/org/swiftsuspenders/support/AppDomainSupportSWFSprite.as
  35. +6 −21 test/org/swiftsuspenders/support/injectees/MultipleNamedSingletonsOfSameClassInjectee.as
  36. +6 −21 test/org/swiftsuspenders/support/injectees/OneNamedParameterConstructorInjectee.as
  37. +6 −21 test/org/swiftsuspenders/support/injectees/OneRequiredOneOptionalPropertyMethodInjectee.as
  38. +6 −21 test/org/swiftsuspenders/support/injectees/TwoNamedInterfaceFieldsInjectee.as
  39. +6 −21 test/org/swiftsuspenders/support/injectees/TwoNamedParametersConstructorInjectee.as
  40. +2 −2 test/org/swiftsuspenders/support/injectees/childinjectors/ChildInjectorCreatingProvider.as
  41. +1 −1 test/org/swiftsuspenders/support/injectees/childinjectors/InjectorInjectee.as
  42. +1 −1 test/org/swiftsuspenders/support/injectees/childinjectors/NestedInjectorInjectee.as
  43. +1 −1 test/org/swiftsuspenders/support/injectees/childinjectors/NestedNestedInjectorInjectee.as
  44. +2 −2 test/org/swiftsuspenders/support/providers/ClassNameStoringProvider.as
  45. +2 −2 test/org/swiftsuspenders/support/providers/UnknownParametersUsingProvider.as
  46. +1 −1 test/org/swiftsuspenders/typedescriptions/ConstructorInjectionPointTests.as
  47. +1 −1 test/org/swiftsuspenders/typedescriptions/MethodInjectionPointTest.as
  48. +1 −1 test/org/swiftsuspenders/typedescriptions/PostConstructInjectionPointTests.as
  49. +1 −1 test/org/swiftsuspenders/typedescriptions/PropertyInjectionPointTests.as
View
2 ...iftsuspenders/injection/InjectionEvent.as → src/org/swiftsuspenders/InjectionEvent.as
@@ -5,7 +5,7 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection
+package org.swiftsuspenders
{
import flash.events.Event;
View
43 ...tsuspenders/injection/InjectionMapping.as → src/org/swiftsuspenders/InjectionMapping.as
@@ -5,17 +5,16 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection
+package org.swiftsuspenders
{
- import org.swiftsuspenders.*;
- import org.swiftsuspenders.injection.dependencyproviders.ClassProvider;
- import org.swiftsuspenders.injection.dependencyproviders.DependencyProvider;
- import org.swiftsuspenders.injection.dependencyproviders.ForwardingProvider;
- import org.swiftsuspenders.injection.dependencyproviders.InjectorUsingProvider;
- import org.swiftsuspenders.injection.dependencyproviders.LocalOnlyProvider;
- import org.swiftsuspenders.injection.dependencyproviders.SingletonProvider;
- import org.swiftsuspenders.injection.dependencyproviders.SoftDependencyProvider;
- import org.swiftsuspenders.injection.dependencyproviders.ValueProvider;
+ import org.swiftsuspenders.dependencyproviders.ClassProvider;
+ import org.swiftsuspenders.dependencyproviders.DependencyProvider;
+ import org.swiftsuspenders.dependencyproviders.ForwardingProvider;
+ import org.swiftsuspenders.dependencyproviders.InjectorUsingProvider;
+ import org.swiftsuspenders.dependencyproviders.LocalOnlyProvider;
+ import org.swiftsuspenders.dependencyproviders.SingletonProvider;
+ import org.swiftsuspenders.dependencyproviders.SoftDependencyProvider;
+ import org.swiftsuspenders.dependencyproviders.ValueProvider;
import org.swiftsuspenders.utils.SsInternal;
public class InjectionMapping
@@ -54,7 +53,7 @@ package org.swiftsuspenders.injection
*
* @return The <code>InjectionMapping</code> the method is invoked on
*
- * @throws org.swiftsuspenders.injection.InjectorError Sealed mappings can't be changed in any way
+ * @throws org.swiftsuspenders.InjectorError Sealed mappings can't be changed in any way
*
* @see #toSingleton()
*/
@@ -75,7 +74,7 @@ package org.swiftsuspenders.injection
*
* @return The <code>InjectionMapping</code> the method is invoked on
*
- * @throws org.swiftsuspenders.injection.InjectorError Sealed mappings can't be changed in any way
+ * @throws org.swiftsuspenders.InjectorError Sealed mappings can't be changed in any way
*
* @see #toProvider()
*/
@@ -97,7 +96,7 @@ package org.swiftsuspenders.injection
*
* @return The <code>InjectionMapping</code> the method is invoked on
*
- * @throws org.swiftsuspenders.injection.InjectorError Sealed mappings can't be changed in any way
+ * @throws org.swiftsuspenders.InjectorError Sealed mappings can't be changed in any way
*
* @see #toProvider()
*/
@@ -117,7 +116,7 @@ package org.swiftsuspenders.injection
*
* @return The <code>InjectionMapping</code> the method is invoked on
*
- * @throws org.swiftsuspenders.injection.InjectorError Sealed mappings can't be changed in any way
+ * @throws org.swiftsuspenders.InjectorError Sealed mappings can't be changed in any way
*
* @see #toProvider()
*/
@@ -135,7 +134,7 @@ package org.swiftsuspenders.injection
*
* @return The <code>InjectionMapping</code> the method is invoked on
*
- * @throws org.swiftsuspenders.injection.InjectorError Sealed mappings can't be changed in any way
+ * @throws org.swiftsuspenders.InjectorError Sealed mappings can't be changed in any way
*/
public function toProvider(provider : DependencyProvider) : InjectionMapping
{
@@ -168,7 +167,7 @@ package org.swiftsuspenders.injection
*
* @return The <code>InjectionMapping</code> the method is invoked on
*
- * @throws org.swiftsuspenders.injection.InjectorError Sealed mappings can't be changed in any way
+ * @throws org.swiftsuspenders.InjectorError Sealed mappings can't be changed in any way
*
* @see #strong()
*/
@@ -192,7 +191,7 @@ package org.swiftsuspenders.injection
*
* @return The <code>InjectionMapping</code> the method is invoked on
*
- * @throws org.swiftsuspenders.injection.InjectorError Sealed mappings can't be changed in any way
+ * @throws org.swiftsuspenders.InjectorError Sealed mappings can't be changed in any way
*
* @see #soft()
*/
@@ -215,7 +214,7 @@ package org.swiftsuspenders.injection
*
* @return The <code>InjectionMapping</code> the method is invoked on
*
- * @throws org.swiftsuspenders.injection.InjectorError Sealed mappings can't be changed in any way
+ * @throws org.swiftsuspenders.InjectorError Sealed mappings can't be changed in any way
*
* @see #shared()
*/
@@ -240,7 +239,7 @@ package org.swiftsuspenders.injection
*
* @return The <code>InjectionMapping</code> the method is invoked on
*
- * @throws org.swiftsuspenders.injection.InjectorError Sealed mappings can't be changed in any way
+ * @throws org.swiftsuspenders.InjectorError Sealed mappings can't be changed in any way
*
* @see #local()
*/
@@ -269,7 +268,7 @@ package org.swiftsuspenders.injection
*
* @returns An internally created object that can be used as the key for unseal
*
- * @throws org.swiftsuspenders.injection.InjectorError Can't be invoked on a mapping that's already sealed
+ * @throws org.swiftsuspenders.InjectorError Can't be invoked on a mapping that's already sealed
*
* @see #unseal()
*/
@@ -292,8 +291,8 @@ package org.swiftsuspenders.injection
*
* @return The <code>InjectionMapping</code> the method is invoked on
*
- * @throws org.swiftsuspenders.injection.InjectorError Has to be invoked with the unique key object returned by an earlier call to <code>seal</code>
- * @throws org.swiftsuspenders.injection.InjectorError Can't unseal a mapping that's not sealed
+ * @throws org.swiftsuspenders.InjectorError Has to be invoked with the unique key object returned by an earlier call to <code>seal</code>
+ * @throws org.swiftsuspenders.InjectorError Can't unseal a mapping that's not sealed
*
* @see #seal()
*/
View
42 ...org/swiftsuspenders/injection/Injector.as → src/org/swiftsuspenders/Injector.as
@@ -5,7 +5,7 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection
+package org.swiftsuspenders
{
import avmplus.DescribeTypeJSON;
@@ -14,11 +14,11 @@ package org.swiftsuspenders.injection
import flash.utils.Dictionary;
import flash.utils.getQualifiedClassName;
- import org.swiftsuspenders.injection.dependencyproviders.ClassProvider;
+ import org.swiftsuspenders.dependencyproviders.ClassProvider;
- import org.swiftsuspenders.injection.dependencyproviders.DependencyProvider;
- import org.swiftsuspenders.injection.dependencyproviders.LocalOnlyProvider;
- import org.swiftsuspenders.injection.dependencyproviders.SoftDependencyProvider;
+ import org.swiftsuspenders.dependencyproviders.DependencyProvider;
+ import org.swiftsuspenders.dependencyproviders.LocalOnlyProvider;
+ import org.swiftsuspenders.dependencyproviders.SoftDependencyProvider;
import org.swiftsuspenders.reflection.DescribeTypeJSONReflector;
import org.swiftsuspenders.reflection.DescribeTypeReflector;
import org.swiftsuspenders.reflection.Reflector;
@@ -46,7 +46,7 @@ package org.swiftsuspenders.injection
*
* @eventType org.swiftsuspenders.InjectionEvent.POST_INSTANTIATE
*/
- [Event(name='postInstantiate', type='org.swiftsuspenders.injection.InjectionEvent')]
+ [Event(name='postInstantiate', type='org.swiftsuspenders.InjectionEvent')]
/**
* This event is dispatched each time the injector is about to inject into a class
*
@@ -62,7 +62,7 @@ package org.swiftsuspenders.injection
*
* @eventType org.swiftsuspenders.InjectionEvent.PRE_CONSTRUCT
*/
- [Event(name='preConstruct', type='org.swiftsuspenders.injection.InjectionEvent')]
+ [Event(name='preConstruct', type='org.swiftsuspenders.InjectionEvent')]
/**
* This event is dispatched each time the injector created and fully initialized a new instance
*
@@ -78,7 +78,7 @@ package org.swiftsuspenders.injection
*
* @eventType org.swiftsuspenders.InjectionEvent.POST_CONSTRUCT
*/
- [Event(name='postConstruct', type='org.swiftsuspenders.injection.InjectionEvent')]
+ [Event(name='postConstruct', type='org.swiftsuspenders.InjectionEvent')]
/**
* This event is dispatched each time the injector creates a new mapping for a type/ name
@@ -92,7 +92,7 @@ package org.swiftsuspenders.injection
*
* @eventType org.swiftsuspenders.MappingEvent.PRE_MAPPING_CREATE
*/
- [Event(name='preMappingCreate', type='org.swiftsuspenders.injection.MappingEvent')]
+ [Event(name='preMappingCreate', type='org.swiftsuspenders.MappingEvent')]
/**
* This event is dispatched each time the injector creates a new mapping for a type/ name
* combination, right after the mapping was created
@@ -105,7 +105,7 @@ package org.swiftsuspenders.injection
*
* @eventType org.swiftsuspenders.MappingEvent.POST_MAPPING_CREATE
*/
- [Event(name='postMappingCreate', type='org.swiftsuspenders.injection.MappingEvent')]
+ [Event(name='postMappingCreate', type='org.swiftsuspenders.MappingEvent')]
/**
* This event is dispatched each time an injector mapping is changed in any way, right before
* the change is applied.
@@ -118,7 +118,7 @@ package org.swiftsuspenders.injection
*
* @eventType org.swiftsuspenders.MappingEvent.PRE_MAPPING_CHANGE
*/
- [Event(name='preMappingChange', type='org.swiftsuspenders.injection.MappingEvent')]
+ [Event(name='preMappingChange', type='org.swiftsuspenders.MappingEvent')]
/**
* This event is dispatched each time an injector mapping is changed in any way, right after
* the change is applied.
@@ -131,7 +131,7 @@ package org.swiftsuspenders.injection
*
* @eventType org.swiftsuspenders.MappingEvent.POST_MAPPING_CHANGE
*/
- [Event(name='postMappingChange', type='org.swiftsuspenders.injection.MappingEvent')]
+ [Event(name='postMappingChange', type='org.swiftsuspenders.MappingEvent')]
/**
* This event is dispatched each time an injector mapping is removed, right after
* the mapping is deleted from the configuration.
@@ -144,7 +144,7 @@ package org.swiftsuspenders.injection
*
* @eventType org.swiftsuspenders.MappingEvent.POST_MAPPING_REMOVE
*/
- [Event(name='postMappingRemove', type='org.swiftsuspenders.injection.MappingEvent')]
+ [Event(name='postMappingRemove', type='org.swiftsuspenders.MappingEvent')]
/**
* This event is dispatched if an existing mapping is overridden without first unmapping it.
*
@@ -157,7 +157,7 @@ package org.swiftsuspenders.injection
*
* @eventType org.swiftsuspenders.MappingEvent.POST_MAPPING_REMOVE
*/
- [Event(name='mappingOverride', type='org.swiftsuspenders.injection.MappingEvent')]
+ [Event(name='mappingOverride', type='org.swiftsuspenders.MappingEvent')]
/**
* The <code>Injector</code> manages the mappings and acts as the central hub from which all
@@ -218,7 +218,7 @@ package org.swiftsuspenders.injection
* @return The <code>InjectionMapping</code> for the given request description
*
* @see #unmap()
- * @see org.swiftsuspenders.injection.InjectionMapping
+ * @see org.swiftsuspenders.InjectionMapping
*/
public function map(type : Class, name : String = '') : InjectionMapping
{
@@ -232,12 +232,12 @@ package org.swiftsuspenders.injection
* @param type The <code>class</code> describing the mapping
* @param name The name, as a case-sensitive string, to further describe the mapping
*
- * @throws org.swiftsuspenders.injection.InjectorError Descriptions that are not mapped can't be unmapped
- * @throws org.swiftsuspenders.injection.InjectorError Sealed mappings have to be unsealed before unmapping them
+ * @throws org.swiftsuspenders.InjectorError Descriptions that are not mapped can't be unmapped
+ * @throws org.swiftsuspenders.InjectorError Sealed mappings have to be unsealed before unmapping them
*
* @see #map()
- * @see org.swiftsuspenders.injection.InjectionMapping
- * @see org.swiftsuspenders.injection.InjectionMapping#unseal()
+ * @see org.swiftsuspenders.InjectionMapping
+ * @see org.swiftsuspenders.InjectionMapping#unseal()
*/
public function unmap(type : Class, name : String = '') : void
{
@@ -301,7 +301,7 @@ package org.swiftsuspenders.injection
*
* @return The mapping for the specified dependency class
*
- * @throws org.swiftsuspenders.injection.InjectorError When no mapping was found for the specified dependency
+ * @throws org.swiftsuspenders.InjectorError When no mapping was found for the specified dependency
*/
public function getMapping(type : Class, name : String = '') : InjectionMapping
{
@@ -320,7 +320,7 @@ package org.swiftsuspenders.injection
*
* @param target The instance to inject into
*
- * @throws org.swiftsuspenders.injection.InjectorError The <code>Injector</code> must have mappings for all injection points
+ * @throws org.swiftsuspenders.InjectorError The <code>Injector</code> must have mappings for all injection points
*
* @see #map()
*/
View
2 ...wiftsuspenders/injection/InjectorError.as → src/org/swiftsuspenders/InjectorError.as
@@ -5,7 +5,7 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection
+package org.swiftsuspenders
{
public class InjectorError extends Error
{
View
2 ...swiftsuspenders/injection/MappingEvent.as → src/org/swiftsuspenders/MappingEvent.as
@@ -5,7 +5,7 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection
+package org.swiftsuspenders
{
import flash.events.Event;
View
4 ...tion/dependencyproviders/ClassProvider.as → ...ders/dependencyproviders/ClassProvider.as
@@ -5,11 +5,11 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection.dependencyproviders
+package org.swiftsuspenders.dependencyproviders
{
import flash.utils.Dictionary;
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
import org.swiftsuspenders.utils.SsInternal;
public class ClassProvider implements DependencyProvider
View
4 ...dependencyproviders/DependencyProvider.as → ...dependencyproviders/DependencyProvider.as
@@ -5,11 +5,11 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection.dependencyproviders
+package org.swiftsuspenders.dependencyproviders
{
import flash.utils.Dictionary;
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
public interface DependencyProvider
{
View
4 ...on/dependencyproviders/FactoryProvider.as → ...rs/dependencyproviders/FactoryProvider.as
@@ -5,11 +5,11 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection.dependencyproviders
+package org.swiftsuspenders.dependencyproviders
{
import flash.utils.Dictionary;
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
public class FactoryProvider implements DependencyProvider
{
View
4 ...dependencyproviders/ForwardingProvider.as → ...dependencyproviders/ForwardingProvider.as
@@ -5,11 +5,11 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection.dependencyproviders
+package org.swiftsuspenders.dependencyproviders
{
import flash.utils.Dictionary;
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
public class ForwardingProvider implements DependencyProvider
{
View
4 ...endencyproviders/InjectorUsingProvider.as → ...endencyproviders/InjectorUsingProvider.as
@@ -5,11 +5,11 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection.dependencyproviders
+package org.swiftsuspenders.dependencyproviders
{
import flash.utils.Dictionary;
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
public class InjectorUsingProvider extends ForwardingProvider
{
View
2 .../dependencyproviders/LocalOnlyProvider.as → .../dependencyproviders/LocalOnlyProvider.as
@@ -5,7 +5,7 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection.dependencyproviders
+package org.swiftsuspenders.dependencyproviders
{
public class LocalOnlyProvider extends ForwardingProvider
{
View
6 ...pendencyproviders/OtherMappingProvider.as → ...pendencyproviders/OtherMappingProvider.as
@@ -5,12 +5,12 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection.dependencyproviders
+package org.swiftsuspenders.dependencyproviders
{
import flash.utils.Dictionary;
- import org.swiftsuspenders.injection.InjectionMapping;
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.InjectionMapping;
+ import org.swiftsuspenders.Injector;
public class OtherMappingProvider implements DependencyProvider
{
View
6 .../dependencyproviders/SingletonProvider.as → .../dependencyproviders/SingletonProvider.as
@@ -5,13 +5,13 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection.dependencyproviders
+package org.swiftsuspenders.dependencyproviders
{
import flash.utils.Dictionary;
import flash.utils.getQualifiedClassName;
- import org.swiftsuspenders.injection.Injector;
- import org.swiftsuspenders.injection.InjectorError;
+ import org.swiftsuspenders.Injector;
+ import org.swiftsuspenders.InjectorError;
import org.swiftsuspenders.typedescriptions.PreDestroyInjectionPoint;
import org.swiftsuspenders.typedescriptions.TypeDescription;
import org.swiftsuspenders.utils.SsInternal;
View
2 ...ndencyproviders/SoftDependencyProvider.as → ...ndencyproviders/SoftDependencyProvider.as
@@ -5,7 +5,7 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection.dependencyproviders
+package org.swiftsuspenders.dependencyproviders
{
public class SoftDependencyProvider extends ForwardingProvider
{
View
4 ...tion/dependencyproviders/ValueProvider.as → ...ders/dependencyproviders/ValueProvider.as
@@ -5,11 +5,11 @@
* in accordance with the terms of the license agreement accompanying it.
*/
-package org.swiftsuspenders.injection.dependencyproviders
+package org.swiftsuspenders.dependencyproviders
{
import flash.utils.Dictionary;
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
public class ValueProvider implements DependencyProvider
{
View
2 src/org/swiftsuspenders/reflection/DescribeTypeJSONReflector.as
@@ -12,7 +12,7 @@ package org.swiftsuspenders.reflection
import flash.utils.Dictionary;
import flash.utils.getQualifiedClassName;
- import org.swiftsuspenders.injection.InjectorError;
+ import org.swiftsuspenders.InjectorError;
import org.swiftsuspenders.typedescriptions.ConstructorInjectionPoint;
import org.swiftsuspenders.typedescriptions.MethodInjectionPoint;
import org.swiftsuspenders.typedescriptions.NoParamsConstructorInjectionPoint;
View
2 src/org/swiftsuspenders/reflection/DescribeTypeReflector.as
@@ -11,7 +11,7 @@ package org.swiftsuspenders.reflection
import flash.utils.describeType;
import flash.utils.getQualifiedClassName;
- import org.swiftsuspenders.injection.InjectorError;
+ import org.swiftsuspenders.InjectorError;
import org.swiftsuspenders.typedescriptions.ConstructorInjectionPoint;
import org.swiftsuspenders.typedescriptions.MethodInjectionPoint;
View
2 src/org/swiftsuspenders/typedescriptions/ConstructorInjectionPoint.as
@@ -9,7 +9,7 @@ package org.swiftsuspenders.typedescriptions
{
import flash.utils.Dictionary;
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
public class ConstructorInjectionPoint extends MethodInjectionPoint
{
View
2 src/org/swiftsuspenders/typedescriptions/InjectionPoint.as
@@ -9,7 +9,7 @@ package org.swiftsuspenders.typedescriptions
{
import flash.utils.Dictionary;
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
public class InjectionPoint
{
View
6 src/org/swiftsuspenders/typedescriptions/MethodInjectionPoint.as
@@ -11,9 +11,9 @@ package org.swiftsuspenders.typedescriptions
import flash.utils.Dictionary;
- import org.swiftsuspenders.injection.Injector;
- import org.swiftsuspenders.injection.InjectorError;
- import org.swiftsuspenders.injection.dependencyproviders.DependencyProvider;
+ import org.swiftsuspenders.Injector;
+ import org.swiftsuspenders.InjectorError;
+ import org.swiftsuspenders.dependencyproviders.DependencyProvider;
import org.swiftsuspenders.utils.SsInternal;
public class MethodInjectionPoint extends InjectionPoint
View
2 src/org/swiftsuspenders/typedescriptions/NoParamsConstructorInjectionPoint.as
@@ -7,7 +7,7 @@
package org.swiftsuspenders.typedescriptions
{
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
public class NoParamsConstructorInjectionPoint extends ConstructorInjectionPoint
{
View
6 src/org/swiftsuspenders/typedescriptions/PropertyInjectionPoint.as
@@ -10,9 +10,9 @@ package org.swiftsuspenders.typedescriptions
import flash.utils.Dictionary;
import flash.utils.getQualifiedClassName;
- import org.swiftsuspenders.injection.Injector;
- import org.swiftsuspenders.injection.InjectorError;
- import org.swiftsuspenders.injection.dependencyproviders.DependencyProvider;
+ import org.swiftsuspenders.Injector;
+ import org.swiftsuspenders.InjectorError;
+ import org.swiftsuspenders.dependencyproviders.DependencyProvider;
import org.swiftsuspenders.utils.SsInternal;
public class PropertyInjectionPoint extends InjectionPoint
View
2 src/org/swiftsuspenders/typedescriptions/TypeDescription.as
@@ -10,7 +10,7 @@ package org.swiftsuspenders.typedescriptions
import flash.utils.Dictionary;
import flash.utils.getQualifiedClassName;
- import org.swiftsuspenders.injection.InjectorError;
+ import org.swiftsuspenders.InjectorError;
public class TypeDescription
{
View
11 test/SwiftSuspendersTestRunner.as
@@ -1,12 +1,19 @@
+/*
+ * Copyright (c) 2012 the original author or authors
+ *
+ * Permission is hereby granted to use, modify, and distribute this file
+ * in accordance with the terms of the license agreement accompanying it.
+ */
+
package
{
import flash.display.Sprite;
-
+
import org.flexunit.internals.TraceListener;
import org.flexunit.listeners.CIListener;
import org.flexunit.runner.FlexUnitCore;
import org.swiftsuspenders.suites.SwiftSuspendersTestSuite;
-
+
public class SwiftSuspendersTestRunner extends Sprite
{
public function SwiftSuspendersTestRunner()
View
2 test/org/swiftsuspenders/ApplicationDomainTests.as
@@ -10,7 +10,6 @@ package org.swiftsuspenders
import flash.display.Loader;
import flash.events.Event;
import flash.events.TimerEvent;
- import flash.net.URLRequest;
import flash.system.ApplicationDomain;
import flash.system.LoaderContext;
import flash.system.System;
@@ -22,7 +21,6 @@ package org.swiftsuspenders
import flexunit.framework.Assert;
import org.flexunit.async.Async;
- import org.swiftsuspenders.injection.Injector;
import org.swiftsuspenders.support.injectees.ClassInjectee;
import org.swiftsuspenders.support.types.Clazz;
import org.swiftsuspenders.utils.SsInternal;
View
3 test/org/swiftsuspenders/ChildInjectorTests.as
@@ -9,9 +9,6 @@ package org.swiftsuspenders
{
import flexunit.framework.Assert;
- import org.swiftsuspenders.injection.InjectionMapping;
- import org.swiftsuspenders.injection.Injector;
-
import org.swiftsuspenders.support.injectees.ClassInjectee;
import org.swiftsuspenders.support.injectees.childinjectors.ChildInjectorCreatingProvider;
import org.swiftsuspenders.support.injectees.childinjectors.InjectorInjectee;
View
14 test/org/swiftsuspenders/DependencyProviderTests.as
@@ -13,14 +13,10 @@ package org.swiftsuspenders
import org.hamcrest.assertThat;
import org.hamcrest.object.hasPropertyWithValue;
- import org.swiftsuspenders.injection.InjectorError;
-
- import org.swiftsuspenders.injection.dependencyproviders.ClassProvider;
- import org.swiftsuspenders.injection.dependencyproviders.OtherMappingProvider;
- import org.swiftsuspenders.injection.dependencyproviders.SingletonProvider;
- import org.swiftsuspenders.injection.dependencyproviders.ValueProvider;
- import org.swiftsuspenders.injection.InjectionMapping;
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.dependencyproviders.ClassProvider;
+ import org.swiftsuspenders.dependencyproviders.OtherMappingProvider;
+ import org.swiftsuspenders.dependencyproviders.SingletonProvider;
+ import org.swiftsuspenders.dependencyproviders.ValueProvider;
import org.swiftsuspenders.support.injectees.ClassInjectee;
import org.swiftsuspenders.support.providers.ClassNameStoringProvider;
import org.swiftsuspenders.support.types.Clazz;
@@ -102,7 +98,7 @@ package org.swiftsuspenders
provider.destroy();
assertThat(singleton, hasPropertyWithValue("preDestroyCalled", true));
}
- [Test(expects="org.swiftsuspenders.injection.InjectorError")]
+ [Test(expects="org.swiftsuspenders.InjectorError")]
public function usingDestroyedSingletonProviderThrows() : void
{
const provider : SingletonProvider = new SingletonProvider(Clazz, injector);
View
1 test/org/swiftsuspenders/DescribeTypeJSONReflectorTests.as
@@ -7,7 +7,6 @@
package org.swiftsuspenders
{
- import org.swiftsuspenders.injection.Injector;
import org.swiftsuspenders.reflection.DescribeTypeJSONReflector;
public class DescribeTypeJSONReflectorTests extends ReflectorTests
View
1 test/org/swiftsuspenders/DescribeTypeReflectorTests.as
@@ -7,7 +7,6 @@
package org.swiftsuspenders
{
- import org.swiftsuspenders.injection.Injector;
import org.swiftsuspenders.reflection.DescribeTypeReflector;
public class DescribeTypeReflectorTests extends ReflectorTests
View
15 test/org/swiftsuspenders/InjectionMappingTests.as
@@ -15,11 +15,8 @@ package org.swiftsuspenders
import org.hamcrest.object.hasProperties;
import org.hamcrest.object.isTrue;
import org.hamcrest.object.notNullValue;
- import org.swiftsuspenders.injection.dependencyproviders.ClassProvider;
- import org.swiftsuspenders.injection.dependencyproviders.SingletonProvider;
- import org.swiftsuspenders.injection.InjectionMapping;
- import org.swiftsuspenders.injection.Injector;
- import org.swiftsuspenders.injection.InjectorError;
+ import org.swiftsuspenders.dependencyproviders.ClassProvider;
+ import org.swiftsuspenders.dependencyproviders.SingletonProvider;
import org.swiftsuspenders.support.types.Clazz;
import org.swiftsuspenders.support.types.Interface;
import org.swiftsuspenders.utils.SsInternal;
@@ -127,14 +124,14 @@ package org.swiftsuspenders
assertThat(testedMethods, hasProperties(methods));
}
- [Test(expects='org.swiftsuspenders.injection.InjectorError')]
+ [Test(expects='org.swiftsuspenders.InjectorError')]
public function unmappingASealedMappingThrows() : void
{
injector.map(Interface).seal();
injector.unmap(Interface);
}
- [Test(expects='org.swiftsuspenders.injection.InjectorError')]
+ [Test(expects='org.swiftsuspenders.InjectorError')]
public function doubleSealingAMappingThrows() : void
{
injector.map(Interface).seal();
@@ -148,14 +145,14 @@ package org.swiftsuspenders
assertThat(config.seal(), notNullValue());
}
- [Test(expects='org.swiftsuspenders.injection.InjectorError')]
+ [Test(expects='org.swiftsuspenders.InjectorError')]
public function unsealingAMappingWithoutKeyThrows() : void
{
injector.map(Interface).seal();
injector.map(Interface).unseal(null);
}
- [Test(expects='org.swiftsuspenders.injection.InjectorError')]
+ [Test(expects='org.swiftsuspenders.InjectorError')]
public function unsealingAMappingWithWrongKeyThrows() : void
{
injector.map(Interface).seal();
View
19 test/org/swiftsuspenders/InjectorTests.as
@@ -8,8 +8,6 @@
package org.swiftsuspenders
{
import flash.events.Event;
- import flash.utils.Dictionary;
- import flash.utils.getQualifiedClassName;
import flexunit.framework.Assert;
@@ -21,12 +19,7 @@ package org.swiftsuspenders
import org.hamcrest.object.equalTo;
import org.hamcrest.object.hasPropertyWithValue;
import org.hamcrest.object.isTrue;
- import org.swiftsuspenders.injection.dependencyproviders.OtherMappingProvider;
- import org.swiftsuspenders.injection.InjectionEvent;
- import org.swiftsuspenders.injection.InjectionMapping;
- import org.swiftsuspenders.injection.Injector;
- import org.swiftsuspenders.injection.InjectorError;
- import org.swiftsuspenders.injection.MappingEvent;
+ import org.swiftsuspenders.dependencyproviders.OtherMappingProvider;
import org.swiftsuspenders.support.injectees.ClassInjectee;
import org.swiftsuspenders.support.injectees.ComplexClassInjectee;
import org.swiftsuspenders.support.injectees.InterfaceInjectee;
@@ -459,7 +452,7 @@ package org.swiftsuspenders
injectee.property, value);
}
- [Test(expects="org.swiftsuspenders.injection.InjectorError")]
+ [Test(expects="org.swiftsuspenders.InjectorError")]
public function haltOnMissingInterfaceDependency():void
{
injector.injectInto(new InterfaceInjectee());
@@ -473,7 +466,7 @@ package org.swiftsuspenders
assertThat(injectee.property, isA(Clazz));
}
- [Test(expects="org.swiftsuspenders.injection.InjectorError")]
+ [Test(expects="org.swiftsuspenders.InjectorError")]
public function haltOnMissingNamedDependency():void
{
var injectee:NamedClassInjectee = new NamedClassInjectee();
@@ -541,7 +534,7 @@ package org.swiftsuspenders
Assert.assertTrue(injector.satisfies(Clazz, 'namedClass'));
}
- [Test(expects="org.swiftsuspenders.injection.InjectorError")]
+ [Test(expects="org.swiftsuspenders.InjectorError")]
public function getMappingResponseFailsForUnmappedNamedClass():void
{
injector.getInstance(Clazz, 'namedClass');
@@ -575,7 +568,7 @@ package org.swiftsuspenders
injectee1.property == injectee2.property);
}
- [Test(expects="org.swiftsuspenders.injection.InjectorError")]
+ [Test(expects="org.swiftsuspenders.InjectorError")]
public function instantiateThrowsMeaningfulErrorOnInterfaceInstantiation() : void
{
injector.getInstance(Interface);
@@ -630,7 +623,7 @@ package org.swiftsuspenders
Assert.assertNotNull(injector.getInstance(Interface));
}
- [Test(expects="org.swiftsuspenders.injection.InjectorError")]
+ [Test(expects="org.swiftsuspenders.InjectorError")]
public function localMappingsArentSharedWithChildInjectors() : void
{
const childInjector : Injector = injector.createChildInjector();
View
21 test/org/swiftsuspenders/ReflectorTests.as
@@ -11,20 +11,8 @@ package org.swiftsuspenders
import org.hamcrest.assertThat;
import org.hamcrest.core.isA;
import org.hamcrest.object.hasProperties;
- import org.hamcrest.object.isTrue;
import org.hamcrest.object.notNullValue;
- import org.swiftsuspenders.injection.Injector;
import org.swiftsuspenders.reflection.Reflector;
- import org.swiftsuspenders.support.injectees.PostConstructGetterInjectee;
- import org.swiftsuspenders.support.injectees.PostConstructInjectedVarInjectee;
- import org.swiftsuspenders.support.injectees.PostConstructVarInjectee;
- import org.swiftsuspenders.support.injectees.UnknownInjectParametersInjectee;
- import org.swiftsuspenders.support.injectees.UnknownInjectParametersListInjectee;
- import org.swiftsuspenders.typedescriptions.ConstructorInjectionPoint;
- import org.swiftsuspenders.typedescriptions.InjectionPoint;
- import org.swiftsuspenders.typedescriptions.NoParamsConstructorInjectionPoint;
- import org.swiftsuspenders.typedescriptions.PostConstructInjectionPoint;
- import org.swiftsuspenders.typedescriptions.PreDestroyInjectionPoint;
import org.swiftsuspenders.support.injectees.InterfaceInjectee;
import org.swiftsuspenders.support.injectees.NamedInterfaceInjectee;
import org.swiftsuspenders.support.injectees.OneNamedParameterConstructorInjectee;
@@ -36,10 +24,19 @@ package org.swiftsuspenders
import org.swiftsuspenders.support.injectees.OptionalOneRequiredParameterMethodInjectee;
import org.swiftsuspenders.support.injectees.OrderedPostConstructInjectee;
import org.swiftsuspenders.support.injectees.OrderedPreDestroyInjectee;
+ import org.swiftsuspenders.support.injectees.PostConstructGetterInjectee;
+ import org.swiftsuspenders.support.injectees.PostConstructVarInjectee;
import org.swiftsuspenders.support.injectees.TwoNamedParametersMethodInjectee;
+ import org.swiftsuspenders.support.injectees.UnknownInjectParametersInjectee;
+ import org.swiftsuspenders.support.injectees.UnknownInjectParametersListInjectee;
import org.swiftsuspenders.support.types.Clazz;
import org.swiftsuspenders.support.types.ClazzExtension;
import org.swiftsuspenders.support.types.Interface;
+ import org.swiftsuspenders.typedescriptions.ConstructorInjectionPoint;
+ import org.swiftsuspenders.typedescriptions.InjectionPoint;
+ import org.swiftsuspenders.typedescriptions.NoParamsConstructorInjectionPoint;
+ import org.swiftsuspenders.typedescriptions.PostConstructInjectionPoint;
+ import org.swiftsuspenders.typedescriptions.PreDestroyInjectionPoint;
import org.swiftsuspenders.typedescriptions.PropertyInjectionPoint;
import org.swiftsuspenders.typedescriptions.TypeDescription;
import org.swiftsuspenders.utils.SsInternal;
View
2 test/org/swiftsuspenders/suites/SwiftSuspendersTestSuite.as
@@ -12,9 +12,9 @@ package org.swiftsuspenders.suites
import org.swiftsuspenders.DependencyProviderTests;
import org.swiftsuspenders.DescribeTypeJSONReflectorTests;
import org.swiftsuspenders.DescribeTypeReflectorTests;
- import org.swiftsuspenders.ReflectorBaseTests;
import org.swiftsuspenders.InjectionMappingTests;
import org.swiftsuspenders.InjectorTests;
+ import org.swiftsuspenders.ReflectorBaseTests;
import org.swiftsuspenders.typedescriptions.ConstructorInjectionPointTests;
import org.swiftsuspenders.typedescriptions.MethodInjectionPointTest;
import org.swiftsuspenders.typedescriptions.NoParamsConstructorInjectionPointTests;
View
5 test/org/swiftsuspenders/support/AppDomainSupportSWFSprite.as
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011 the original author or authors
+ * Copyright (c) 2012 the original author or authors
*
* Permission is hereby granted to use, modify, and distribute this file
* in accordance with the terms of the license agreement accompanying it.
@@ -8,9 +8,6 @@
package org.swiftsuspenders.support
{
import flash.display.Sprite;
- import flash.events.Event;
- import flash.system.ApplicationDomain;
- import flash.system.Security;
public class AppDomainSupportSWFSprite extends Sprite
{
View
27 test/org/swiftsuspenders/support/injectees/MultipleNamedSingletonsOfSameClassInjectee.as
@@ -1,30 +1,15 @@
/*
-* Copyright (c) 2009 the original author or authors
-*
-* Permission is hereby granted, free of charge, to any person obtaining a copy
-* of this software and associated documentation files (the "Software"), to deal
-* in the Software without restriction, including without limitation the rights
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-* copies of the Software, and to permit persons to whom the Software is
-* furnished to do so, subject to the following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-* THE SOFTWARE.
-*/
+ * Copyright (c) 2012 the original author or authors
+ *
+ * Permission is hereby granted to use, modify, and distribute this file
+ * in accordance with the terms of the license agreement accompanying it.
+ */
package org.swiftsuspenders.support.injectees
{
import org.swiftsuspenders.support.types.Interface;
import org.swiftsuspenders.support.types.Interface2;
-
+
public class MultipleNamedSingletonsOfSameClassInjectee
{
[Inject]
View
27 test/org/swiftsuspenders/support/injectees/OneNamedParameterConstructorInjectee.as
@@ -1,29 +1,14 @@
/*
-* Copyright (c) 2009 the original author or authors
-*
-* Permission is hereby granted, free of charge, to any person obtaining a copy
-* of this software and associated documentation files (the "Software"), to deal
-* in the Software without restriction, including without limitation the rights
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-* copies of the Software, and to permit persons to whom the Software is
-* furnished to do so, subject to the following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-* THE SOFTWARE.
-*/
+ * Copyright (c) 2012 the original author or authors
+ *
+ * Permission is hereby granted to use, modify, and distribute this file
+ * in accordance with the terms of the license agreement accompanying it.
+ */
package org.swiftsuspenders.support.injectees
{
import org.swiftsuspenders.support.types.Clazz;
-
+
[Inject(name='namedDependency')]
public class OneNamedParameterConstructorInjectee
{
View
27 test/org/swiftsuspenders/support/injectees/OneRequiredOneOptionalPropertyMethodInjectee.as
@@ -1,30 +1,15 @@
/*
-* Copyright (c) 2009 the original author or authors
-*
-* Permission is hereby granted, free of charge, to any person obtaining a copy
-* of this software and associated documentation files (the "Software"), to deal
-* in the Software without restriction, including without limitation the rights
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-* copies of the Software, and to permit persons to whom the Software is
-* furnished to do so, subject to the following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-* THE SOFTWARE.
-*/
+ * Copyright (c) 2012 the original author or authors
+ *
+ * Permission is hereby granted to use, modify, and distribute this file
+ * in accordance with the terms of the license agreement accompanying it.
+ */
package org.swiftsuspenders.support.injectees
{
import org.swiftsuspenders.support.types.Clazz;
import org.swiftsuspenders.support.types.Interface;
-
+
public class OneRequiredOneOptionalPropertyMethodInjectee
{
private var m_dependency : Clazz;
View
27 test/org/swiftsuspenders/support/injectees/TwoNamedInterfaceFieldsInjectee.as
@@ -1,29 +1,14 @@
/*
-* Copyright (c) 2009 the original author or authors
-*
-* Permission is hereby granted, free of charge, to any person obtaining a copy
-* of this software and associated documentation files (the "Software"), to deal
-* in the Software without restriction, including without limitation the rights
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-* copies of the Software, and to permit persons to whom the Software is
-* furnished to do so, subject to the following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-* THE SOFTWARE.
-*/
+ * Copyright (c) 2012 the original author or authors
+ *
+ * Permission is hereby granted to use, modify, and distribute this file
+ * in accordance with the terms of the license agreement accompanying it.
+ */
package org.swiftsuspenders.support.injectees
{
import org.swiftsuspenders.support.types.Interface;
-
+
public class TwoNamedInterfaceFieldsInjectee
{
[Inject(name="Name1")]
View
27 test/org/swiftsuspenders/support/injectees/TwoNamedParametersConstructorInjectee.as
@@ -1,29 +1,14 @@
/*
-* Copyright (c) 2009 the original author or authors
-*
-* Permission is hereby granted, free of charge, to any person obtaining a copy
-* of this software and associated documentation files (the "Software"), to deal
-* in the Software without restriction, including without limitation the rights
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-* copies of the Software, and to permit persons to whom the Software is
-* furnished to do so, subject to the following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-* THE SOFTWARE.
-*/
+ * Copyright (c) 2012 the original author or authors
+ *
+ * Permission is hereby granted to use, modify, and distribute this file
+ * in accordance with the terms of the license agreement accompanying it.
+ */
package org.swiftsuspenders.support.injectees
{
import org.swiftsuspenders.support.types.Clazz;
-
+
[Inject(name='namedDependency', name='namedDependency2')]
public class TwoNamedParametersConstructorInjectee
{
View
4 test/org/swiftsuspenders/support/injectees/childinjectors/ChildInjectorCreatingProvider.as
@@ -9,8 +9,8 @@ package org.swiftsuspenders.support.injectees.childinjectors
{
import flash.utils.Dictionary;
- import org.swiftsuspenders.injection.Injector;
- import org.swiftsuspenders.injection.dependencyproviders.DependencyProvider;
+ import org.swiftsuspenders.Injector;
+ import org.swiftsuspenders.dependencyproviders.DependencyProvider;
public class ChildInjectorCreatingProvider implements DependencyProvider
{
View
2 test/org/swiftsuspenders/support/injectees/childinjectors/InjectorInjectee.as
@@ -7,7 +7,7 @@
package org.swiftsuspenders.support.injectees.childinjectors
{
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
public class InjectorInjectee
{
View
2 test/org/swiftsuspenders/support/injectees/childinjectors/NestedInjectorInjectee.as
@@ -7,7 +7,7 @@
package org.swiftsuspenders.support.injectees.childinjectors
{
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
public class NestedInjectorInjectee
{
View
2 test/org/swiftsuspenders/support/injectees/childinjectors/NestedNestedInjectorInjectee.as
@@ -7,7 +7,7 @@
package org.swiftsuspenders.support.injectees.childinjectors
{
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
public class NestedNestedInjectorInjectee
{
View
4 test/org/swiftsuspenders/support/providers/ClassNameStoringProvider.as
@@ -10,8 +10,8 @@ package org.swiftsuspenders.support.providers
import flash.utils.Dictionary;
import flash.utils.getQualifiedClassName;
- import org.swiftsuspenders.injection.Injector;
- import org.swiftsuspenders.injection.dependencyproviders.DependencyProvider;
+ import org.swiftsuspenders.Injector;
+ import org.swiftsuspenders.dependencyproviders.DependencyProvider;
import org.swiftsuspenders.support.types.Clazz;
public class ClassNameStoringProvider implements DependencyProvider
View
4 test/org/swiftsuspenders/support/providers/UnknownParametersUsingProvider.as
@@ -9,8 +9,8 @@ package org.swiftsuspenders.support.providers
{
import flash.utils.Dictionary;
- import org.swiftsuspenders.injection.Injector;
- import org.swiftsuspenders.injection.dependencyproviders.DependencyProvider;
+ import org.swiftsuspenders.Injector;
+ import org.swiftsuspenders.dependencyproviders.DependencyProvider;
import org.swiftsuspenders.support.types.Clazz;
public class UnknownParametersUsingProvider implements DependencyProvider
View
2 test/org/swiftsuspenders/typedescriptions/ConstructorInjectionPointTests.as
@@ -11,7 +11,7 @@ package org.swiftsuspenders.typedescriptions
import org.hamcrest.assertThat;
import org.hamcrest.core.isA;
import org.hamcrest.object.equalTo;
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
import org.swiftsuspenders.support.injectees.TwoOptionalParametersConstructorInjectee;
import org.swiftsuspenders.support.injectees.TwoParametersConstructorInjectee;
import org.swiftsuspenders.support.types.Clazz;
View
2 test/org/swiftsuspenders/typedescriptions/MethodInjectionPointTest.as
@@ -8,7 +8,7 @@
package org.swiftsuspenders.typedescriptions
{
import org.flexunit.Assert;
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
import org.swiftsuspenders.support.injectees.OneRequiredOneOptionalPropertyMethodInjectee;
import org.swiftsuspenders.support.injectees.OptionalOneRequiredParameterMethodInjectee;
import org.swiftsuspenders.support.injectees.TwoParametersMethodInjectee;
View
2 test/org/swiftsuspenders/typedescriptions/PostConstructInjectionPointTests.as
@@ -8,7 +8,7 @@
package org.swiftsuspenders.typedescriptions
{
import org.flexunit.Assert;
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
import org.swiftsuspenders.support.injectees.ClassInjectee;
import org.swiftsuspenders.support.types.Clazz;
import org.swiftsuspenders.utils.SsInternal;
View
2 test/org/swiftsuspenders/typedescriptions/PropertyInjectionPointTests.as
@@ -8,7 +8,7 @@
package org.swiftsuspenders.typedescriptions
{
import org.flexunit.Assert;
- import org.swiftsuspenders.injection.Injector;
+ import org.swiftsuspenders.Injector;
import org.swiftsuspenders.support.injectees.ClassInjectee;
import org.swiftsuspenders.support.injectees.InterfaceInjectee;
import org.swiftsuspenders.support.types.Clazz;

0 comments on commit fd6e8fc

Please sign in to comment.
Something went wrong with that request. Please try again.