Immutable interface.

See also:

  • com.domwires.core.factory.IAppFactory

Methods

addListener(listener:IInjectorListener):Bool

getAllPoolItemsAreBusy<T>(type:ClassRef<T>):Bool

Parameters:

type

Returns:

true, if all pool items are busy.

getAllPoolItemsAreBusyByClassName(className:String):Bool

@:value({ ignorePool : false, targetType : null })getInstance<T>(type:ClassRef<T>, ?name:MappingName, ?targetType:Class<Dynamic>, ignorePool:Bool = false):T

@:value({ ignorePool : false, shouldThrowAnError : true, targetType : null })getInstanceWithClassName<T>(className:ClassName, ?name:MappingName, ?targetType:Class<Dynamic>, shouldThrowAnError:Bool = true, ignorePool:Bool = false):T

getOrCreateNewInstance<T>(type:Class<T>):T

getPoolBusyInstanceCount<T>(type:ClassRef<T>):Int

Parameters:

type

Returns:

count of busy object in pool

getPoolCapacity<T>(type:ClassRef<T>):Int

Parameters:

type

Returns:

pool capacity.

getPoolCapacityByClassName<T>(className:String):Int

getPoolInstanceCount<T>(type:ClassRef<T>):Int

Returns total count of instances in pool. @return

Parameters:

type

getPoolInstanceCountByClassName<T>(className:String):Int

hasDirectMapping<T>(type:ClassRef<T>, ?name:MappingName):Bool

hasMapping<T>(type:ClassRef<T>, ?name:MappingName):Bool

hasPoolForType<T>(type:ClassRef<T>):Bool

Parameters:

type

Returns:

true, if IAppFactory has registered pool for provided type.

hasPoolForTypeByClassName(className:String):Bool

instantiateUnmapped<T>(type:Class<T>):T

removeListener(listener:IInjectorListener):Bool

satisfies<T>(type:ClassRef<T>, ?name:MappingName):Bool