From version 2.1
edited by Vladyslav Pavlov
on 2018/03/25 18:51
To version 3.1
edited by Denis Pavlov
on 2018/03/26 13:07
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.vpavlov
1 +xwiki:XWiki.dpavlov
Content
... ... @@ -10,7 +10,6 @@
10 10  
11 11  (((
12 12  {{code language="java"}}
13 -
14 14  import mypack.Example;
15 15  
16 16  ...
... ... @@ -42,7 +42,6 @@
42 42  
43 43  (((
44 44  {{code language="java"}}
45 -
46 46  // version 2.x.x assembler instantiation
47 47  DTOAssembler.newCustomAssembler(dtoClassFilter, entity.getClass(), registry, osgiJavassisstSynthesizer)
48 48  
... ... @@ -65,8 +65,7 @@
65 65  **Maven dependency GeDA OSGi**
66 66  
67 67  (((
68 -{{code language="java"}}
69 -
66 +{{code language="xml"}}
70 70   <dependency>
71 71   <groupId>com.inspire-software.lib.dto.geda</groupId>
72 72   <artifactId>geda.osgi</artifactId>
... ... @@ -81,8 +81,7 @@
81 81  **Maven dependency GeDA OSGi**
82 82  
83 83  (((
84 -{{code language="java"}}
85 -
81 +{{code language="xml"}}
86 86   <dependency>
87 87   <groupId>org.apache.servicemix.bundles</groupId>
88 88   <artifactId>org.apache.servicemix.bundles.javassist</artifactId>
... ... @@ -102,9 +102,8 @@
102 102  
103 103  (((
104 104  {{code language="java"}}
101 + public class Activator implements BundleActivator {
105 105  
106 - public class Activator implements BundleActivator {
107 -
108 108   public void start(final BundleContext bundleContext) throws Exception {
109 109  
110 110   final ServiceReference<GeDAFacade> facadeReference =
... ... @@ -124,7 +124,6 @@
124 124  
125 125  (((
126 126  {{code language="java"}}
127 -
128 128   public interface GeDAFacade {
129 129  
130 130   /**
... ... @@ -190,7 +190,6 @@
190 190  
191 191  (((
192 192  {{code language="java"}}
193 -
194 194  final DTOSupportAnnotationsService annotationsService = facade.getAnnService(Activator.class.getClassLoader());
195 195  
196 196  final SimpleEntityClass entity = new SimpleEntityClass();
... ... @@ -214,7 +214,6 @@
214 214  
215 215  (((
216 216  {{code language="java"}}
217 -
218 218  final final DTOEventListener onDtoAssembled = ...
219 219  
220 220  service.addListener("onDtoAssembled", expectations);
... ... @@ -263,7 +263,6 @@
263 263  
264 264  (((
265 265  {{code language="java"}}
266 -
267 267  final ExtensibleBeanFactory beanFactory = facade.createBeanFactory(Activator.class.getClassLoader());
268 268  final DTOSupportDSLService dslService = facade.getDSLService(Activator.class.getClassLoader());
269 269  Registry basic = dslService.getRegistry("basic");
... ... @@ -310,6 +310,7 @@
310 310  * Do not mix BeanFactories DSL Registries and Services that have different class loader contexts
311 311  * For DSL mappings, adapters registration, listeners it is recommended to register all of those at the point of bundle activation
312 312  * Do not keep hard references to any of the GeDA API - this may prevent bundle uninstallation if you do plan to load and unload GeDA
304 +
313 313  |(% style="color:green" %){{icon name="check"/}} GeDA will keep your singletons until GeDA bundle is uninstalled or GeDAFacade.releaseResources(ClassLoader) is called so do not worry about keeping hard references - always use bundleContext to get to Facade
314 314  
315 315  * GeDAFacade.releaseResources(ClassLoader) should be called when your bundles is being uninstalled so that GeDA frees up the resources - otherwise do not worry about it.
GeDA - Generic DTO Assembler © Denys Pavlov 2009 - 2019
v.1.0.0