Spring Boot for VMware GemFire
Class GeodeLoggingApplicationListener
java.lang.Object
org.springframework.geode.context.logging.GeodeLoggingApplicationListener
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>,org.springframework.context.event.GenericApplicationListener,org.springframework.context.event.SmartApplicationListener,org.springframework.core.Ordered
public class GeodeLoggingApplicationListener
extends Object
implements org.springframework.context.event.GenericApplicationListener
Spring
GenericApplicationListener used to configure Apache Geode Logging from existing Spring Data
for Apache Geode Logging configuration support, such as when using the EnableLogging annotation
or alternatively using Properties.
This listener must be ordered before the Spring Boot LoggingApplicationListener.- Since:
- 1.3.0
- See Also:
-
PropertiesSpringApplicationApplicationEnvironmentPreparedEventLoggingApplicationListenerApplicationContextApplicationEventGenericApplicationListenerOrderedEnvironment
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()protected booleanisSystemPropertyNotSet(String propertyName) protected booleanisSystemPropertySet(String propertyName) protected voidonApplicationEnvironmentPreparedEvent(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent environmentPreparedEvent) voidonApplicationEvent(org.springframework.context.ApplicationEvent event) protected voidsetSystemProperty(String propertyName, String propertyValue) booleansupportsEventType(org.springframework.core.ResolvableType eventType) booleansupportsSourceType(Class<?> sourceType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.event.GenericApplicationListener
supportsEventTypeMethods inherited from interface org.springframework.context.event.SmartApplicationListener
getListenerId
-
Field Details
-
SPRING_BOOT_DATA_GEMFIRE_LOG_LEVEL_PROPERTY
- See Also:
-
SPRING_DATA_GEMFIRE_CACHE_LOG_LEVEL
- See Also:
-
SPRING_DATA_GEMFIRE_LOGGING_LOG_LEVEL
- See Also:
-
-
Constructor Details
-
GeodeLoggingApplicationListener
public GeodeLoggingApplicationListener()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Specified by:
getOrderin interfaceorg.springframework.context.event.SmartApplicationListener
-
onApplicationEvent
public void onApplicationEvent(@Nullable org.springframework.context.ApplicationEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
-
onApplicationEnvironmentPreparedEvent
protected void onApplicationEnvironmentPreparedEvent(@NonNull org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent environmentPreparedEvent) -
isSystemPropertySet
-
isSystemPropertyNotSet
-
setSystemProperty
-
supportsEventType
public boolean supportsEventType(@NonNull org.springframework.core.ResolvableType eventType) - Specified by:
supportsEventTypein interfaceorg.springframework.context.event.GenericApplicationListener
-
supportsSourceType
- Specified by:
supportsSourceTypein interfaceorg.springframework.context.event.SmartApplicationListener
-