Package | org.spicefactory.parsley.core.bootstrap.impl |
Class | public class ServiceFactory |
Inheritance | ServiceFactory Object |
Property | Defined By | ||
---|---|---|---|
implementation : Class [read-only]
The class that implements the service. | ServiceFactory |
Method | Defined By | ||
---|---|---|---|
ServiceFactory(implementation:Class, params:Array = null, requiredInterface:Class = null)
Creates a new instance. | ServiceFactory | ||
newInstance(... params):Object
Creates a new instance of the service. | ServiceFactory |
implementation | property |
implementation:Class
[read-only] The class that implements the service.
public function get implementation():Class
ServiceFactory | () | Constructor |
public function ServiceFactory(implementation:Class, params:Array = null, requiredInterface:Class = null)
Creates a new instance.
Parametersimplementation:Class — the class that implements the service
| |
params:Array (default = null ) — the parameters to pass to the constructor of the service
| |
requiredInterface:Class (default = null ) — the interface the service implementation must implement
|
newInstance | () | method |
public function newInstance(... params):Object
Creates a new instance of the service.
Parameters
... params — additional parameters to pass to the constructor of the service, prepended to the ones
specified when creating this factory.
|
Object |