|
|
|
|
|
|
|
Re: JAVA HEAP SPACE (OUT OF MEMEORY) [message #1795611 is a reply to message #1795606] |
Wed, 26 September 2018 08:25 |
|
what did you exactly do?
i assume you simply did the same configure which is a bad idea when not calling super.
a terrible terrible bad idea.
in Xtext runtime and ui module such a binding would ususally look like
def Class<? extends IResourceClusteringPolicy> bindIResourceClusteringPolicy() {
return DynamicResourceClusteringPolicy
}
or
def void configureIResourceClusteringPolicy(Binder binder) {
binder.bind(IResourceClusteringPolicy).to(DynamicResourceClusteringPolicy)
}
please read the docs on dependency injection
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
[Updated on: Wed, 26 September 2018 08:29] Report message to a moderator
|
|
|
|
|
|
|
Re: JAVA HEAP SPACE (OUT OF MEMEORY) [message #1795627 is a reply to message #1795624] |
Wed, 26 September 2018 09:26 |
Virag Purnam Messages: 142 Registered: June 2014 |
Senior Member |
|
|
Ok.
That means I dont have to add it to UiModule.
Just below line will do the job incase of ClusteringBuilderState.
public class MyModule implements Module {
public MyModule() {
// TODO Auto-generated constructor stub
}
@Override
public void configure(Binder binder) {
binder.bind(ClusteringBuilderState.class).to(MyClusteringBuilderState.class);
}
}
Thanks a lot. :) It was really helpful.
[Updated on: Wed, 26 September 2018 09:31] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04215 seconds