diff --git a/prototype/src/main/java/com/iluwatar/App.java b/prototype/src/main/java/com/iluwatar/App.java index e94c834e3..ff3790010 100644 --- a/prototype/src/main/java/com/iluwatar/App.java +++ b/prototype/src/main/java/com/iluwatar/App.java @@ -1,5 +1,12 @@ package com.iluwatar; +/** + * + * In Prototype we have a factory class (HeroFactoryImpl) producing + * objects by cloning existing ones. In this example the factory's + * prototype objects are given as constructor parameters. + * + */ public class App { public static void main( String[] args ) diff --git a/prototype/src/main/java/com/iluwatar/HeroFactory.java b/prototype/src/main/java/com/iluwatar/HeroFactory.java index 1d663c77f..e7145fa88 100644 --- a/prototype/src/main/java/com/iluwatar/HeroFactory.java +++ b/prototype/src/main/java/com/iluwatar/HeroFactory.java @@ -1,5 +1,10 @@ package com.iluwatar; +/** + * + * Interface for the factory class. + * + */ public interface HeroFactory { Mage createMage(); diff --git a/prototype/src/main/java/com/iluwatar/HeroFactoryImpl.java b/prototype/src/main/java/com/iluwatar/HeroFactoryImpl.java index 522b3f45f..7c96fc8a5 100644 --- a/prototype/src/main/java/com/iluwatar/HeroFactoryImpl.java +++ b/prototype/src/main/java/com/iluwatar/HeroFactoryImpl.java @@ -1,5 +1,10 @@ package com.iluwatar; +/** + * + * Concrete factory class. + * + */ public class HeroFactoryImpl implements HeroFactory { private Mage mage;