Skip to content

Commit

Permalink
regenerated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed May 21, 2024
1 parent b073505 commit 3e5dacd
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ public Injector createInjector() {
protected StatemachineRuntimeModule createRuntimeModule() {
// make it work also with Maven/Tycho and OSGI
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672
// allows for bindClassLoaderToInstance to get the class loader of the bundle
// containing the instance of the injector provider (possibly inherited)
return new StatemachineRuntimeModule() {
@Override
public ClassLoader bindClassLoaderToInstance() {
return StatemachineInjectorProvider.class
return StatemachineInjectorProvider.this.getClass()
.getClassLoader();
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ public Injector createInjector() {
protected EntitiesRuntimeModule createRuntimeModule() {
// make it work also with Maven/Tycho and OSGI
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672
// allows for bindClassLoaderToInstance to get the class loader of the bundle
// containing the instance of the injector provider (possibly inherited)
return new EntitiesRuntimeModule() {
@Override
public ClassLoader bindClassLoaderToInstance() {
return EntitiesInjectorProvider.class
return EntitiesInjectorProvider.this.getClass()
.getClassLoader();
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ public Injector createInjector() {
protected ArithmeticsRuntimeModule createRuntimeModule() {
// make it work also with Maven/Tycho and OSGI
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672
// allows for bindClassLoaderToInstance to get the class loader of the bundle
// containing the instance of the injector provider (possibly inherited)
return new ArithmeticsRuntimeModule() {
@Override
public ClassLoader bindClassLoaderToInstance() {
return ArithmeticsInjectorProvider.class
return ArithmeticsInjectorProvider.this.getClass()
.getClassLoader();
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ public Injector createInjector() {
protected DomainmodelRuntimeModule createRuntimeModule() {
// make it work also with Maven/Tycho and OSGI
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672
// allows for bindClassLoaderToInstance to get the class loader of the bundle
// containing the instance of the injector provider (possibly inherited)
return new DomainmodelRuntimeModule() {
@Override
public ClassLoader bindClassLoaderToInstance() {
return DomainmodelInjectorProvider.class
return DomainmodelInjectorProvider.this.getClass()
.getClassLoader();
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ public Injector createInjector() {
protected StatemachineRuntimeModule createRuntimeModule() {
// make it work also with Maven/Tycho and OSGI
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672
// allows for bindClassLoaderToInstance to get the class loader of the bundle
// containing the instance of the injector provider (possibly inherited)
return new StatemachineRuntimeModule() {
@Override
public ClassLoader bindClassLoaderToInstance() {
return StatemachineInjectorProvider.class
return StatemachineInjectorProvider.this.getClass()
.getClassLoader();
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ public Injector createInjector() {
protected RuleEngineRuntimeModule createRuntimeModule() {
// make it work also with Maven/Tycho and OSGI
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672
// allows for bindClassLoaderToInstance to get the class loader of the bundle
// containing the instance of the injector provider (possibly inherited)
return new RuleEngineRuntimeModule() {
@Override
public ClassLoader bindClassLoaderToInstance() {
return RuleEngineInjectorProvider.class
return RuleEngineInjectorProvider.this.getClass()
.getClassLoader();
}
};
Expand Down

0 comments on commit 3e5dacd

Please sign in to comment.