1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.eclipse.jetty.osgi.boot.utils;
20
21 import org.eclipse.jetty.util.log.Log;
22 import org.eclipse.jetty.util.log.Logger;
23
24
25
26
27
28
29 public class BundleFileLocatorHelperFactory
30 {
31 private static final Logger LOG = Log.getLogger(BundleFileLocatorHelperFactory.class);
32
33 private static BundleFileLocatorHelperFactory _instance = new BundleFileLocatorHelperFactory();
34
35 private BundleFileLocatorHelperFactory() {}
36
37 public static BundleFileLocatorHelperFactory getFactory()
38 {
39 return _instance;
40 }
41
42 public BundleFileLocatorHelper getHelper()
43 {
44 BundleFileLocatorHelper helper = BundleFileLocatorHelper.DEFAULT;
45 try
46 {
47
48 helper = (BundleFileLocatorHelper) Class.forName(BundleFileLocatorHelper.CLASS_NAME).newInstance();
49 }
50 catch (Throwable t)
51 {
52 LOG.ignore(t);
53 }
54 return helper;
55 }
56
57 }