Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
frascati
frascati
Commits
59815ce8
Commit
59815ce8
authored
Jul 15, 2017
by
Lionel Seinturier
Browse files
Cosmetic.
parent
012f3de1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tinfi/module/opt-oo/core/src/main/java/org/ow2/frascati/tinfi/opt/oo/FCOOCtrlSourceCodeGenerator.java
View file @
59815ce8
...
...
@@ -68,7 +68,7 @@ extends org.objectweb.fractal.juliac.opt.oo.FCOOCtrlSourceCodeGenerator {
*
* Use JulietLoader as the service type, instead of MembraneLoaderItf,
* since we really want an instance of JulietLoader, not of e.g.
* MembraneLoader
which
would be the case when e.g. the OO mode is
* MembraneLoader
that
would be the case when e.g. the OO mode is
* registered before the current one (see the associated JUnit test).
*/
...
...
@@ -127,20 +127,18 @@ extends org.objectweb.fractal.juliac.opt.oo.FCOOCtrlSourceCodeGenerator {
else
{
if
(
it
.
isFcClientItf
()
)
{
/*
*
In theory w
e should be returning here two interface source
*
code
generators since the client interface class extends the
*
W
e should be returning here two interface source
code
* generators since the client interface class extends the
* server one corresponding to the same type. However, the
* current method is mainly used for retrieving the name of the
* generated interface class (such as in initializer source code
* generators.) It is then sufficient to return only the class
*
which
corresponds to the real implementation.
*
that
corresponds to the real implementation.
*/
pcg
=
new
ClientInterfaceClassGenerator
(
it
,
cl
,
pkgRoot
,
false
);
pcg
=
new
ClientInterfaceClassGenerator
(
it
,
cl
,
pkgRoot
,
false
);
}
else
{
pcg
=
new
ServerInterfaceClassGenerator
(
it
,
cl
,
pkgRoot
,
false
);
pcg
=
new
ServerInterfaceClassGenerator
(
it
,
cl
,
pkgRoot
,
false
);
}
}
...
...
@@ -165,11 +163,10 @@ extends org.objectweb.fractal.juliac.opt.oo.FCOOCtrlSourceCodeGenerator {
/*
* Control interfaces.
*
* It seems to be wiser to keep
* InterfaceImplementationClassGenerator as a source code generator
* for control interfaces even though ServerInterfaceClassGenerator
* could be used. This allows reusing pre-generated implementations
* for Julia control interfaces.
* Keep InterfaceImplementationClassGenerator as a source code
* generator for control interfaces even though
* ServerInterfaceClassGenerator could be used. This allows reusing
* pre-generated implementations for Julia control interfaces.
*/
SourceCodeGeneratorItf
cg
=
new
InterfaceImplementationClassGenerator
(
it
,
cl
,
pkgRoot
,
false
);
...
...
@@ -198,8 +195,7 @@ extends org.objectweb.fractal.juliac.opt.oo.FCOOCtrlSourceCodeGenerator {
}
// ServiceReference implementation
cg
=
new
ServiceReferenceClassGenerator
(
it
,
cl
,
pkgRoot
,
null
,
false
);
cg
=
new
ServiceReferenceClassGenerator
(
it
,
cl
,
pkgRoot
,
null
,
false
);
jc
.
generateSourceCode
(
cg
);
// ServiceReference and input interface implementations for callbacks
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment