Design Patterns: Elements of Reusable Object-Oriented Software 1St Edition - Ebook PDF
Design Patterns: Elements of Reusable Object-Oriented Software 1St Edition - Ebook PDF
https://ebookluna.com/download/design-patterns-elements-of-
reusable-object-oriented-software-ebook-pdf/
OR CLICK BUTTON
DOWLOAD EBOOK
https://ebookluna.com/download/c-programming-an-object-oriented-
approach-1e-ise-ebook-pdf/
https://ebookluna.com/product/ebook-pdf-microsoft-visual-c-an-introduction-
to-object-oriented-programming-7th-edition/
https://ebookluna.com/product/ebook-pdf-elements-of-visual-design-in-the-
landscape-3rd-edition/
https://ebookluna.com/product/ebook-pdf-machine-elements-in-mechanical-
design-6th-edition/
(eBook PDF) Elements and Principles of 4D Art and Design by Ellen Mueller
https://ebookluna.com/product/ebook-pdf-elements-and-principles-of-4d-art-
and-design-by-ellen-mueller/
https://ebookluna.com/download/elements-of-structures-and-defects-of-
crystalline-materials-ebook-pdf/
https://ebookluna.com/download/elements-of-structures-and-defects-of-
crystalline-materials-ebook-pdf-2/
https://ebookluna.com/download/environmentally-oriented-modernization-of-
power-boilers-ebook-pdf/
(eBook PDF) Computer Organization and Design ARM Edition: The Hardware
Software Interface
https://ebookluna.com/product/ebook-pdf-computer-organization-and-design-
arm-edition-the-hardware-software-interface/
Design Patterns
Elements of Reusable Object-Oriented Software
Produced by KevinZhang
Design Patterns: Elements of Reusable Object-Oriented Software
Contents
Preface to CD ........................................................ 5
Foreword ............................................................. 9
1 Introduction ...................................................... 11
1.1 What Is a Design Pattern? ...................................... 12
1.2 Design Patterns in Smalltalk MVC ............................... 14
1.3 Describing Design Patterns ..................................... 16
1.4 The Catalog of Design Patterns ................................. 18
1.5 Organizing the Catalog ......................................... 21
1.6 How Design Patterns Solve Design Problems ...................... 23
1.7 How to Select a Design Pattern ................................. 42
1.8 How to Use a Design Pattern .................................... 44
2
Design Patterns: Elements of Reusable Object-Oriented Software
3
Design Patterns: Elements of Reusable Object-Oriented Software
4
Design Patterns: Elements of Reusable Object-Oriented Software
Preface to CD
Now, three years after its debut, we find ourselves both grateful andthrilled
by how the book has been received. Lots of people use it.Many tell us the patterns
have helped them design and build bettersystems. Many others have been inspired
to write their own patterns,and the pool of patterns is growing. And many have
commented on whatmight be improved about the book and what they would like to
see inthe future.
A recurring comment in all the feedback has been how well-suited thebook is to
hypertext. There are numerous cross-references, andchasing references is
something a computer can do very well. Sincemuch of the software development
process takes place on computers, itwould be natural to have a book like ours
as an on-line resource.Observations like these got us excited about the potential
of thismedium. So when Mike Hendrickson approached us about turning the bookinto
a CD-ROM, we jumped at the chance.
Two years and several megabytes of e-mail later, we're delighted thatyou can
finally obtain this edition, the Design Patterns CD,and put its unique capabilities
to work. Now you can access a patternfrom your computer even when someone has
borrowed your book. You can search the text for key words and phrases. It's also
considerably easier to incorporate parts of it in your own on-line
documentation.And if you travel with a notebook computer, you can keep the
bookhandy without lugging an extra two pounds of paper.
for their development effort andfor patience despite what must appear to have
been our insatiableappetite for revision. A special acknowledgment is due IBM
Research,which continues to underwrite much of this activity. We also thankthe
reviewers, including Robert Brunner, Sandeep Dani, Bob Koss, ScottMeyers, Stefan
Schulz, and the Patterns Discussion Group at theUniversity of Illinois
Urbana-Champaign. Their advice led to at leastone major redesign and several minor
ones.
Finally, we thank all who have taken time to comment on DesignPatterns. Your
feedback has been invaluable to us as we striveto better our understanding and
presentation of this material.
August 1997
6
Design Patterns: Elements of Reusable Object-Oriented Software
Preface to Book
On the other hand, this isn't an advanced technical treatise either. It’s a book
of design patterns that describes simple and elegant solutions to specific problems
in object-oriented software design. Design patterns capture solutions that have
developed and evolved overtime. Hence they aren't the designs people tend to
generate initially. They reflect untold redesign and recoding as developers have
struggled for greater reuse and flexibility in their software. Design patterns
capture these solutions in a succinct and easily applied form.
The design patterns require neither unusual language features nor amazing
programming tricks with which to astound your friends and managers. All can be
implemented in standard object-oriented languages, though they might take a little
more work than ad hoc solutions. But the extra effort invariably pays dividends
in increased flexibility and reusability.
Once you understand the design patterns and have had an "Aha!" (and not just a
"Huh?") experience with them, you won't ever think about object-oriented design
in the same way. You'll have insights that can make your own designs more flexible,
modular, reusable, and understandable—which is why you're interested in
object-oriented technology in the first place, right?
A word of warning and encouragement: Don't worry if you don’t understand this
book completely on the first reading. We didn’t understand it all on the first
writing! Remember that this isn't a book to read once and put on a shelf. We hope
you'll find yourself referring to it again and again for design insights and for
inspiration.
This book has had a long gestation. It has seen four countries, three of its authors'
marriages, and the birth of two (unrelated) offspring.Many people have had a part
in its development. Special thanks are due Bruce Anderson, Kent Beck, and André
Weinand for their inspiration and advice. We also thank those who reviewed drafts
of the manuscript: Roger Bielefeld, Grady Booch, Tom Cargill, Marshall Cline,
Ralph Hyre, Brian Kernighan, Thomas Laliberty, Mark Lorenz, Arthur Riel, Doug
Schmidt, Clovis Tondo, Steve Vinoski, andRebecca Wirfs-Brock. We are also grateful
to the team at Addison-Wesley for their help and patience: Kate Habib,Tiffany
Moore,Lisa Raffaele,Pradeepa Siva, and John Wait.Special thanks to Carl Kessler,
7
Design Patterns: Elements of Reusable Object-Oriented Software
Danny Sabbah, and Mark Wegman at IBMResearch for their unflagging support of this
work.
Last but certainly not least, we thank everyone on the Internet andpoints beyond
who commented on versions of the patterns, offeredencouraging words, and told
us that what we were doing was worthwhile.These people include but are not limited
toJon Avotins,Steve Berczuk,Julian Berdych,Matthias Bohlen,John Brant,Allan
Clarke,Paul Chisholm,Jens Coldewey,Dave Collins,Jim Coplien,Don
Dwiggins,Gabriele Elia,Doug Felt,Brian Foote,Denis Fortin,Ward Harold,Hermann
Hueni,Nayeem Islam,Bikramjit Kalra,Paul Keefer,Thomas Kofler,Doug Lea,Dan
LaLiberte,James Long,Ann Louise Luu,Pundi Madhavan,Brian Marick,Robert
Martin,Dave McComb,Carl McConnell,Christine Mingins,Hanspeter Mössenböck,Eric
Newton,Marianne Ozkan,Roxsan Payette,Larry Podmolik,George Radin,Sita
Ramakrishnan,Russ Ramirez,Alexander Ran,Dirk Riehle,Bryan Rosenburg,Aamod
Sane,Duri Schmidt,Robert Seidl,Xin Shu,and Bill Walker.
August 1994
8
Design Patterns: Elements of Reusable Object-Oriented Software
Foreword
The impact of this work cannot be overstated. As I travel aboutthe world working
with projects of varying domains andcomplexities, it is uncommon for me to
encounter developers whohave not at least heard of the patterns movement. In the
moresuccessful projects, it is quite common to see many of thesedesign patterns
actually used.
With this book, the Gang of Four have made a seminalcontribution to software
engineering. There is much to learnedfrom them, and much to be actively applied.
Grady Booch
Chief Scientist, Rational Software Corporation
9
Design Patterns: Elements of Reusable Object-Oriented Software
Guide to Readers
This book has two main parts. The first part (Chapters 1 and 2)describes what
design patterns are and how they help you designobject-oriented software. It
includes a design case study thatdemonstrates how design patterns apply in practice.
The second partof the book (Chapters 3, 4, and 5) is a catalog of the actual
designpatterns.
The catalog makes up the majority of the book. Its chapters dividethe design
patterns into three types: creational, structural, andbehavioral. You can use
the catalog in several ways. You can readthe catalog from start to finish, or
you can just browse from patternto pattern. Another approach is to study one of
the chapters. Thatwill help you see how closely related patterns distinguish
themselves.
You can use the references between the patterns as a logicalroute through the
catalog. This approach will give you insightinto how patterns relate to each other,
how they can be combinedwith other patterns, and which patterns work well together.
Figure 1.1(page 23) depicts these references graphically.
It's hard to find an object-oriented system that doesn't use at leasta couple
of these patterns, and large systems use nearly all of them.This subset will help
you understand design patterns in particular andgood object-oriented design in
general.
10
Visit https://testbankfan.com
now to explore a rich
collection of testbank or
solution manual and enjoy
exciting offers!
Design Patterns: Elements of Reusable Object-Oriented Software
1. Introduction
One thing expert designers know not to do is solve every problem from first
principles. Rather, they reuse solutions that have worked for them in the past.
When they find a good solution, they use it again and again. Such experience is
part of what makes them experts. Consequently, you'll find recurring patterns
of classes and communicating objects in many object-oriented systems. These
patterns solve specific design problems and make object-oriented designs more
flexible, elegant, and ultimately reusable. They help designers reuse successful
designs by basing new designs on prior experience. A designer who is familiar
with such patterns can apply them immediately to design problems without having
to rediscover them.
An analogy will help illustrate the point. Novelists and playwrights rarely design
their plots from scratch. Instead, they follow patterns like "Tragically Flawed
Hero" (Macbeth, Hamlet, etc.) or "The Romantic Novel" (countless romance novels).
In the same way, object-oriented designers follow patterns like "represent states
with objects" and "decorate objects so you can easily add/remove features." Once
you know the pattern, a lot of design decisions follow automatically.
We all know the value of design experience. How many times have you had design
déjà-vu—that feeling that you've solved a problem before but not knowing exactly
where or how? If you could remember the details of the previous problem and how
you solved it, then you could reuse the experience instead of rediscovering it.
However, we don't do a good job of recording experience in software design for
others to use.
11
Design Patterns: Elements of Reusable Object-Oriented Software
None of the design patterns in this book describes new or unproven designs. We
have included only designs that have been applied more than once in different
systems. Most of these designs have never been documented before. They are either
part of the folklore of the object-oriented community or are elements of some
successful object-oriented systems—neither of which is easy for novice designers
to learn from. So although these designs aren't new, we capture them in a new
and accessible way: as a catalog of design patterns having a consistent format.
Despite the book's size, the design patterns in it capture only a fraction of
what an expert might know. It doesn't have any patterns dealing with concurrency
or distributed programming or real-time programming. It doesn't have any
application domain-specific patterns. It doesn't tell you how to build user
interfaces, how to write device drivers, or how to use an object-oriented database.
Each of these areas has its own patterns, and it would be worthwhile for someone
to catalog those too.
Christopher Alexander says, "Each pattern describes a problem which occurs over
and over again in our environment, and then describes the core of the solution
to that problem, in such a way that you can use this solution a million times
over, without ever doing it the same way twice" [AIS+77]. Even though Alexander
was talking about patterns in buildings and towns, what he says is true about
object-oriented design patterns. Our solutions are expressed in terms of objects
and interfaces instead of walls and doors, but at the core of both kinds of patterns
is a solution to a problem in a context.
1. The pattern name is a handle we can use to describe a design problem, its
solutions, and consequences in a word or two. Naming a pattern immediately
increases our design vocabulary. It lets us design at a higher level of
abstraction. Having a vocabulary for patterns lets us talk about them with
our colleagues, in our documentation, and even to ourselves. It makes it
easier to think about designs and to communicate them and their trade-offs
to others. Finding good names has been one of the hardest parts of developing
our catalog.
2. The problem describes when to apply the pattern. It explains the problem
and its context. It might describe specific design problems such as how
to represent algorithms as objects. It might describe class or object
structures that are symptomatic of an inflexible design. Sometimes the
problem will include a list of conditions that must be met before it makes
sense to apply the pattern.
3. The solution describes the elements that make up the design, their
relationships, responsibilities, and collaborations. The solution doesn't
describe a particular concrete design or implementation, because a pattern
is like a template that can be applied in many different situations. Instead,
the pattern provides an abstract description of a design problem and how
a general arrangement of elements (classes and objects in our case) solves
it.
4. The consequences are the results and trade-offs of applying the pattern.
Though consequences are often unvoiced when we describe design decisions,
they are critical for evaluating design alternatives and for understanding
the costs and benefits of applying the pattern. The consequences for
software often concern space and time trade-offs. They may address language
and implementation issues as well. Since reuse is often a factor in
object-oriented design, the consequences of a pattern include its impact
on a system's flexibility, extensibility, or portability. Listing these
consequences explicitly helps you understand and evaluate them.
Point of view affects one's interpretation of what is and isn't a pattern. One
person's pattern can be another person's primitive building block. For this book
we have concentrated on patterns at a certain level of abstraction. Design patterns
are not about designs such as linked lists and hash tables that can be encoded
in classes and reused as is. Nor are they complex, domain-specific designs for
an entire application or subsystem. The design patterns in this book are
descriptions of communicating objects and classes that are customized to solve
a general design problem in a particular context.
A design pattern names, abstracts, and identifies the key aspects of a common
design structure that make it useful for creating a reusable object-oriented design.
The design pattern identifies the participating classes and instances, their roles
and collaborations, and the distribution of responsibilities. Each design pattern
13
Design Patterns: Elements of Reusable Object-Oriented Software
MVC consists of three kinds of objects. The Model is the application object, the
View is its screen presentation, and the Controller defines the way the user
interface reacts to user input. Before MVC, user interface designs tended to lump
these objects together. MVC decouples them to increase flexibility and reuse.
The following diagram shows a model and three views. (We've left out the controllers
for simplicity.) The model contains some data values, and the views defining a
14
Design Patterns: Elements of Reusable Object-Oriented Software
spreadsheet, histogram, and pie chart display these data in various ways. The
model communicates with its views when its values change, and the views communicate
with the model to access these values.
Taken at face value, this example reflects a design that decouples views from
models. But the design is applicable to a more general problem: decoupling objects
so that changes to one can affect any number of others without requiring the changed
object to know details of the others. This more general design is described by
the Observer (page 326) design pattern.
Another feature of MVC is that views can be nested. For example, a control panel
of buttons might be implemented as a complex view containing nested button views.
The user interface for an object inspector can consist of nested views that may
be reused in a debugger. MVC supports nested views with the CompositeView class,
a subclass of View. CompositeView objects act just like View objects; a composite
view can be used wherever a view can be used, but it also contains and manages
nested views.
Again, we could think of this as a design that lets us treat a composite view
just like we treat one of its components. But the design is applicable to a more
general problem, which occurs whenever we want to group objects and treat the
group like an individual object. This more general design is described by the
15
Discovering Diverse Content Through
Random Scribd Documents
his duty in view of the spread of destitution. This perplexity, M. Guizot
contends, was that not of a sordid placeman, but of “a sincere and
conscientious mind carried forward in the direction of its own inclination by
a great flood of public opinion and passion, and struggling painfully against
its adversaries, its friends, and itself.” When the Queen met Sir Robert Peel
with a smile on the 20th of December, and said “she was glad to be able to
ask him to withdraw his resignation,” she was, according to this theory,
really lifting a cloud of gloom from his anxious head, and congratulating
him on the ending of that state of suspense in which his troubled mind had
been painfully poised. It may be a
DOG’S HEAD.
(Drawn and Etched by the
Prince Consort.)
CHAPTER XIII.
It was on the 19th of January, 1846,[36] that the Queen opened in person the
Parliament which revolutionised the commercial policy of England, and
transferred the political centre of gravity from the territorial to the
commercial aristocracy of the country. The Royal procession was formed at
Buckingham Palace in the usual order. Her Majesty and Prince Albert
descended the grand staircase shortly before two o’clock, the Queen
wearing a lustrous diamond circlet on her fair white brow. The Prince was
habited in a Field-Marshal’s uniform, and the orders of the Garter and
Golden Fleece shone on his breast. The State coach with its eight cream-
coloured horses then drove with the Royal party to the Palace of the
Legislature, and as her Majesty passed through the densely crowded Royal
Gallery it was seen that she was labouring under deep but suppressed
emotion.
From the Throne she read, in clear but thrilling tones, the following
speech:—
“My Lords and Gentlemen,—
“It gives me great satisfaction again to meet you in Parliament, and to have the
opportunity of recurring to your assistance and advice.
“I continue to receive from my allies, and from other foreign Powers, the strongest
assurances of the desire to cultivate the most friendly relations with this country.
“I rejoice that, in concert with the Emperor of Russia, and through the success of our
joint mediation, I have been enabled to adjust the differences which have long prevailed
between the Ottoman Porte and the King of Persia, and had seriously endangered the
tranquillity of the East.
“For several years a desolating and sanguinary warfare has afflicted the States of the
Rio de la Plata. The commerce of all nations has been interrupted, and acts of barbarity
have been committed unknown to the practice of a civilised people. In conjunction with the
King of the French I am endeavouring to effect the pacification of these States.
“The Convention concluded with France in the course of last year, for the more
effectual suppression of the Slave Trade, is about to be carried into immediate execution by
the active co-operation of the two Powers on the coast of Africa. It is my desire that our
present union, and the good understanding which so happily exists between us, may always
be employed to promote the interests of humanity, and to secure the peace of the world.
THE QUEEN OPENING PARLIAMENT IN 1846.
OPENING OF PARLIAMENT IN 1846: ARRIVAL OF THE
ROYAL PROCESSION AT THE HOUSE OF LORDS. (See p.
220.)
“I regret that the conflicting claims of Great Britain and the United States, in respect of
the territory on the north-western coast of America, although they have been made the
subject of repeated negotiation, still remain unsettled. You may be assured that no effort,
consistent with national honour, shall be wanting on my part to bring this question to an
early and peaceful termination.
“I have observed with great regret the frequent instances in which the crime of
deliberate assassination has been of late committed in Ireland. It will be for you only to
consider whether any measures can be devised calculated to give increased protection to
life, and to bring to justice the perpetrators of so dreadful a crime.
“I have to lament that in consequence of a failure of the potato crop in many parts of
the United Kingdom there will be a deficient supply of an article of food which forms the
chief subsistence of great numbers of my people. The disease by which the plant has been
affected has prevailed to the utmost extent in Ireland. I have adopted all such precautions
as it was in my power for the purpose of alleviating the sufferings which may be caused by
this calamity; and I shall confidently rely on your co-operation in devising such other
means for effecting the same benevolent purpose as may require the sanction of the
Legislature.
“I have had great satisfaction in giving my assent to the measures which you have
presented to me from time to time, calculated to extend commerce, and to stimulate
domestic skill and industry, by the repeal of prohibitory and the relaxation of protective
duties. The prosperous state of the revenue, the increased demand for labour, and the
general improvement which has taken place in the internal conditions of the country are
strong testimonies in favour of the course you have pursued.
“I recommend you to take into your early consideration, whether the principles on
which you have acted may not with advantage be more extensively applied, and whether it
may not be in your power, after a careful review of the existing duties on many articles, the
produce of manufacture of other countries, to make such further reductions and remissions
as may tend to ensure the continuance of the great benefits to which I have adverted, and,
by enlarging our commercial intercourse, to strengthen the bonds of amity with Foreign
Powers.
“Any measures which you may adopt for effecting these great objects will, I am
convinced, be accompanied by such precautions as shall prevent permanent loss to the
revenue, or injurious results to any of the great interests of the country.
“I have full reliance on your just and dispassionate consideration of matters so deeply
affecting the public welfare.
“It is my earnest prayer that, with the blessing of Divine Providence on your councils,
you may be enabled to promote friendly feelings between different classes of my subjects,
to provide additional security for the continuance of peace, and to maintain contentment
and happiness at home, by increasing the comfort and bettering the condition of the great
body of my people.”
When the Queen retired, then the difficulty of some of our Constitutional
forms became apparent. It was remarked at the time that, had her Majesty
suddenly come down in the middle of the Session, and, usurping the
functions of Ministers, laid a startling project of legislation before
Parliament, she could not have found herself more thoroughly the mover of
a controversial Bill than, in spite of herself, she had become that afternoon.
Every caution had been exercised, it will be observed, in keeping all
mention of the Corn duties out of the Royal Speech. Yet, within a few hours
after it was read, the two Houses were engaged in an acrimonious debate,
not on the guarded generalities of the Address from the Throne, but on the
proposal for the total and immediate Repeal of the Corn Laws. The Queen’s
Speech, looked at apart from the events of the day, might seem to
recommend something less than that. But it was that, and nothing less,
which was in men’s minds and hearts, and for once in our Parliamentary
history the Debate on the Address was not a barren criticism of the general
policy of the Government, but really a sharp discussion on a special
measure foreshadowed dimly in the Royal Speech.
The story of the Parliamentary Session of 1846, in its bearing on the fate
of the Corn Law Bill, has been so ably told both by Dr. Cooke Taylor, in his
“Life and Times of Sir Robert Peel,” and by Mr. John Morley, in his “Life
of Cobden,” that it is hardly necessary here to do more than glance at its
salient points. In the House of Lords the debate on the Address was brief
and bitter—at least as bitter as the Duke of Richmond, who assailed Sir
Robert Peel, could make it. But in the House of Commons the proceedings
were more exciting. Lord Francis Egerton (afterwards Earl of Ellesmere)
moved, and Mr. Beckett Denison, who had driven Lord Morpeth out of his
seat for the West Riding, because his Lordship had joined the Anti-Corn-
Law League, seconded the Address. Sir Robert Peel followed, and
vindicated his change of policy, resting the chief strength of his case on his
own observations, first, of the effect of the gradual relaxation of Protective
duties which he had tried, and secondly, on the failure of the potato crop—a
report on which had been drawn up for him by Professor Lindley and Dr.
Lyon Playfair. It was in this speech that he intimated he was at first
prepared to suspend the Corn Law by an Order in Council, but that his
colleagues objected to that course on the ground that, if once opened to
foreign corn, the ports could never again be closed. Lord John Russell
followed, and explained how he had failed to form a Ministry; and then
Lord George Bentinck, waiving his right as leader of the Protectionists to
reply, put up Mr. Disraeli to deliver one of the first of those violent
philippics against Peel which gave him a unique reputation as a
Parliamentary sabreur. What could the House think of a statesman, he
asked, who having, as he had boasted, served four sovereigns, was finally
compelled, by the observations of the last three years, to change his opinion
on a subject which had been discussed in his hearing from every
conceivable point of view during a quarter of a century? He likened him to
the Capitan Pasha of the Sultan, who, on the plea that he hated a war, ended
it by going over to the enemy, and betraying his Imperial master. Peel’s
speech, said Mr. Disraeli, was “a glorious example of egotistical rhetoric.”
He was “no more a great statesman than a man who got up behind a
carriage was a great whip. Both were anxious for progress, and both wanted
a good place.” It was a brilliant, dazzling, witty harangue, and it caught the
humour, not of the betrayed Protectionists merely, but to some extent of the
House also. Looking back on Peel’s speech now, one can detect a false note
in it. Dr. Samuel Wilberforce, Bishop of Oxford, who went to hear the
debate, in a letter to Miss Noel, says that the Prime Minister’s statement
was received with “a kind of thundering sullenness.”[37] He unconsciously
irritated the House by his assumption that the case for the Corn Laws must
needs fall after he had personally put the matter to the test of a three years’
ST. STEPHEN’S CLOISTERS, WESTMINSTER HALL.
experiment. It lessened the grace of his submission to events and facts,
when he argued as if the observations and experiments and researches of all
the greatest economists in the world during a score of years were not in any
sense conclusive till verified by Sir Robert Peel. And all through the
debates, it is quite clear that he contrived to embitter his opponents by
seeming to talk down to them. His tone was that of one who thought they
were rather to be pitied than blamed, because they could not understand that
if three years had sufficed to change the opinion of their leader, three
minutes ought to suffice for the conversion of his followers. One crisis and
one set of circumstances hardly convinced men, whose class interests were
at stake, that Protection was wrong, especially after Sir Robert
LORD STANLEY (AFTERWARDS FOURTEENTH EARL
OF DERBY).
Peel himself had taught them to disregard the experience of a quarter of
a century. Peel, when he showed how keenly he felt Mr. Disraeli’s
sarcasms, failed to remember that the arrows which stung him came from
his own quiver.
A few days after the Session opened, Sir Robert Peel, in explaining his
plan for getting rid of the Corn duties, made it clear that Repeal was to be
total, but not immediate. Writing to Mrs. Cobden on the 28th of January,
Cobden says:—“Peel is at last delivered, but I hardly know whether to call
it a boy or a girl. Something between the two, I believe. His Corn measure
makes an end of all Corn laws in 1849, and in the meantime it is virtually a
fixed duty of 4s. He has done more than was expected of him, and all but
the right thing.” As a matter of fact, there was to be a sliding scale till 1849,
the maximum duty being 10s. when wheat was under 48s. a quarter, and the
minimum duty being 4s. when wheat was 54s. a quarter. On the 2nd of
March, when the House went into Committee on the resolution, Mr.
Villiers’ amendment, insisting on immediate, as well as total, Repeal, was
lost by a large majority, and on the 11th of May the Corn Bill reached the
third reading. The debate lasted three nights, and at 4 a.m. on the 16th it
was passed by a majority of 98 in a House of 516.
Before tracing the subsequent stages of this controversy, it may not be
amiss to allude to one of the most curious incidents that marked its
progress. On the 27th of January, when Sir Robert Peel’s resolutions
embodying his financial policy came before the House of Commons, the
presence of Prince Albert in the gallery, as a spectator of the scene, roused
the jealousy and wrath of the Tories. Lord George Bentinck, in the course of
the debate, waved his hand excitedly towards his Royal Highness, and
accused him of being “seduced by the First Minister of the Crown to come
down to this House to usher in, to give éclat, and, as it were, by reflection
from the Queen, to give the semblance of a personal sanction of her
Majesty to a measure which, be it for good or evil, a great majority at least
of the landed, aristocracy of England, of Scotland, and of Ireland, imagine
fraught with deep injury, if not ruin, to them.” This was an insinuation at
once ridiculous and unjust. The truth is that the Queen, from her girlhood,
has had a somewhat exaggerated idea of the instructive value of
Parliamentary debates. She is to this day an ardent student of all
Parliamentary reports. She has the true Parliamentary instinct peculiar to
England and English-speaking communities which leads them to take a
strange but genuine delight in Parliamentary discussion. Indeed, she has
been known to tell her Ministers not only what she thought of a particular
debate, but how she herself would have handled the subject-matter of it had
she been a member of the House of Commons; in fact, it was in replying to
a communication of this kind that Lord Palmerston once observed, in the
felicitous vein of a courtier, that it was a lucky thing for Ministers who had
the misfortune to differ from her Majesty, that they had not to answer her
arguments in Parliament. Under the influence of these ideas, the Queen
naturally induced Prince Albert to attend the great historic debate of the
14th of January—“to hear a fine debate,” as she herself has said, “being so
useful to all princes.”[38] Party feeling, however, ran so high in 1846, that
Lord George Bentinck and the Tory Protectionists put the worst
construction on a perfectly innocent act. The Prince Consort simply went to
listen to the discussion, just as the Prince of Wales and his son went to hear
Mr. Gladstone introduce his Government of Ireland Bill in the House of
Commons on the 8th of April, 1886; and it is a mark of the sweetened
temper of political life in these latter days that not only did no Tory
complain of the Prince’s presence on that occasion, but nobody even
resented the kid-glove plaudits with which the young Prince Albert Victor,
with the generous but irrepressible enthusiasm of youth, greeted Mr.
Gladstone’s stately and impressive peroration.[39] Lord George Bentinck’s
attack on the Prince Consort was deficient alike in tact and taste; but it is
only fair to say that there was the shadow of an excuse for it. It had been
whispered that the Court had become Peelite—and the rumour was not
without foundation in fact. The Prince Consort reflected its sympathies
quite accurately when he wrote to Baron Stockmar, on the 16th of February,
that Peel was “abused like the most disgraceful criminal,” adding not only
that factions would combine to crush him—as they did—but that this
“would be a great misfortune.”
In the House of Lords the course of the Corn Bill was comparatively
smooth. Lord Stanley took the leadership of the Protectionists, but the
disintegration of parties was complete. Nothing illustrates this better than a
caustic remark which Lord Stanley threw out at a great political dinner-
party at his house, two days after the Bill had been passed by the Commons.
On that occasion he said, scoffingly, that it was most diverting to see a
Liberal like Lord Bessborough whipping up the Bishops to support the
Duke of Wellington on a Free Trade question.[40] In the Upper House the
opposition to the Bill virtually collapsed. Lord Stanley, when
argumentative, was tame, and, when personal, vituperative. The ablest of
the Bishops, in the name of the Church, repudiated the idea that the
Protectionist policy had benefited the rural poor; and Wilberforce
distinguished himself, especially, by his graphic picture of the sufferings
which the agricultural labourers were enduring. The Duke of Wellington,
however, decided the matter by telling the Peers that they would be wise to
bow to public opinion with a good grace, and not commit themselves to a
struggle between the Crown and the people. But he was hardly candid in
pretending that the Crown in this matter was opposed to the people. This
idea can be disproved by an extract from that remarkable letter in which the
Queen, in speaking of Peel’s resumption of office, eulogises his chivalrous
behaviour towards herself, and adds, with unaffected sincerity, “I have
never seen him so excited and determined, and such a good cause must
succeed.”[41] The Lords, however, acting on the Duke’s advice, only
engaged in a sham fight, and the final stage of the Bill passed without
debate or division. The night on which Peel’s triumph in the Lords was
announced was the night on which, however, his Ministry fell in the
Commons. It was the night on which a combination of factions, as the
Prince Consort had predicted, rejected what was called the Coercion Bill for
Ireland, and wrecked the most popular Cabinet that ever governed England.
It has already been said that the unruly state of Ireland had been
LORD CAMPBELL.
Balzac’s story, that loses its virtue by repeated use on trivial occasions.
“The hope of getting a stronger minority,” said Peel, in his Memorandum to
the Duke of Wellington, “is no justification for a Dissolution.” And yet,
with all his popularity, that was his highest hope. The differences between
Lord John Russell and Lord Grey were not acute enough to cause a schism
in the Whig Party. The Free Traders, on whom the Duke of Wellington
relied so much, had given all the glory of Repeal to Cobden. They were
exhausting their energies and enthusiasm in organising a testimonial to him,
and had none to spare for the reconstruction of a new Party of Progressive
Reform, under the leadership of Peel. As for the Radicals and the Irish
Nationalists, they would have declared war to the knife against the Minister
who made Coercion for Ireland his cry. As for the Tory Party, Sir Robert
was to them in the position of the man mentioned in Scripture, who found
his worst foes in his own household. On the whole, it was perhaps wise that
he resisted the temptation to yield to such potent influences as those of the
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookluna.com