-
Notifications
You must be signed in to change notification settings - Fork 0
/
rcp_040_osgi.yaml
57 lines (56 loc) · 2.82 KB
/
rcp_040_osgi.yaml
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
54
55
56
57
categoryId: 1688 # CATEGORY NAME
name: OSGi
questions:
- description: OSGi stands for...
choices:
- OSGi, it is not a abbreviation.
- Open Service Gateway interface
- Open Service Gateway initiative
- Open Service Guarded
-
hint:
explanation: OSGi was originally the abbreviation for Open Service Gateway initiative but as the scope of OSGi broaded so these days OSGi stands only for OSGi.
correctChoice: 0
- description: OSGi is
choices:
- a specification for a module and service layer
- an implementation for a module and service layer
-
-
hint:
explanation: The OSGi core specification specifies a module and service layer
correctChoice: 0
- description: What is a bundle in OSGi?
choices:
- A Java class
- A Java package
- A Java archive file
- A Java module / project with additional metadata
correctChoice: 3
- description: What is the main purpose for the OSGi module layer?
choices:
- It allows to integrate with the Java 9 module layer
- It allows to define versionized dependencies of a plug-ins to other plug-in or Java packages and to define the exported API of a plug-in
- It allows to use multi plug-in builds similar to multi-module builds with Maven
-
hint:
explanation: The OSGi module layer allows to define versionized dependencies to other Java packages and plug-ins as well to define the API of plug-in, i.e. the packages which can be accessed from other plug-ins
correctChoice: 1
- description: What is the main purpose for the OSGi service layer?
choices:
- The OSGi service layer allows to use dependency injection via @Inject
- The OSGi service layer allows to define the usage of OSGI services in e4 components.
- The OSGi service layer allows to define OSGI services and immediate components which can be consumed by other OSGi services and via the Eclipse dependency injection mechanisms.
-
hint:
explanation: The OSGi service layer allows to define OSGI services and immediate components which can be consumed via in other code without knowing the concrete implementation.
correctChoice: 2
- description: OSGi services
choices:
- are based on JSR 330 which defines dependency injection for Java applications.
- can be defined via compile-time annotations which Eclipse can use to generated the required meta-data for the OSGi runtime
- can be defined via runtime-time annotations which Eclipse uses to provide the required meta-data for the OSGi runtime
-
hint:
explanation: The OSGi declarative service functionality allows to use compile-time annotations which the Eclipse IDE can use to generate the required meta-data which OSGI uses at runtime to provide the services.
correctChoice: 1