|
|
Re: Use the config.ini for parameterized delivery [message #545061 is a reply to message #544504] |
Tue, 06 July 2010 14:36 |
Eclipse User |
|
|
|
every Eclipse installation contains a file
[yourEclipseDir/configuration/config.ini] where bundle properties can be
defined. This file has nothing to do with any underlying OS.
No, Scout applications are not operating system deptendent. At
EclipseCon 2010 we did a tutorial covering mac, linux and windows os.
Cheers Andreas
Werner Keil wrote:
> ..ini, does that mean, the server or Scout as a whole is limited to
> Windows?!
|
|
|
|
Re: Use the config.ini for parameterized delivery [message #545112 is a reply to message #545111] |
Tue, 06 July 2010 16:29 |
Eclipse User |
|
|
|
Basically every service member having a setter method can be initialized
with a config.ini property.
e.g.
package com.bsiag.services;
public class MyService extends AbstractService{
private boolean m_foo;
private String m_bar;
public void setFoo(boolean foo){
m_foo = foo;
}
public void setBar(String bar){
m_bar = bar;
}
}
config.ini:
com.bsiag.services.MyService#foo = true
com.bsiag.services.MyService#bar = aValue
Werner Keil wrote:
> Well most applications use the standard properties like OSGi, etc.
> Is there a complete list of those Scout extends, at least on the server?
>
> Thanks,
> Werner
|
|
|
|
Re: Use the config.ini for parameterized delivery [message #581381 is a reply to message #544504] |
Tue, 06 July 2010 14:36 |
Eclipse User |
|
|
|
every Eclipse installation contains a file
[yourEclipseDir/configuration/config.ini] where bundle properties can be
defined. This file has nothing to do with any underlying OS.
No, Scout applications are not operating system deptendent. At
EclipseCon 2010 we did a tutorial covering mac, linux and windows os.
Cheers Andreas
Werner Keil wrote:
> ..ini, does that mean, the server or Scout as a whole is limited to
> Windows?!
|
|
|
|
Re: Use the config.ini for parameterized delivery [message #581419 is a reply to message #545111] |
Tue, 06 July 2010 16:29 |
Eclipse User |
|
|
|
Basically every service member having a setter method can be initialized
with a config.ini property.
e.g.
package com.bsiag.services;
public class MyService extends AbstractService{
private boolean m_foo;
private String m_bar;
public void setFoo(boolean foo){
m_foo = foo;
}
public void setBar(String bar){
m_bar = bar;
}
}
config.ini:
com.bsiag.services.MyService#foo = true
com.bsiag.services.MyService#bar = aValue
Werner Keil wrote:
> Well most applications use the standard properties like OSGi, etc.
> Is there a complete list of those Scout extends, at least on the server?
>
> Thanks,
> Werner
|
|
|
|
Powered by
FUDForum. Page generated in 0.04320 seconds