| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.util; |
| | | |
| | |
| | | |
| | | try { |
| | | |
| | | Class c = Class.forName("org.opends.server.util.ReleaseDefinition"); |
| | | Class c; |
| | | if (org.opends.server.util.SetupUtils.isWebStart()) |
| | | { |
| | | Class<?> cS = Class.forName("org.opends.server.util.SetupUtils"); |
| | | java.net.URL[] urls = new java.net.URL[] |
| | | { |
| | | cS.getProtectionDomain().getCodeSource().getLocation() |
| | | }; |
| | | ClassLoader webstartClassLoader = new java.net.URLClassLoader(urls); |
| | | c = webstartClassLoader.loadClass( |
| | | "org.opends.server.util.ReleaseDefinition"); |
| | | } |
| | | else |
| | | { |
| | | c = Class.forName("org.opends.server.util.ReleaseDefinition"); |
| | | } |
| | | Object obj = c.newInstance(); |
| | | |
| | | try { |