public class CompositeOptionalObjectsController extends Object implements OptionalObjectsController
OptionalObjectsController
which groups
a list of controllers and executes every operation on all of them.Constructor and Description |
---|
CompositeOptionalObjectsController(OptionalObjectsController... controllers) |
Modifier and Type | Method and Description |
---|---|
void |
discardOptionalObject(String key)
Registers the given
key as a discarded object |
Collection<String> |
getAllOptionalKeys() |
Object |
getDiscardedObjectPlaceholder()
A placeholder for Spring to temporarily work with.
|
boolean |
isDiscarded(String key) |
boolean |
isOptional(String key) |
void |
registerOptionalKey(String key)
Registers the given
key as optional |
public CompositeOptionalObjectsController(OptionalObjectsController... controllers)
public void registerOptionalKey(String key)
OptionalObjectsController
key
as optionalregisterOptionalKey
in interface OptionalObjectsController
key
- an object keypublic void discardOptionalObject(String key)
OptionalObjectsController
key
as a discarded objectdiscardOptionalObject
in interface OptionalObjectsController
key
- an object keypublic boolean isOptional(String key)
isOptional
in interface OptionalObjectsController
key
- an object keytrue
if the given key is optional. false
otherwisepublic boolean isDiscarded(String key)
isDiscarded
in interface OptionalObjectsController
key
- an object keytrue
if the given key is discarded. false
otherwisepublic Object getDiscardedObjectPlaceholder()
OptionalObjectsController
null
entries.
This object will be removed from the registry when MuleArtifactContext
is fully startedgetDiscardedObjectPlaceholder
in interface OptionalObjectsController
public Collection<String> getAllOptionalKeys()
getAllOptionalKeys
in interface OptionalObjectsController
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.