Skip to content

Commit

Permalink
iluwatar#108 Consistent package naming throughout the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
iluwatar committed Jul 24, 2015
1 parent af92d8d commit 3d488ec
Show file tree
Hide file tree
Showing 128 changed files with 939 additions and 849 deletions.
83 changes: 53 additions & 30 deletions business-delegate/etc/business-delegate.ucls
Original file line number Diff line number Diff line change
@@ -1,62 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<class-diagram version="1.1.8" icons="true" automaticImage="PNG" always-add-relationships="false" generalizations="true"
realizations="true" associations="true" dependencies="false" nesting-relationships="true">
<class id="1" language="java" name="com.iluwatar.BusinessDelegate" project="business-delegate"
file="/business-delegate/src/main/java/com/iluwatar/BusinessDelegate.java" binary="false" corner="BOTTOM_RIGHT">
<class id="1" language="java" name="com.iluwatar.business.delegate.BusinessDelegate" project="business-delegate"
file="/business-delegate/src/main/java/com/iluwatar/business/delegate/BusinessDelegate.java" binary="false"
corner="BOTTOM_RIGHT">
<position height="-1" width="-1" x="272" y="219"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<class id="2" language="java" name="com.iluwatar.Client" project="business-delegate"
file="/business-delegate/src/main/java/com/iluwatar/Client.java" binary="false" corner="BOTTOM_RIGHT">
<class id="2" language="java" name="com.iluwatar.business.delegate.Client" project="business-delegate"
file="/business-delegate/src/main/java/com/iluwatar/business/delegate/Client.java" binary="false"
corner="BOTTOM_RIGHT">
<position height="-1" width="-1" x="272" y="64"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<enumeration id="3" language="java" name="com.iluwatar.ServiceType" project="business-delegate"
file="/business-delegate/src/main/java/com/iluwatar/ServiceType.java" binary="false" corner="BOTTOM_RIGHT">
<enumeration id="3" language="java" name="com.iluwatar.business.delegate.ServiceType" project="business-delegate"
file="/business-delegate/src/main/java/com/iluwatar/business/delegate/ServiceType.java" binary="false"
corner="BOTTOM_RIGHT">
<position height="-1" width="-1" x="89" y="383"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</enumeration>
<interface id="4" language="java" name="com.iluwatar.BusinessService" project="business-delegate"
file="/business-delegate/src/main/java/com/iluwatar/BusinessService.java" binary="false" corner="BOTTOM_RIGHT">
<interface id="4" language="java" name="com.iluwatar.business.delegate.BusinessService" project="business-delegate"
file="/business-delegate/src/main/java/com/iluwatar/business/delegate/BusinessService.java" binary="false"
corner="BOTTOM_RIGHT">
<position height="-1" width="-1" x="630" y="365"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</interface>
<class id="5" language="java" name="com.iluwatar.JmsService" project="business-delegate"
file="/business-delegate/src/main/java/com/iluwatar/JmsService.java" binary="false" corner="BOTTOM_RIGHT">
<class id="5" language="java" name="com.iluwatar.business.delegate.JmsService" project="business-delegate"
file="/business-delegate/src/main/java/com/iluwatar/business/delegate/JmsService.java" binary="false"
corner="BOTTOM_RIGHT">
<position height="-1" width="-1" x="489" y="210"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<class id="6" language="java" name="com.iluwatar.BusinessLookup" project="business-delegate"
file="/business-delegate/src/main/java/com/iluwatar/BusinessLookup.java" binary="false" corner="BOTTOM_RIGHT">
<class id="6" language="java" name="com.iluwatar.business.delegate.BusinessLookup" project="business-delegate"
file="/business-delegate/src/main/java/com/iluwatar/business/delegate/BusinessLookup.java" binary="false"
corner="BOTTOM_RIGHT">
<position height="-1" width="-1" x="360" y="399"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<class id="7" language="java" name="com.iluwatar.EjbService" project="business-delegate"
file="/business-delegate/src/main/java/com/iluwatar/EjbService.java" binary="false" corner="BOTTOM_RIGHT">
<class id="7" language="java" name="com.iluwatar.business.delegate.EjbService" project="business-delegate"
file="/business-delegate/src/main/java/com/iluwatar/business/delegate/EjbService.java" binary="false"
corner="BOTTOM_RIGHT">
<position height="-1" width="-1" x="668" y="210"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
Expand All @@ -68,40 +75,56 @@
<end type="SOURCE" refId="7"/>
<end type="TARGET" refId="4"/>
</realization>
<realization id="9">
<end type="SOURCE" refId="5"/>
<end type="TARGET" refId="4"/>
</realization>
<association id="10">
<association id="9">
<end type="SOURCE" refId="1" navigable="false">
<attribute id="11" name="lookupService"/>
<multiplicity id="12" minimum="0" maximum="1"/>
<attribute id="10" name="lookupService">
<position height="0" width="0" x="0" y="0"/>
</attribute>
<multiplicity id="11" minimum="0" maximum="1">
<position height="0" width="0" x="0" y="0"/>
</multiplicity>
</end>
<end type="TARGET" refId="6" navigable="true"/>
<display labels="true" multiplicity="true"/>
</association>
<association id="13">
<association id="12">
<end type="SOURCE" refId="1" navigable="false">
<attribute id="14" name="businessService"/>
<multiplicity id="15" minimum="0" maximum="1"/>
<attribute id="13" name="serviceType">
<position height="0" width="0" x="0" y="0"/>
</attribute>
<multiplicity id="14" minimum="0" maximum="1">
<position height="0" width="0" x="0" y="0"/>
</multiplicity>
</end>
<end type="TARGET" refId="4" navigable="true"/>
<end type="TARGET" refId="3" navigable="true"/>
<display labels="true" multiplicity="true"/>
</association>
<realization id="15">
<end type="SOURCE" refId="5"/>
<end type="TARGET" refId="4"/>
</realization>
<association id="16">
<end type="SOURCE" refId="2" navigable="false">
<attribute id="17" name="businessDelegate"/>
<multiplicity id="18" minimum="0" maximum="1"/>
<attribute id="17" name="businessDelegate">
<position height="0" width="0" x="0" y="0"/>
</attribute>
<multiplicity id="18" minimum="0" maximum="1">
<position height="0" width="0" x="0" y="0"/>
</multiplicity>
</end>
<end type="TARGET" refId="1" navigable="true"/>
<display labels="true" multiplicity="true"/>
</association>
<association id="19">
<end type="SOURCE" refId="1" navigable="false">
<attribute id="20" name="serviceType"/>
<multiplicity id="21" minimum="0" maximum="1"/>
<attribute id="20" name="businessService">
<position height="0" width="0" x="0" y="0"/>
</attribute>
<multiplicity id="21" minimum="0" maximum="1">
<position height="0" width="0" x="0" y="0"/>
</multiplicity>
</end>
<end type="TARGET" refId="3" navigable="true"/>
<end type="TARGET" refId="4" navigable="true"/>
<display labels="true" multiplicity="true"/>
</association>
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar;
package com.iluwatar.business.delegate;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar;
package com.iluwatar.business.delegate;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar;
package com.iluwatar.business.delegate;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar;
package com.iluwatar.business.delegate;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar;
package com.iluwatar.business.delegate;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar;
package com.iluwatar.business.delegate;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar;
package com.iluwatar.business.delegate;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar;
package com.iluwatar.business.delegate;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.iluwatar.objectpool;

