Java
< programming
< computers
< Technology
< kynphlee
Get flash to fully experience Pearltrees
Creating services is quite an abstract subject, everyone has his own ideas and preconceptions, so is worth clarifying what I mean by services in this article. A service is a component that holds some business logic which can be easily reused anywhere else in the application no matter where the service is located, or what the communication mechanism is used between the client and the service. The following code samples detail my own personal approach on how to implement services in Java. First thing is to design the service itself through its interface public interface ServiceA { public void doThis(); public void doThat(); }
Navigate yourself around pitfalls related to the Runtime.exec() method By Michael C. Daconta, JavaWorld.com, 12/29/00 As part of the Java language, the java.lang package is implicitly imported into every Java program.