资 源 简 介
Very thin and fast mini-framework with basic IoC functionality.
Example of usage
Define your container factory class
```
package
{
public final class Config
{
[Singleton]
[onCreate(name="init")]
[onDestroy(name="destroy")]
public function someClass():SomeClass
{
return new SomeClass("test");
}
[onCreate(name="init")]
public function otherClass():SomeOtherClass
{
return new SomeOtherClass();
}
}
}
```
As you may guess, definitions like init function, singleton or destroy function for cached instances are placed in the configuration class as meta-tags.
Now, we define our test classes "SomeClass" and "SomeOtherClass"
SomeClass
```
package
{
public class SomeClass
{
private var m_arg:String;
private static var cnt:uint = 0;
public function SomeClass(Arg:String)
{
m_arg = Arg;
cnt++;
}
public func