-
Notifications
You must be signed in to change notification settings - Fork 8
Using the object factory
marcesher edited this page Apr 13, 2012
·
1 revision
CFConcurrent provides several convenience Service objects that lube the friction when using the underlying Java objects with ColdFusion.
Just as important, CFConcurrent provides an ObjectFactory that simplifies some of the more tedious aspects of working with the Java Concurrency Framework with ColdFusion.
In there, you'll find methods for:
- creating "proxies", which are necessary to submit your CFC instances to the JCF
- creating
Queues - creating Executors and Services
- easily working with
TimeUnits - creating rejection policies
Note that, by design, the ObjectFactory does not expose methods for creating every single object provided by the Java Concurrency Framework; rather, in adherence to its goals, it exposes methods for simplifying the tedious parts. When you need to create and work with other parts of the JCF, simply use createObject( 'java', 'java.util.concurrent.Whatever' )