InjectionProvider
8990919293949596
try { injectionManager.injectInstance(managedBean, getNamingEnvironment(), false); } catch (InjectionException ie) { throw new InjectionProviderException(ie); } }
105106107108109110111112
public void invokePreDestroy(Object managedBean) throws InjectionProviderException { try { injectionManager.invokeInstancePreDestroy(managedBean); } catch (InjectionException ie) { throw new InjectionProviderException(ie); } }
126127128129130131132133134
public void invokePostConstruct(Object managedBean) throws InjectionProviderException { try { this.invokePostConstruct(managedBean, getNamingEnvironment()); } catch (InjectionException ie) { throw new InjectionProviderException(ie); } }
110111112113114115116117118119120
boolean accessible = method.isAccessible(); method.setAccessible(true); try { method.invoke(managedBean); } catch (Exception e) { throw new InjectionProviderException(e.getMessage(), e); } finally { method.setAccessible(accessible); } }
114115116117118119120121122123124
106107108109110111112113114115116
7980818283848586
*/ public void inject(Object managedBean) throws InjectionProviderException { try { getProcessor().processAnnotations(managedBean); } catch (Exception e) { throw new InjectionProviderException(e); } }
979899100101102103104
*/ public void invokePreDestroy(Object managedBean) throws InjectionProviderException { try { getProcessor().preDestroy(managedBean); } catch (Exception e) { throw new InjectionProviderException(e); } }
115116117118119120121122
*/ public void invokePostConstruct(Object managedBean) throws InjectionProviderException { try { getProcessor().postConstruct(managedBean); } catch (Exception e) { throw new InjectionProviderException(e); } }
979899100101102103104105
injections, callbacks); try { injections.inject(managedBean); } catch (Exception e) { throw new InjectionProviderException(e); } }