Skip to content

Commit

Permalink
Di interfaces formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancisBourre authored and aliokan committed Mar 20, 2017
1 parent f8e4ea2 commit 289bdce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/hex/di/IBasicInjector.hx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ interface IBasicInjector
{
function mapToValue<T>( clazz : Class<T>, value : T, ?name : String = '' ) : Void;

function mapToType<T>( clazz : Class<T>, type : Class<T>, name:String = '' ) : Void;
function mapToType<T>( clazz : Class<T>, type : Class<T>, name : String = '' ) : Void;

function mapToSingleton<T>( clazz : Class<T>, type : Class<T>, name:String = '' ) : Void;
function mapToSingleton<T>( clazz : Class<T>, type : Class<T>, name : String = '' ) : Void;

function getInstance<T>( type : Class<T>, name : String = '' ) : T;

Expand All @@ -27,7 +27,7 @@ interface IBasicInjector

function mapClassNameToValue<T>( className : String, value : T, ?name : String = '' ) : Void;

function mapClassNameToType<T>( className : String, type : Class<T>, name:String = '' ) : Void;
function mapClassNameToType<T>( className : String, type : Class<T>, name : String = '' ) : Void;

function mapClassNameToSingleton<T>( className : String, type : Class<T>, name:String = '' ) : Void;
function mapClassNameToSingleton<T>( className : String, type : Class<T>, name : String = '' ) : Void;
}
6 changes: 3 additions & 3 deletions src/hex/di/IDependencyInjector.hx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import hex.di.provider.IDependencyProvider;
*/
interface IDependencyInjector extends IBasicInjector
{
function hasDirectMapping( type : Class<Dynamic>, name:String = '' ) : Bool;
function hasDirectMapping<T>( type : Class<T>, name : String = '' ) : Bool;

function satisfies( type : Class<Dynamic>, name : String = '' ) : Bool;
function satisfies<T>( type : Class<T>, name : String = '' ) : Bool;

function injectInto( target : Dynamic ) : Void;
function injectInto<T>( target : T ) : Void;

function destroyInstance<T>( instance : T ) : Void;

Expand Down

0 comments on commit 289bdce

Please sign in to comment.