Trace:
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
jvx:server:lco:inject_objects [2019/12/20 14:54] admin created |
jvx:server:lco:inject_objects [2019/12/20 14:55] admin |
||
---|---|---|---|
Line 30: | Line 30: | ||
</file> | </file> | ||
- | It's also possible to inject by ServiceLoader. Simply create a file with the name **com.sibvisions.rad.server.IInjectObject** in META-INF/services, in your classpath. The file should contain one line per object: | + | It's also possible to inject by ServiceLoader. Simply create a file with the name **com.sibvisions.rad.server.IInjectObject** in **META-INF/services**, in your classpath. The file should contain one line per object: |
- | <file> | + | <file bash> |
com.package.app.MyInjectObject | com.package.app.MyInjectObject | ||
</file> | </file> | ||
- | Be sure that MyInjectObject implements IInjectObject. | + | Be sure that MyInjectObject **implements IInjectObject.** |