Class CachingContextFactory
java.lang.Object
dev.getelements.elements.rt.remote.CachingContextFactory
- All Implemented Interfaces:
Context.Factory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContextForApplication
(ApplicationId applicationId) Gets aContext
which can communicate with the remote application.void
setApplicationContextSupplier
(Function<ApplicationId, Context> applicationContextSupplier) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.rt.Context.Factory
getContextForApplication
-
Constructor Details
-
CachingContextFactory
public CachingContextFactory()
-
-
Method Details
-
getContextForApplication
Description copied from interface:Context.Factory
Gets aContext
which can communicate with the remote application.- Specified by:
getContextForApplication
in interfaceContext.Factory
- Parameters:
applicationId
- theApplicationId
of the remote application- Returns:
- the
Context
-
getApplicationContextSupplier
-
setApplicationContextSupplier
@Inject public void setApplicationContextSupplier(Function<ApplicationId, Context> applicationContextSupplier)
-