public void postConstruct(Object instance) throws IllegalAccessException, InvocationTargetException { InstanceManager manager = instanceManagers .get(ClassUtils.getContextClassLoader()); if (manager == null) { //Initialize manager manager = initManager(); } //Is initialized if (manager != null) { //Inject resources try { manager.newInstance(instance); } catch (NamingException e) { throw new FacesException(e); } } }
public void postConstruct(Object instance) throws IllegalAccessException, InvocationTargetException { InstanceManager manager = instanceManagers .get(ClassUtils.getContextClassLoader()); if (manager == null) { //Initialize manager manager = initManager(); } //Is initialized if (manager != null) { //Inject resources try { manager.newInstance(instance); } catch (NamingException e) { throw new FacesException(e); } } }
public void postConstruct(Object instance) throws IllegalAccessException, InvocationTargetException { InstanceManager manager = instanceManagers .get(ClassUtils.getContextClassLoader()); if (manager == null) { //Initialize manager manager = initManager(); } //Is initialized if (manager != null) { //Inject resources try { manager.newInstance(instance); } catch (NamingException e) { throw new FacesException(e); } } }