PacktLib: Object-Oriented Programming in ColdFusion

Object-Oriented Programming in ColdFusion

Credits

Foreword

About the Author

Acknowledgement

About the Reviewer

Preface

Introducing ColdFusion Components

Why use CFCs?

The ColdFusion component tags

Our first component

Restricting your functions to scopes

Protecting your local variables

Accessing your CFC

Passing arguments into an instance method call

Arguments in action

Creating an object constructor

Summary

Effective Component Development

Pseudo-constructors

Returning values and variables

Access properties

Getting information about your CFC

Detailed introspection

Summary

Building Your First Bean

What is a Bean?

The benefit of using beans

Creating our first Bean

Populating the Bean

Helpful objects

Implicit accessors

Summary

Inheritance and Object-Oriented Concepts

What is Inheritance?

The inheritance hierarchy

Polymorphism

Composition

Aggregation

Summary

Data Access Objects

What is a Data Access Object?

Creating a Data Access Object

Dependency Injection

Summary

Gateways

What is a Gateway?

A typical ColdFusion Gateway

The Gateway discussion

Summary

Creating a Service Layer

What is a Service Layer?

Creating a service

Defining the address service

Summary