本文整理汇总了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));
}
示例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));
}
示例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));
}
示例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));
}
示例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);
}
示例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 ) );
}
示例7: init
import roboguice.inject.RoboInjector; //导入方法依赖的package包/类
private void init() {
if(!isInEditMode()) {
RoboInjector injector = RoboGuice.getInjector(getContext());
injector.injectMembersWithoutViews(this);
}
}