Package | org.spicefactory.parsley.core.builder.ref |
Class | public class ObjectTypeReference |
Inheritance | ObjectTypeReference Object |
Implements | ResolvableValue |
Subclasses | ImplicitObjectTypeReference |
Property | Defined By | ||
---|---|---|---|
required : Boolean [read-only]
Indicates whether this instance represents a required dependency. | ObjectTypeReference | ||
type : Class [read-only]
The type of the referenced object. | ObjectTypeReference |
Method | Defined By | ||
---|---|---|---|
ObjectTypeReference(type:Class, required:Boolean = true, defaultValue:Object = null)
Creates a new instance. | ObjectTypeReference | ||
resolve(target:ManagedObject):* | ObjectTypeReference |
Method | Defined By | ||
---|---|---|---|
setType(type:Class):void
Sets the type of the referenced object. | ObjectTypeReference |
required | property |
required:Boolean
[read-only] Indicates whether this instance represents a required dependency.
public function get required():Boolean
type | property |
type:Class
[read-only] The type of the referenced object.
public function get type():Class
ObjectTypeReference | () | Constructor |
public function ObjectTypeReference(type:Class, required:Boolean = true, defaultValue:Object = null)
Creates a new instance.
Parameterstype:Class — the type of the referenced object
| |
required:Boolean (default = true ) — whether this instance represents a required dependency
| |
defaultValue:Object (default = null )
|
resolve | () | method |
setType | () | method |
protected function setType(type:Class):void
Sets the type of the referenced object. May be used by subclasses that determine the expected type lazily.
Parameters
type:Class — the type of the referenced object
|