On Wed, 17 Apr 2002, Pavel wrote:

> ������ ����� ������� ����������, ���� ��-����� ����� ��� Builder.
> 
> �������� ���� �� Factory � �� ����� ��������� ���� �� ������� ���������
> ������, ����� ����� �������, ���� ����� �������� ������� �� �������
> ������������� ���������� ���������. Factory ���������� �� ����� ���� ���
> ������ ������, ������ �� ������� ���� ��������� �� ��������� �����������
> � �� ����� �� �����������. ���� ����, ���������� ������������ �� �����
> �� �������� ����� ����������, ��� ���������� �� ����������. ������ ��
> Factory pattern � �� ������� pluggable �������, ���������� �������������
> �� ���� � ��� ���������.
��, ���� ��! ���������� �� Factory ���������� �� ����� ��� ��� ������, 
Builder � ��-�����.

�����, �� ��� �� ������, ������ ������ ���� ��� ����� ����� � ������� 
����, ����� ���� �������� ���������� � ��� ������� somethingFactory.

����� ��, �� � ����������� Java ���������� ��� ������ ����� *Factory 
�����. � ���� ���� �������� ��-��������, ����� �� ��������, �� 
*Factory ������ �� �������� �� ��� �� ���������! ���� �� ��� 
������� ������ Factory � Java, ������ �� ���-�������� � ��������� ;-)

���� ���� ��� ���� ������ ������� �� �� ParameterList �� �����.
����� ���� ����� ������� ������-������ �� ����������, ���� �� �������� �� 
�������������� � �� ����� ���� � ����� ��������. ���� �� �� �� ����, �� 
���� �������� ����� ��� pattern Visitor?

����� ������� ����� �� Visitor, ��� ��� �� ������ �� ������������ 
��������, � ����� �� �������� ������� �� Visitor �� �� ����� ����.

����� ���� �������� ��������� �� Visitor:

Represent an operation to be performed on the elements of an object 
structure. Visistor lets you define a new operation without changing the 
classes of the elements on which it operates.

����� ��� �� ������ � �� Visitor, �� ���� ����� ������� ;-)))



�������� �� ������,

�������� ��������

--
[EMAIL PROTECTED]




Reply via email to