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 aContextwhich can communicate with the remote application.voidsetApplicationContextSupplier(Function<ApplicationId, Context> applicationContextSupplier) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.rt.Context.Factory
getContextForApplication
-
Constructor Details
-
CachingContextFactory
public CachingContextFactory()
-
-
Method Details
-
getContextForApplication
Description copied from interface:Context.FactoryGets aContextwhich can communicate with the remote application.- Specified by:
getContextForApplicationin interfaceContext.Factory- Parameters:
applicationId- theApplicationIdof the remote application- Returns:
- the
Context
-
getApplicationContextSupplier
-
setApplicationContextSupplier
@Inject public void setApplicationContextSupplier(Function<ApplicationId, Context> applicationContextSupplier)
-