We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It'd be handy that ObjectBuilder can generate object based on the given factoryMethod. It's used for singleton.
For example,
package { public class MySingletonClass { private var _singleton:MySingletonClass = null; public MySingletonClass() { new SingletonEnforcer(); } public static function instance():MySingletonClass { if (_singleton == null) { _singleton = new MySingletonClass(); } return _singleton; } } } class SingletonEnforcer {}
<ObjectBuilder generator="{MySingletonClass}" factoryMethod="instance" />
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It'd be handy that ObjectBuilder can generate object based on the given factoryMethod. It's used for singleton.
For example,
The text was updated successfully, but these errors were encountered: