Questions tagged [swiftsuspenders]
4 questions
1
vote
2 answers
SwiftSuspenders not working like it should?
I'm just getting my feet wet with trying to use swift suspenders for an AS3 project but my injections are null when I try to access them. It only works when I use injector.injectInto() explicitly to inject into the object that should have a…

BadmintonCat
- 9,416
- 14
- 78
- 129
1
vote
1 answer
SwiftSuspenders: “mutually injecting” classes?
Does SwiftSuspenders support “mutually injecting” classes?
For example, if class A injects an instance of B, and B injects an instance of A:
class A {
[Inject]
public var b:B;
}
class B {
[Inject]
public var a:A;
}
And, if not, how…

David Wolever
- 148,955
- 89
- 346
- 502
0
votes
2 answers
Is better/faster/lighter to inject with metatag or with getters? actionscript 3 / flex
I would like to know which one is better/faster/lighter?
[Inject]
public var myInjection:MyInjection;
OR
[Inject]
public var injector:IInjector;
protected var _myInjection:MyInjection;
public function get myInjection():MyInjection{
…

Totty.js
- 15,563
- 31
- 103
- 175
0
votes
1 answer
swiftsuspenders constructor parameters?
Once I read in some google document about coding guidelines that every new instance of a class should go from a factory class, and I use SwiftSuspenders for it.
Now my question is, is it possible to create a new instance of an object that requires…

ThanksBro
- 911
- 1
- 7
- 20