当前位置: 首页>>代码示例>>Java>>正文


Java RoboInjector.injectMembersWithoutViews方法代码示例

本文整理汇总了Java中roboguice.inject.RoboInjector.injectMembersWithoutViews方法的典型用法代码示例。如果您正苦于以下问题:Java RoboInjector.injectMembersWithoutViews方法的具体用法?Java RoboInjector.injectMembersWithoutViews怎么用?Java RoboInjector.injectMembersWithoutViews使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在roboguice.inject.RoboInjector的用法示例。


在下文中一共展示了RoboInjector.injectMembersWithoutViews方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreate

import roboguice.inject.RoboInjector; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	final RoboInjector injector = RoboGuice.getInjector(this);
	eventManager = injector.getInstance(EventManager.class);
	injector.injectMembersWithoutViews(this);
	super.onCreate(savedInstanceState);
	eventManager.fire(new OnCreateEvent<Activity>(this, savedInstanceState));
}
 
开发者ID:AMOS-2015,项目名称:amos-ss15-proj2,代码行数:9,代码来源:AbstractRoboDrawerActivity.java

示例2: onCreate

import roboguice.inject.RoboInjector; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    final RoboInjector injector = RoboGuice.getInjector(this);
    eventManager = injector.getInstance(EventManager.class);
    injector.injectMembersWithoutViews(this);
    super.onCreate(savedInstanceState);
    eventManager.fire(new OnCreateEvent<Activity>(this, savedInstanceState));
}
 
开发者ID:edx,项目名称:edx-app-android,代码行数:9,代码来源:RoboAppCompatActivity.java

示例3: onCreate

import roboguice.inject.RoboInjector; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    final RoboInjector injector = RoboGuice.getInjector(this);
    eventManager = injector.getInstance(EventManager.class);
    injector.injectMembersWithoutViews(this);
    super.onCreate(savedInstanceState);
    eventManager.fire(new OnCreateEvent(savedInstanceState));
}
 
开发者ID:huibinfeng0810,项目名称:github-v2,代码行数:9,代码来源:RoboSherlockAccountAuthenticatorActivity.java

示例4: onCreate

import roboguice.inject.RoboInjector; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    final RoboInjector injector = RoboGuice.getInjector(this);
    eventManager = injector.getInstance(EventManager.class);
    preferenceListener = injector.getInstance(PreferenceListener.class);
    injector.injectMembersWithoutViews(this);
    super.onCreate(savedInstanceState);
    eventManager.fire(new OnCreateEvent(savedInstanceState));
}
 
开发者ID:huibinfeng0810,项目名称:github-v2,代码行数:10,代码来源:RoboSherlockPreferenceActivity.java

示例5: setUpInjection

import roboguice.inject.RoboInjector; //导入方法依赖的package包/类
public static void setUpInjection(Object testCase, Module mockedModule) {
    Module customisedModule = override(newDefaultRoboModule(application)).with(new GuiceConfigurationModule());
    if (mockedModule != null) {
        customisedModule = override(customisedModule).with(mockedModule);
    }

    setBaseApplicationInjector(application, DEFAULT_STAGE, customisedModule);
    RoboInjector injector = getInjector(application);
    injector.injectMembersWithoutViews(testCase);
}
 
开发者ID:clintonhealthaccess,项目名称:chailmis-android,代码行数:11,代码来源:TestInjectionUtil.java

示例6: onCreate

import roboguice.inject.RoboInjector; //导入方法依赖的package包/类
@Override
protected void onCreate( Bundle savedInstanceState ) {

    final RoboInjector injector = RoboGuice.getInjector( this );
    eventManager = injector.getInstance( EventManager.class );
    injector.injectMembersWithoutViews( this );
    super.onCreate( savedInstanceState );
    eventManager.fire( new OnCreateEvent( savedInstanceState ) );
}
 
开发者ID:metova,项目名称:roboguice-appcompat,代码行数:10,代码来源:RoboActionBarActivity.java

示例7: init

import roboguice.inject.RoboInjector; //导入方法依赖的package包/类
private void init() {
	if(!isInEditMode()) {
		RoboInjector injector = RoboGuice.getInjector(getContext());
		injector.injectMembersWithoutViews(this);
	}
}
 
开发者ID:Ecchilon,项目名称:SadPanda,代码行数:7,代码来源:HeaderView.java


注:本文中的roboguice.inject.RoboInjector.injectMembersWithoutViews方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。