io.nuun.kernel.api.di
Interface ModuleWrapper

All Known Subinterfaces:
GlobalModule, UnitModule

public interface ModuleWrapper

An encapsulation of the bindings definition of the actual dependency engine.

The encapsulated object, can be a Guice Module, and ApplicationContext, PicoContainer , etc

Author:
epo.jemba@kametic.com

Method Summary
<T> T
as(Class<T> targetType)
          Cast the current object module.
 Object nativeModule()
           
 

Method Detail

nativeModule

Object nativeModule()
Returns:
the actual native module.

as

<T> T as(Class<T> targetType)
Cast the current object module.

Parameters:
targetType - the target type
Returns:
the ObjectGraph object casted as T type or adapted as T.
Throws:
IllegalStateException - if can not convert or cast


Copyright © 2012-2015. All Rights Reserved.