Package com.avanza.astrix.gs.localview
Class GsLocalViewComponent
- java.lang.Object
-
- com.avanza.astrix.gs.localview.GsLocalViewComponent
-
- All Implemented Interfaces:
com.avanza.astrix.beans.core.AstrixConfigAware,com.avanza.astrix.beans.core.BeanProxyFilter,com.avanza.astrix.beans.service.ServiceComponent
public class GsLocalViewComponent extends Object implements com.avanza.astrix.beans.service.ServiceComponent, com.avanza.astrix.beans.core.AstrixConfigAware, com.avanza.astrix.beans.core.BeanProxyFilter
Allows publishing a GigaSpace's local-view.- Author:
- Elias Lindholm (elilin)
-
-
Constructor Summary
Constructors Constructor Description GsLocalViewComponent(GsBinder gsBinder, com.avanza.astrix.spring.AstrixSpringContext astrixSpringContext, ClusteredProxyBinder clusteredProxyBinder, GigaspaceMetricsExporter metricsExporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplyBeanProxy(com.avanza.astrix.beans.core.BeanProxy beanProxy)<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> serviceDefintition)StringgetName()com.avanza.astrix.beans.service.ServicePropertiesparseServiceProviderUri(String serviceProviderUri)booleanrequiresProviderInstance()voidsetConfig(com.avanza.astrix.config.DynamicConfig config)
-
-
-
Constructor Detail
-
GsLocalViewComponent
public GsLocalViewComponent(GsBinder gsBinder, com.avanza.astrix.spring.AstrixSpringContext astrixSpringContext, ClusteredProxyBinder clusteredProxyBinder, GigaspaceMetricsExporter metricsExporter)
-
-
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 interfacecom.avanza.astrix.beans.service.ServiceComponent
-
applyBeanProxy
public boolean applyBeanProxy(com.avanza.astrix.beans.core.BeanProxy beanProxy)
- Specified by:
applyBeanProxyin interfacecom.avanza.astrix.beans.core.BeanProxyFilter
-
parseServiceProviderUri
public com.avanza.astrix.beans.service.ServiceProperties parseServiceProviderUri(String serviceProviderUri)
- Specified by:
parseServiceProviderUriin 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
-
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> serviceDefintition)
- Specified by:
exportServicein interfacecom.avanza.astrix.beans.service.ServiceComponent
-
requiresProviderInstance
public boolean requiresProviderInstance()
- Specified by:
requiresProviderInstancein interfacecom.avanza.astrix.beans.service.ServiceComponent
-
setConfig
public void setConfig(com.avanza.astrix.config.DynamicConfig config)
- Specified by:
setConfigin interfacecom.avanza.astrix.beans.core.AstrixConfigAware
-
-