Packageorg.spicefactory.parsley.core.builder.ref
Classpublic class ImplicitObjectTypeReference
InheritanceImplicitObjectTypeReference Inheritance ObjectTypeReference Inheritance Object
Implements ImplicitTypeReference

A type reference that relies on the target type getting deduced from the member (property, method, constructor) it gets injected into.



Public Properties
 PropertyDefined By
 Inheritedrequired : Boolean
[read-only] Indicates whether this instance represents a required dependency.
ObjectTypeReference
 Inheritedtype : Class
[read-only] The type of the referenced object.
ObjectTypeReference
Public Methods
 MethodDefined By
  
ImplicitObjectTypeReference(required:Boolean = true, defaultValue:Object = null)
Creates a new instance.
ImplicitObjectTypeReference
  
expectedType(type:Class):void
Invoked by the container to pass the target type deduced by reflecting on the member.
ImplicitObjectTypeReference
 Inherited
ObjectTypeReference
Protected Methods
 MethodDefined By
 Inherited
setType(type:Class):void
Sets the type of the referenced object.
ObjectTypeReference
Constructor Detail
ImplicitObjectTypeReference()Constructor
public function ImplicitObjectTypeReference(required:Boolean = true, defaultValue:Object = null)

Creates a new instance.

Parameters
required:Boolean (default = true) — whether this instance represents a required dependency
 
defaultValue:Object (default = null) — the value to inject when no matching type can be found
Method Detail
expectedType()method
public function expectedType(type:Class):void

Invoked by the container to pass the target type deduced by reflecting on the member.

Parameters

type:Class — the target type as determined by the container