Class CoherencePublisherScanRegistrar
java.lang.Object
com.oracle.coherence.spring.messaging.CoherencePublisherScanRegistrar
- All Implemented Interfaces:
Aware
,ImportBeanDefinitionRegistrar
,EnvironmentAware
,ResourceLoaderAware
- Direct Known Subclasses:
CoherencePublisherAutoConfigurationScanRegistrar
public class CoherencePublisherScanRegistrar
extends Object
implements ImportBeanDefinitionRegistrar, ResourceLoaderAware, EnvironmentAware
ImportBeanDefinitionRegistrar
implementation to scan and register Coherence publishers.- Since:
- 3.0
- Author:
- Artem Bilan, Gary Russell
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<String>
getBasePackages
(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) Get the collection of base packages from theCoherencePublisherScan
annotation if available.void
registerBeanDefinitions
(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) void
setEnvironment
(Environment environment) void
setResourceLoader
(ResourceLoader resourceLoader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
registerBeanDefinitions
-
Constructor Details
-
CoherencePublisherScanRegistrar
public CoherencePublisherScanRegistrar()
-
-
Method Details
-
setResourceLoader
- Specified by:
setResourceLoader
in interfaceResourceLoaderAware
-
setEnvironment
- Specified by:
setEnvironment
in interfaceEnvironmentAware
-
registerBeanDefinitions
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) - Specified by:
registerBeanDefinitions
in interfaceImportBeanDefinitionRegistrar
-
getBasePackages
protected Collection<String> getBasePackages(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) Get the collection of base packages from theCoherencePublisherScan
annotation if available.- Parameters:
importingClassMetadata
- the AnnotationMetadataregistry
- the BeanDefinitionRegistry- Returns:
- the basePackages, never null
-