Class DefaultSAPRFCDestinationService
- java.lang.Object
-
- de.hybris.platform.servicelayer.event.impl.AbstractEventListener<SAPRFCDestinationEvent>
-
- de.hybris.platform.sap.core.jco.service.impl.DefaultSAPRFCDestinationService
-
- All Implemented Interfaces:
SAPRFCDestinationService,java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<SAPRFCDestinationEvent>
public class DefaultSAPRFCDestinationService extends AbstractEventListener<SAPRFCDestinationEvent> implements SAPRFCDestinationService
Default implementation for theSAPRFCDestinationService.
-
-
Constructor Summary
Constructors Constructor Description DefaultSAPRFCDestinationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroy method called by the Spring framework.java.lang.StringgetRfcDefaultLanguage()Returns the RFC default language.RFCDestinationgetRFCDestination(java.lang.String jcoDestinationName)Get an RFC Destination by destination name.java.lang.StringgetSncLibraryPath()Returns the SNC library path.voidinit()Initialization method called by the Spring framework.protected voidonEvent(SAPRFCDestinationEvent event)This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.voidsetRfcDefaultLanguage(java.lang.String rfcDefaultLanguage)Sets the RFC default language.voidsetRfcDestinationService(RFCDestinationService rfcDestinationService)Injection setter forRFCDestinationService.voidsetSncLibraryPath(java.lang.String sncLibraryPath)Sets the SNC library path.voidsetTenantService(TenantService tenantService)Injection setter forTenantService.-
Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService
-
-
-
-
Method Detail
-
getRfcDefaultLanguage
public java.lang.String getRfcDefaultLanguage()
Returns the RFC default language.- Returns:
- RFC default language
-
setRfcDefaultLanguage
public void setRfcDefaultLanguage(java.lang.String rfcDefaultLanguage)
Sets the RFC default language.- Parameters:
rfcDefaultLanguage- RFC default language
-
getSncLibraryPath
public java.lang.String getSncLibraryPath()
Returns the SNC library path.- Returns:
- SNC library path
-
setSncLibraryPath
public void setSncLibraryPath(java.lang.String sncLibraryPath)
Sets the SNC library path.- Parameters:
sncLibraryPath- SNC library path
-
setTenantService
public void setTenantService(TenantService tenantService)
Injection setter forTenantService.- Overrides:
setTenantServicein classAbstractEventListener<SAPRFCDestinationEvent>- Parameters:
tenantService-TenantServiceto set
-
setRfcDestinationService
public void setRfcDestinationService(RFCDestinationService rfcDestinationService)
Injection setter forRFCDestinationService.- Parameters:
rfcDestinationService-RFCDestinationService
-
init
public void init()
Initialization method called by the Spring framework.
-
destroy
public void destroy()
Destroy method called by the Spring framework.
-
getRFCDestination
public RFCDestination getRFCDestination(java.lang.String jcoDestinationName)
Description copied from interface:SAPRFCDestinationServiceGet an RFC Destination by destination name.- Specified by:
getRFCDestinationin interfaceSAPRFCDestinationService- Parameters:
jcoDestinationName- RFC destination name- Returns:
- The selected RFC Destination.
-
onEvent
protected void onEvent(SAPRFCDestinationEvent event)
Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<SAPRFCDestinationEvent>- Parameters:
event- the event to be processed- See Also:
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
-