blob: 051c8c0398b1a4da1c24b654b10c56b578772a93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.fileaccess;
import org.jitsi.service.fileaccess.*;
import org.jitsi.service.libjitsi.*;
import org.osgi.framework.*;
/**
* Invoke "Service Binder" to parse the service XML and register all services.
*
* @author Alexander Pelov
* @author Lyubomir Marinov
*/
public class FileAccessActivator
implements BundleActivator
{
/**
* Initialize and start file service
*
* @param bundleContext the <tt>BundleContext</tt>
* @throws Exception if initializing and starting file service fails
*/
public void start(BundleContext bundleContext)
throws Exception
{
FileAccessService fileAccessService = LibJitsi.getFileAccessService();
if (fileAccessService != null)
{
bundleContext.registerService(
FileAccessService.class.getName(),
fileAccessService,
null);
}
}
/**
* Stops this bundle.
*
* @param bundleContext the <tt>BundleContext</tt>
* @throws Exception if the stop operation goes wrong
*/
public void stop(BundleContext bundleContext)
throws Exception
{
}
}
|