/** * Creates a new instance of the specified class. * In the unmarshaller, we need to check the user-specified factory class. */ public Object createInstance( JaxBeanInfo beanInfo ) throws SAXException { if(!factories.isEmpty()) { Factory factory = factories.get(beanInfo.jaxbType); if(factory!=null) return factory.createInstance(); } try { return beanInfo.createInstance(this); } catch (IllegalAccessException e) { Loader.reportError("Unable to create an instance of "+beanInfo.jaxbType.getName(),e,false); } catch (InvocationTargetException e) { Loader.reportError("Unable to create an instance of "+beanInfo.jaxbType.getName(),e,false); } catch (InstantiationException e) { Loader.reportError("Unable to create an instance of "+beanInfo.jaxbType.getName(),e,false); } return null; // can never be here }
/** * Creates a new instance of the specified class. * In the unmarshaller, we need to check the user-specified factory class. */ public Object createInstance( JaxBeanInfo beanInfo ) throws SAXException { if(!factories.isEmpty()) { Factory factory = factories.get(beanInfo.jaxbType); if(factory!=null) return factory.createInstance(); } try { return beanInfo.createInstance(this); } catch (IllegalAccessException e) { Loader.reportError("Unable to create an instance of "+beanInfo.jaxbType.getName(),e,false); } catch (InvocationTargetException e) { Loader.reportError("Unable to create an instance of "+beanInfo.jaxbType.getName(),e,false); } catch (InstantiationException e) { Loader.reportError("Unable to create an instance of "+beanInfo.jaxbType.getName(),e,false); } return null; // can never be here }
/** * Creates a new instance of the specified class. * In the unmarshaller, we need to check the user-specified factory class. */ public Object createInstance( JaxBeanInfo beanInfo ) throws SAXException { if(!factories.isEmpty()) { Factory factory = factories.get(beanInfo.jaxbType); if(factory!=null) return factory.createInstance(); } try { return beanInfo.createInstance(this); } catch (IllegalAccessException e) { Loader.reportError("Unable to create an instance of "+beanInfo.jaxbType.getName(),e,false); } catch (InvocationTargetException e) { Loader.reportError("Unable to create an instance of "+beanInfo.jaxbType.getName(),e,false); } catch (InstantiationException e) { Loader.reportError("Unable to create an instance of "+beanInfo.jaxbType.getName(),e,false); } return null; // can never be here }
/** * Creates a new instance of the specified class. * In the unmarshaller, we need to check the user-specified factory class. */ public Object createInstance( JaxBeanInfo beanInfo ) throws SAXException { if(!factories.isEmpty()) { Factory factory = factories.get(beanInfo.jaxbType); if(factory!=null) return factory.createInstance(); } try { return beanInfo.createInstance(this); } catch (IllegalAccessException e) { Loader.reportError("Unable to create an instance of "+beanInfo.jaxbType.getName(),e,false); } catch (InvocationTargetException e) { Loader.reportError("Unable to create an instance of "+beanInfo.jaxbType.getName(),e,false); } catch (InstantiationException e) { Loader.reportError("Unable to create an instance of "+beanInfo.jaxbType.getName(),e,false); } return null; // can never be here }