Packageorg.spicefactory.parsley.core.context.provider
Interfacepublic interface ObjectProvider

Provider for a (possibly lazily initializing) instance. A provider for an object living in a Parsley Context can be obtained with ObjectDefinitionRegistry.createObjectProvider. A simple wrapper for an existing instance can be obtained with Provider.forInstance.



Public Properties
 PropertyDefined By
  instance : Object
[read-only] The actual instance.
ObjectProvider
  type : ClassInfo
[read-only] The type of the instance.
ObjectProvider
Property Detail
instanceproperty
instance:Object  [read-only]

The actual instance. May be null if it is a lazy initializing provider.


Implementation
    public function get instance():Object
typeproperty 
type:ClassInfo  [read-only]

The type of the instance. This property must be set even if the actual instance does not exist yet.


Implementation
    public function get type():ClassInfo