public class InMemoryOperations extends Object
Modifier and Type | Method and Description |
---|---|
static void |
restoreRemoteOperations()
Restores the registration of the remote operations that may have been
overridden by previous calls to
useInMemoryOperations() |
static void |
useInMemoryOperations()
Registers the in-memory versions of various operations in place of the
normal remote operations with the
OperationLoaderRegistry . |
public static void useInMemoryOperations()
OperationLoaderRegistry
. This
allows for mixes written for remote systems to also be run against local
systems without having to edit the mix.
Note that even without having called this method you can still use the
in-memory operations directly in your mix by adding the mem-
prefix to the standard operation names e.g. mem-query
instead of
query
.
You can call restoreRemoteOperations()
to restore the normal
operation mappings. This is usually preferable to calling
OperationLoaderRegistry.resetLoaders()
since it will only restore
the built-in remote operations and not remove any custom operations you
may have registered.
public static void restoreRemoteOperations()
useInMemoryOperations()
Copyright © 2015. All rights reserved.