}
public void bindInjection()
{
InjectManager beanManager = InjectManager.create();
ManagedBeanImpl<T> managedBean
= beanManager.createManagedBean(_annotatedType);
_bean = managedBean;
setInjectionTarget(managedBean.getInjectionTarget());
_timeoutMethod = getTimeoutMethod(_bean.getBeanClass());
if (_timeoutMethod != null)
_timerService = new EjbTimerService(_server);
// Injection binding occurs in the start phase
InjectManager inject = InjectManager.create();
// server/4751
if (_injectionTarget == null)
_injectionTarget = inject.createInjectionTarget(_ejbClass);
if (_timerService != null) {
BeanFactory<TimerService> factory = inject.createBeanFactory(TimerService.class);
inject.addBean(factory.singleton(_timerService));
}
/*
ArrayList<ConfigProgram> injectList = new ArrayList<ConfigProgram>();
InjectIntrospector.introspectInject(injectList, getEjbClass());
// XXX: add inject from xml here