This repository has been archived by the owner on Jul 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes the injector's behavior to automatically create instances of …
…unmapped classes when they're requested as dependencies while still throwing for unmapped interfaces Fixes #36
- Loading branch information
1 parent
4f3ed47
commit b332ba2
Showing
10 changed files
with
106 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
test/org/swiftsuspenders/support/injectees/OptionalClassInjectee.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
package org.swiftsuspenders.support.injectees | ||
{ | ||
import org.swiftsuspenders.support.types.Clazz; | ||
import org.swiftsuspenders.support.types.Interface; | ||
|
||
public class OptionalClassInjectee | ||
{ | ||
[Inject(optional=true)] | ||
public var property:Clazz; | ||
public var property:Interface; | ||
} | ||
} |
10 changes: 5 additions & 5 deletions
10
test/org/swiftsuspenders/support/injectees/OptionalOneRequiredParameterMethodInjectee.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.