/** * Access to singleton implementation of DocumentFactory which is used if no * DocumentFactory is specified when building using the standard builders. * * @return the default singleon instance */ public static synchronized DocumentFactory getInstance() { if (singleton == null) { singleton = createSingleton(); } return singleton.instance(); }
/** * Access to singleton implementation of DocumentFactory which is used if no * DocumentFactory is specified when building using the standard builders. * * @return the default singleon instance */ public static synchronized DocumentFactory getInstance() { if (singleton == null) { singleton = createSingleton(); } return singleton.instance(); }
/** * <p> * Access to singleton implementation of DocumentFactory which is used if no * DocumentFactory is specified when building using the standard builders. * </p> * * @return the default singleon instance */ public static synchronized DocumentFactory getInstance() { if (singleton == null) { singleton = createSingleton(); } return (DocumentFactory) singleton.instance(); }
/** * <p> * Access to singleton implementation of DocumentFactory which is used if no * DocumentFactory is specified when building using the standard builders. * </p> * * @return the default singleon instance */ public static synchronized DocumentFactory getInstance() { if (singleton == null) { singleton = createSingleton(); } return (DocumentFactory) singleton.instance(); }
/** * Access to singleton implementation of DocumentFactory which is used if no * DocumentFactory is specified when building using the standard builders. * * @return the default singleon instance */ public static synchronized DocumentFactory getInstance() { if (singleton == null) { singleton = createSingleton(); } return singleton.instance(); }
/** * <p> * Access to singleton implementation of DocumentFactory which is used if no * DocumentFactory is specified when building using the standard builders. * </p> * * @return the default singleon instance */ public static synchronized DocumentFactory getInstance() { if (singleton == null) { singleton = createSingleton(); } return (DocumentFactory) singleton.instance(); }
/** * <p> * Access to singleton implementation of DocumentFactory which is used if no * DocumentFactory is specified when building using the standard builders. * </p> * * @return the default singleon instance */ public static synchronized DocumentFactory getInstance() { if (singleton == null) { singleton = createSingleton(); } return (DocumentFactory) singleton.instance(); }
/** * <p> * Access to singleton implementation of DocumentFactory which is used if no * DocumentFactory is specified when building using the standard builders. * </p> * * @return the default singleon instance */ public static synchronized DocumentFactory getInstance() { if (singleton == null) { singleton = createSingleton(); } return (DocumentFactory) singleton.instance(); }
/** * <p> * Access to singleton implementation of DocumentFactory which is used if no * DocumentFactory is specified when building using the standard builders. * </p> * * @return the default singleon instance */ public static synchronized DocumentFactory getInstance() { try { if (singleton == null) { singleton = createSingleton(); } return (DocumentFactory) singleton.instance(); } catch(ClassCastException ex) { System.out.println("[WARNING] Using default org.dom4j.DocumentFactory"); return new DocumentFactory(); } }