public final class Multicaster extends Object
Multicaster
is a utility that can call a given method on a
collection of objects that implement one or more common interfaces. The create
method returns a proxy that can be cast to any of the the interfaces passed and be
used like a single object.Modifier and Type | Class and Description |
---|---|
static interface |
Multicaster.InvokeListener |
Modifier and Type | Method and Description |
---|---|
static Object |
create(Class<?>[] interfaces,
Collection<?> objects) |
static Object |
create(Class<?>[] interfaces,
Collection<?> objects,
Multicaster.InvokeListener listener) |
static Object |
create(Class<?> theInterface,
Collection<?> objects) |
static Object |
create(Class<?> theInterface,
Collection<?> objects,
Multicaster.InvokeListener listener) |
public static Object create(Class<?> theInterface, Collection<?> objects)
public static Object create(Class<?> theInterface, Collection<?> objects, Multicaster.InvokeListener listener)
public static Object create(Class<?>[] interfaces, Collection<?> objects)
public static Object create(Class<?>[] interfaces, Collection<?> objects, Multicaster.InvokeListener listener)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.