public class DefaultOptionalObjectsController extends Object implements OptionalObjectsController
OptionalObjectsController| Constructor and Description |
|---|
DefaultOptionalObjectsController() |
| 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 void registerOptionalKey(String key)
OptionalObjectsControllerkey as optionalregisterOptionalKey in interface OptionalObjectsControllerkey - an object keypublic void discardOptionalObject(String key)
OptionalObjectsControllerkey as a discarded objectdiscardOptionalObject in interface OptionalObjectsControllerkey - an object keypublic boolean isOptional(String key)
isOptional in interface OptionalObjectsControllerkey - an object keytrue if the given key is optional. false otherwisepublic boolean isDiscarded(String key)
isDiscarded in interface OptionalObjectsControllerkey - an object keytrue if the given key is discarded. false otherwisepublic Object getDiscardedObjectPlaceholder()
OptionalObjectsControllernull entries. This object will
be removed from the registry when MuleArtifactContext is fully startedgetDiscardedObjectPlaceholder in interface OptionalObjectsControllerpublic Collection<String> getAllOptionalKeys()
getAllOptionalKeys in interface OptionalObjectsControllerCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.