Package com.avanza.astrix.gs
Class GsComponent
- java.lang.Object
-
- com.avanza.astrix.gs.GsComponent
-
- All Implemented Interfaces:
com.avanza.astrix.beans.service.ServiceComponent,ClusteredProxyBinder
public class GsComponent extends Object implements com.avanza.astrix.beans.service.ServiceComponent, ClusteredProxyBinder
Service component allowing GigaSpace clustered proxy to be used as a service.- Author:
- Elias Lindholm
-
-
Constructor Summary
Constructors Constructor Description GsComponent(GsBinder gsBinder, com.avanza.astrix.spring.AstrixSpringContext astrixSpringContext, ClusteredProxyCache proxyCache, GsSecurityProvider gsSecurityProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> com.avanza.astrix.beans.service.BoundServiceBeanInstance<T>bind(com.avanza.astrix.beans.service.ServiceDefinition<T> serviceDefinition, com.avanza.astrix.beans.service.ServiceProperties serviceProperties)booleancanBindType(Class<?> type)<T> com.avanza.astrix.beans.service.ServicePropertiescreateServiceProperties(com.avanza.astrix.beans.service.ServiceDefinition<T> definition)<T> voidexportService(Class<T> providedApi, T provider, com.avanza.astrix.beans.service.ServiceDefinition<T> versioningContext)StringgetName()com.avanza.astrix.beans.service.ServicePropertiesparseServiceProviderUri(String serviceProviderUri)booleanrequiresProviderInstance()
-
-
-
Constructor Detail
-
GsComponent
public GsComponent(GsBinder gsBinder, com.avanza.astrix.spring.AstrixSpringContext astrixSpringContext, ClusteredProxyCache proxyCache, GsSecurityProvider gsSecurityProvider)
-
-
Method Detail
-
bind
public <T> com.avanza.astrix.beans.service.BoundServiceBeanInstance<T> bind(com.avanza.astrix.beans.service.ServiceDefinition<T> serviceDefinition, com.avanza.astrix.beans.service.ServiceProperties serviceProperties)- Specified by:
bindin interfaceClusteredProxyBinder- Specified by:
bindin interfacecom.avanza.astrix.beans.service.ServiceComponent
-
parseServiceProviderUri
public com.avanza.astrix.beans.service.ServiceProperties parseServiceProviderUri(String serviceProviderUri)
- Specified by:
parseServiceProviderUriin interfacecom.avanza.astrix.beans.service.ServiceComponent
-
getName
public String getName()
- Specified by:
getNamein interfacecom.avanza.astrix.beans.service.ServiceComponent
-
canBindType
public boolean canBindType(Class<?> type)
- Specified by:
canBindTypein interfacecom.avanza.astrix.beans.service.ServiceComponent
-
exportService
public <T> void exportService(Class<T> providedApi, T provider, com.avanza.astrix.beans.service.ServiceDefinition<T> versioningContext)
- Specified by:
exportServicein interfacecom.avanza.astrix.beans.service.ServiceComponent
-
requiresProviderInstance
public boolean requiresProviderInstance()
- Specified by:
requiresProviderInstancein interfacecom.avanza.astrix.beans.service.ServiceComponent
-
createServiceProperties
public <T> com.avanza.astrix.beans.service.ServiceProperties createServiceProperties(com.avanza.astrix.beans.service.ServiceDefinition<T> definition)
- Specified by:
createServicePropertiesin interfacecom.avanza.astrix.beans.service.ServiceComponent
-
-