Class CoreConfiguration

  • All Implemented Interfaces:
    com.anaptecs.jeaf.xfun.api.trace.StartupInfoWriter

    @StartupInfoWriterImpl
    public class CoreConfiguration
    extends com.anaptecs.jeaf.xfun.api.config.AnnotationBasedConfiguration<com.anaptecs.jeaf.core.annotations.CoreConfig>
    implements com.anaptecs.jeaf.xfun.api.trace.StartupInfoWriter
    Class is intended to be used to read JEAF configuration data. This configuration data is located under META-INF/JEAF in the applications classpath and will be generated by JEAF's Maven Plugin during build time.
    Version:
    JEAF Release 1.3.1
    Author:
    JEAF Development Team
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_CONFIGURATION_CLASS
      Name of the class that contains the default configuration annotation.
      • Fields inherited from class com.anaptecs.jeaf.xfun.api.config.AnnotationBasedConfiguration

        customConfig, defaultConfig, exceptionOnError, isCustomConfigAvailable, isDefaultConfigAvailable, theConfig
    • Constructor Summary

      Constructors 
      Constructor Description
      CoreConfiguration()
      Initialize object.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> checkCustomConfiguration​(com.anaptecs.jeaf.core.annotations.CoreConfig pCustomConfiguration)  
      java.util.List<java.lang.Class<? extends com.anaptecs.jeaf.core.api.Activity>> getActivityImplClasses()
      Method returns all configured activity classes.
      protected java.lang.Class<com.anaptecs.jeaf.core.annotations.CoreConfig> getAnnotationClass()  
      java.util.List<java.lang.Class<? extends com.anaptecs.jeaf.core.servicechannel.api.ComponentFactory>> getComponentFactoryClasses()
      Method returns all configured component factory classes.
      protected java.lang.String getDefaultConfigurationClass()  
      com.anaptecs.jeaf.core.annotations.CoreConfig getEmptyConfiguration()  
      java.util.List<com.anaptecs.jeaf.core.spi.ServiceChannelInterceptor> getGlobalInterceptors()
      Property defines all global service channel interceptors that should be used.
      static CoreConfiguration getInstance()
      Method returns JEAF configuration
      java.util.List<java.lang.Class<? extends com.anaptecs.jeaf.core.servicechannel.api.ServiceProviderFactory>> getServiceProviderFactoryClasses()
      Method returns all configured service provider factory classes.
      java.lang.Class<?> getStartupCompletedEventSource()  
      java.util.List<com.anaptecs.jeaf.core.spi.TransactionListener> getTransactionListeners()
      Property defines all transaction listeners that will be notified about transactions.
      void traceStartupInfo​(com.anaptecs.jeaf.xfun.api.trace.Trace pTrace, com.anaptecs.jeaf.xfun.api.trace.TraceLevel pTraceLevel)  
      • Methods inherited from class com.anaptecs.jeaf.xfun.api.config.AnnotationBasedConfiguration

        asList, asList, asList, asList, asList, asList, asList, asList, getConfigurationClass, getConfigurationErrors, isCustomConfigurationAvailable, isDefaultConfigurationAvailable, newInstance, newInstance, newInstances, tryNewInstance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_CONFIGURATION_CLASS

        public static final java.lang.String DEFAULT_CONFIGURATION_CLASS
        Name of the class that contains the default configuration annotation.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CoreConfiguration

        public CoreConfiguration()
        Initialize object. During initialization the configuration will already be loaded.
    • Method Detail

      • getInstance

        public static CoreConfiguration getInstance()
        Method returns JEAF configuration
        Returns:
        CoreConfiguration Object providing access to JEAF cores configuration.
      • getAnnotationClass

        protected java.lang.Class<com.anaptecs.jeaf.core.annotations.CoreConfig> getAnnotationClass()
        Specified by:
        getAnnotationClass in class com.anaptecs.jeaf.xfun.api.config.AnnotationBasedConfiguration<com.anaptecs.jeaf.core.annotations.CoreConfig>
      • getDefaultConfigurationClass

        protected java.lang.String getDefaultConfigurationClass()
        Specified by:
        getDefaultConfigurationClass in class com.anaptecs.jeaf.xfun.api.config.AnnotationBasedConfiguration<com.anaptecs.jeaf.core.annotations.CoreConfig>
      • getEmptyConfiguration

        public com.anaptecs.jeaf.core.annotations.CoreConfig getEmptyConfiguration()
        Specified by:
        getEmptyConfiguration in class com.anaptecs.jeaf.xfun.api.config.AnnotationBasedConfiguration<com.anaptecs.jeaf.core.annotations.CoreConfig>
      • checkCustomConfiguration

        public java.util.List<java.lang.String> checkCustomConfiguration​(com.anaptecs.jeaf.core.annotations.CoreConfig pCustomConfiguration)
        Specified by:
        checkCustomConfiguration in class com.anaptecs.jeaf.xfun.api.config.AnnotationBasedConfiguration<com.anaptecs.jeaf.core.annotations.CoreConfig>
      • getGlobalInterceptors

        public java.util.List<com.anaptecs.jeaf.core.spi.ServiceChannelInterceptor> getGlobalInterceptors()
        Property defines all global service channel interceptors that should be used. Global interceptors will be called no matter which service is called. In addition JEAF also supports service specific interceptors. ServiceChannelInterceptor
      • getTransactionListeners

        public java.util.List<com.anaptecs.jeaf.core.spi.TransactionListener> getTransactionListeners()
        Property defines all transaction listeners that will be notified about transactions. TransactionListener
      • getComponentFactoryClasses

        public java.util.List<java.lang.Class<? extends com.anaptecs.jeaf.core.servicechannel.api.ComponentFactory>> getComponentFactoryClasses()
        Method returns all configured component factory classes.
        Returns:
        List List with all configured component factory classes. The method never returns null. The returned List is immutable.
      • getServiceProviderFactoryClasses

        public java.util.List<java.lang.Class<? extends com.anaptecs.jeaf.core.servicechannel.api.ServiceProviderFactory>> getServiceProviderFactoryClasses()
        Method returns all configured service provider factory classes.
        Returns:
        List List with all configured service provider factory classes. The method never returns null. The returned List is immutable.
      • getActivityImplClasses

        public java.util.List<java.lang.Class<? extends com.anaptecs.jeaf.core.api.Activity>> getActivityImplClasses()
        Method returns all configured activity classes.
        Returns:
        List List with all configured activity classes. The method never returns null. The returned List is immutable.
      • getStartupCompletedEventSource

        public java.lang.Class<?> getStartupCompletedEventSource()
        Specified by:
        getStartupCompletedEventSource in interface com.anaptecs.jeaf.xfun.api.trace.StartupInfoWriter
      • traceStartupInfo

        public void traceStartupInfo​(com.anaptecs.jeaf.xfun.api.trace.Trace pTrace,
                                     com.anaptecs.jeaf.xfun.api.trace.TraceLevel pTraceLevel)
        Specified by:
        traceStartupInfo in interface com.anaptecs.jeaf.xfun.api.trace.StartupInfoWriter