io.nuun.kernel.api.di
Interface ObjectGraph


public interface ObjectGraph

Object Graph is the Nuun Kernel API element abstraction for injector part of the Dependency Injection engine.

Author:
epo.jemba@kametic.com

Method Summary
<T> T
as(Class<T> targetType)
          Cast or Convert the current object graph injector.
 Object get()
           
 

Method Detail

get

Object get()
Returns:
the raw object graph provider.

as

<T> T as(Class<T> targetType)
Cast or Convert the current object graph injector.

Will send an IllegalStateException if can not convert or cast.

Parameters:
targetType - the target type
Returns:
the ObjectGraph object casted as T type or adapted as T.


Copyright © 2012-2015. All Rights Reserved.