| Class | MUES::GetServiceAdapterEvent |
| In: |
lib/mues/events/serviceevents.rb
(CVS)
|
| Parent: | ServiceEvent |
Adapter request event
| args | [R] | The array of arguments that should be passed to the adapter‘s constructor. |
| callback | [R] | The callback (a Method or Proc object) to pass the new adapter to. |
Create and return a new GetServiceAdapterEvent object with the specified serviceName as its target, the specified arguments, which will be passed as arguments to the adapter‘s constructor, and the specified callback or callbackBlock. If a callback object (a Method or Proc object) is given, the callbackBlock argument is ignored. At least one of the callbacks must be defined.
# File lib/mues/events/serviceevents.rb, line 68 def initialize( serviceName, args=[], callback=nil, &callbackBlock ) super( serviceName ) raise ArgumentError, "You must specify either an explicit callback method " + "or a callback block." unless callback || callbackBlock @args = args @callback = callback || callbackBlock end