Class SDBHandlerServiceLocator
java.lang.Object
com.helger.phase4.springboot.service.SDBHandlerServiceLocator
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Component
public class SDBHandlerServiceLocator
extends Object
implements org.springframework.context.ApplicationContextAware
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ISBDHandlerServicegetService(ESBDHHandlerServiceSelector selector) Returns the Spring managed bean instance of the given service if it exists.voidsetApplicationContext(org.springframework.context.ApplicationContext aCtx)
-
Constructor Details
-
SDBHandlerServiceLocator
public SDBHandlerServiceLocator()
-
-
Method Details
-
getService
Returns the Spring managed bean instance of the given service if it exists. Returns null otherwise.- Parameters:
selector- Selector enum. May not benull.- Returns:
- The desired service
-
setApplicationContext
public void setApplicationContext(@Nonnull org.springframework.context.ApplicationContext aCtx) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-