com.isima.zz3.advjava.tp1.strategyandfactorymethod
Class ACreator

java.lang.Object
  extended by com.isima.zz3.advjava.tp1.strategyandfactorymethod.ACreator
Direct Known Subclasses:
Creator1, Creator2

public abstract class ACreator
extends java.lang.Object

Author:
brunot

Constructor Summary
ACreator()
           
 
Method Summary
abstract  AProduct createProduct()
           
 AStrategy getStrategy()
          Getter of the property strategy_
 void operation()
          Opération quelconque.
protected  void setStrategy(AStrategy strategy)
          Setter of the property strategy_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACreator

public ACreator()
Method Detail

createProduct

public abstract AProduct createProduct()

getStrategy

public AStrategy getStrategy()
Getter of the property strategy_

Returns:
Returns the strategy_.

setStrategy

protected void setStrategy(AStrategy strategy)
Setter of the property strategy_

Parameters:
strategy - The strategy_ to set.

operation

public void operation()
Opération quelconque.