X Tutup
Skip to content

Commit 488e5dd

Browse files
committed
iluwatar#107 JavaDoc for Service Layer
1 parent 1b2a1fd commit 488e5dd

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

service-layer/src/main/java/com/iluwatar/servicelayer/app/App.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,27 @@
1818
/**
1919
* Service layer defines an application's boundary with a layer of services that establishes
2020
* a set of available operations and coordinates the application's response in each operation.
21-
*
21+
* <p>
2222
* Enterprise applications typically require different kinds of interfaces to the data
2323
* they store and the logic they implement: data loaders, user interfaces, integration gateways,
2424
* and others. Despite their different purposes, these interfaces often need common interactions
2525
* with the application to access and manipulate its data and invoke its business logic. The
2626
* interactions may be complex, involving transactions across multiple resources and the
2727
* coordination of several responses to an action. Encoding the logic of the interactions
2828
* separately in each interface causes a lot of duplication.
29-
*
30-
* The example application demonstrates interactions between a client (App) and a service
31-
* (MagicService). The service is implemented with 3-layer architecture (entity, dao, service).
29+
* <p>
30+
* The example application demonstrates interactions between a client ({@link App}) and a service
31+
* ({@link MagicService}). The service is implemented with 3-layer architecture (entity, dao, service).
3232
* For persistence the example uses in-memory H2 database which is populated on each application
3333
* startup.
3434
*
3535
*/
3636
public class App {
3737

38+
/**
39+
* Program entry point
40+
* @param args command line args
41+
*/
3842
public static void main( String[] args ) {
3943
// populate the in-memory database
4044
initData();

service-layer/src/main/java/com/iluwatar/servicelayer/hibernate/HibernateUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/**
1111
*
12-
* Produces the Hibernate SessionFactory.
12+
* Produces the Hibernate {@link SessionFactory}.
1313
*
1414
*/
1515
public class HibernateUtil {

service-layer/src/test/java/com/iluwatar/servicelayer/app/AppTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
import com.iluwatar.servicelayer.app.App;
66

7+
/**
8+
*
9+
* Application test
10+
*
11+
*/
712
public class AppTest {
813

914
@Test

0 commit comments

Comments
 (0)
X Tutup