import org.junit.Test;

import com.iluwatar.objectpool.App;

public class AppTest {

@Test
public void test() {
String[] args = {};
App.main(args);
}
}
package com.iluwatar.business.delegate;

import org.junit.Test;

import com.iluwatar.business.delegate.App;

public class AppTest {

@Test
public void test() {
String[] args = {};
App.main(args);
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar.dependencyinjection;
package com.iluwatar.dependency.injection;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar.dependencyinjection;
package com.iluwatar.dependency.injection;

import com.google.inject.Guice;
import com.google.inject.Injector;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar.dependencyinjection;
package com.iluwatar.dependency.injection;

import javax.inject.Inject;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar.dependencyinjection;
package com.iluwatar.dependency.injection;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar.dependencyinjection;
package com.iluwatar.dependency.injection;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar.dependencyinjection;
package com.iluwatar.dependency.injection;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar.dependencyinjection;
package com.iluwatar.dependency.injection;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar.dependencyinjection;
package com.iluwatar.dependency.injection;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar.dependencyinjection;
package com.iluwatar.dependency.injection;

import com.google.inject.AbstractModule;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar.dependencyinjection;
package com.iluwatar.dependency.injection;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.iluwatar.dependencyinjection;
package com.iluwatar.dependency.injection;

import org.junit.Test;

import com.iluwatar.dependencyinjection.App;
import com.iluwatar.dependency.injection.App;

public class AppTest {

Expand Down
16 changes: 10 additions & 6 deletions double-checked-locking/etc/double-checked-locking.ucls
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<class-diagram version="1.1.8" icons="true" automaticImage="PNG" always-add-relationships="false" generalizations="true"
realizations="true" associations="true" dependencies="false" nesting-relationships="true">
<class id="1" language="java" name="com.iluwatar.doublecheckedlocking.Item" project="double-checked-locking"
file="/double-checked-locking/src/main/java/com/iluwatar/doublecheckedlocking/Item.java" binary="false"
<class id="1" language="java" name="com.iluwatar.doublechecked.locking.Item" project="double-checked-locking"
file="/double-checked-locking/src/main/java/com/iluwatar/doublechecked/locking/Item.java" binary="false"
corner="BOTTOM_RIGHT">
<position height="124" width="205" x="146" y="504"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
Expand All @@ -11,8 +11,8 @@
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<class id="2" language="java" name="com.iluwatar.doublecheckedlocking.Inventory" project="double-checked-locking"
file="/double-checked-locking/src/main/java/com/iluwatar/doublecheckedlocking/Inventory.java" binary="false"
<class id="2" language="java" name="com.iluwatar.doublechecked.locking.Inventory" project="double-checked-locking"
file="/double-checked-locking/src/main/java/com/iluwatar/doublechecked/locking/Inventory.java" binary="false"
corner="BOTTOM_RIGHT">
<position height="142" width="205" x="146" y="322"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
Expand All @@ -23,8 +23,12 @@
</class>
<association id="3">
<end type="SOURCE" refId="2" navigable="false">
<attribute id="4" name="items"/>
<multiplicity id="5" minimum="0" maximum="2147483647"/>
<attribute id="4" name="items">
<position height="0" width="0" x="0" y="0"/>
</attribute>
<multiplicity id="5" minimum="0" maximum="2147483647">
<position height="0" width="0" x="0" y="0"/>
</multiplicity>
</end>
<end type="TARGET" refId="1" navigable="true"/>
<display labels="true" multiplicity="true"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar.doublecheckedlocking;
package com.iluwatar.doublechecked.locking;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar.doublecheckedlocking;
package com.iluwatar.doublechecked.locking;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.iluwatar.doublecheckedlocking;
package com.iluwatar.doublechecked.locking;

public class Item {
String name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.iluwatar.factorymethod;

import org.junit.Test;

import com.iluwatar.factorymethod.App;

public class AppTest {

@Test
public void test() {
String[] args = {};
App.main(args);
}
}
package com.iluwatar.doublechecked.locking;

import org.junit.Test;

import com.iluwatar.doublechecked.locking.App;

public class AppTest {

@Test
public void test() {
String[] args = {};
App.main(args);
}
}
Loading

0 comments on commit 3d488ec

Please sign in to comment.