public final class ReflectiveDelegateFactory extends Object
DelegatingOperationExecutor
instances.
That delegate is to be created by receiving the delegates Class
and a configurationInstance
that it will be related to.
The provided Class
is expected to have a public Constructor
which takes a configuration instance
as its only argument, since per the rules of ExtensionManager#getOperationExecutor(Operation, Object)
This factory will ensure that for a given delegateType
|configurationInstance
pair, the same
delegate will always be returned. This will allow for the delegate objects to safely store state
for a given configurationConstructor and Description |
---|
ReflectiveDelegateFactory() |
public <C,D> D getDelegate(Class<D> delegateType, C configurationInstance)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.