Showing preview only (874K chars total). Download the full file or copy to clipboard to get everything.
Repository: kumuluz/kumuluzee
Branch: master
Commit: 1157fc14be71
Files: 261
Total size: 774.1 KB
Directory structure:
gitextract_kh8ins4r/
├── .github/
│ └── workflows/
│ └── kumuluzee-ci.yml
├── .gitignore
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── bom/
│ └── pom.xml
├── common/
│ ├── pom.xml
│ └── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ ├── common/
│ │ │ │ ├── Component.java
│ │ │ │ ├── ConfigExtension.java
│ │ │ │ ├── Extension.java
│ │ │ │ ├── KumuluzServer.java
│ │ │ │ ├── LogsExtension.java
│ │ │ │ ├── ServletServer.java
│ │ │ │ ├── attributes/
│ │ │ │ │ └── ClasspathAttributes.java
│ │ │ │ ├── config/
│ │ │ │ │ ├── DataSourceConfig.java
│ │ │ │ │ ├── DataSourcePoolConfig.java
│ │ │ │ │ ├── DevConfig.java
│ │ │ │ │ ├── EeConfig.java
│ │ │ │ │ ├── EnvConfig.java
│ │ │ │ │ ├── GzipConfig.java
│ │ │ │ │ ├── MailServiceConfig.java
│ │ │ │ │ ├── MailSessionConfig.java
│ │ │ │ │ ├── ServerConfig.java
│ │ │ │ │ ├── ServerConnectorConfig.java
│ │ │ │ │ └── XaDataSourceConfig.java
│ │ │ │ ├── datasources/
│ │ │ │ │ ├── NonJtaXAConnectionWrapper.java
│ │ │ │ │ ├── NonJtaXADataSourceWrapper.java
│ │ │ │ │ ├── XADataSourceBuilder.java
│ │ │ │ │ └── XADataSourceWrapper.java
│ │ │ │ ├── dependencies/
│ │ │ │ │ ├── EeComponentDef.java
│ │ │ │ │ ├── EeComponentDependencies.java
│ │ │ │ │ ├── EeComponentDependency.java
│ │ │ │ │ ├── EeComponentOptional.java
│ │ │ │ │ ├── EeComponentOptionals.java
│ │ │ │ │ ├── EeComponentType.java
│ │ │ │ │ ├── EeExtensionDef.java
│ │ │ │ │ ├── EeExtensionGroup.java
│ │ │ │ │ └── ServerDef.java
│ │ │ │ ├── exceptions/
│ │ │ │ │ ├── ComponentsException.java
│ │ │ │ │ └── KumuluzServerException.java
│ │ │ │ ├── filters/
│ │ │ │ │ └── PoweredByFilter.java
│ │ │ │ ├── runtime/
│ │ │ │ │ ├── EeRuntime.java
│ │ │ │ │ ├── EeRuntimeComponent.java
│ │ │ │ │ ├── EeRuntimeExtension.java
│ │ │ │ │ └── EeRuntimeInternal.java
│ │ │ │ ├── servlet/
│ │ │ │ │ └── ServletWrapper.java
│ │ │ │ ├── utils/
│ │ │ │ │ ├── ClassUtils.java
│ │ │ │ │ ├── EnvUtils.java
│ │ │ │ │ ├── ResourceUtils.java
│ │ │ │ │ └── StringUtils.java
│ │ │ │ └── wrapper/
│ │ │ │ ├── ComponentWrapper.java
│ │ │ │ ├── EeComponentWrapper.java
│ │ │ │ ├── ExtensionWrapper.java
│ │ │ │ └── KumuluzServerWrapper.java
│ │ │ ├── configuration/
│ │ │ │ ├── ConfigurationDecoder.java
│ │ │ │ ├── ConfigurationListener.java
│ │ │ │ ├── ConfigurationSource.java
│ │ │ │ ├── enums/
│ │ │ │ │ └── ConfigurationValueType.java
│ │ │ │ ├── sources/
│ │ │ │ │ ├── EnvironmentConfigurationSource.java
│ │ │ │ │ ├── FileConfigurationSource.java
│ │ │ │ │ └── SystemPropertyConfigurationSource.java
│ │ │ │ └── utils/
│ │ │ │ ├── ConfigurationDecoderUtils.java
│ │ │ │ ├── ConfigurationDispatcher.java
│ │ │ │ ├── ConfigurationImpl.java
│ │ │ │ ├── ConfigurationInterpolationUtil.java
│ │ │ │ ├── ConfigurationSourceUtils.java
│ │ │ │ └── ConfigurationUtil.java
│ │ │ └── logs/
│ │ │ ├── LogDeferrer.java
│ │ │ └── impl/
│ │ │ ├── JavaUtilConsoleHandler.java
│ │ │ ├── JavaUtilDefaultLogConfigurator.java
│ │ │ └── JavaUtilFormatter.java
│ │ └── resources/
│ │ └── META-INF/
│ │ ├── kumuluzee/
│ │ │ └── versions.properties
│ │ └── services/
│ │ └── com.kumuluz.ee.configuration.ConfigurationSource
│ └── test/
│ └── java/
│ └── com/
│ └── kumuluz/
│ └── ee/
│ └── configuration/
│ └── utils/
│ └── ConfigurationInterpolationUtilTest.java
├── components/
│ ├── bean-validation/
│ │ ├── hibernate-validator/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ ├── main/
│ │ │ │ ├── java/
│ │ │ │ │ └── com/
│ │ │ │ │ └── kumuluz/
│ │ │ │ │ └── ee/
│ │ │ │ │ └── beanvalidation/
│ │ │ │ │ └── BeanValidationComponent.java
│ │ │ │ └── resources/
│ │ │ │ └── META-INF/
│ │ │ │ └── services/
│ │ │ │ └── com.kumuluz.ee.common.Component
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ └── beanvalidation/
│ │ │ └── test/
│ │ │ ├── HibernateValidatorTest.java
│ │ │ └── beans/
│ │ │ ├── Project.java
│ │ │ └── User.java
│ │ └── pom.xml
│ ├── cdi/
│ │ ├── pom.xml
│ │ └── weld/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ ├── cdi/
│ │ │ │ └── CdiComponent.java
│ │ │ ├── configuration/
│ │ │ │ └── cdi/
│ │ │ │ ├── ConfigBundle.java
│ │ │ │ ├── ConfigValue.java
│ │ │ │ ├── interceptors/
│ │ │ │ │ └── ConfigBundleInterceptor.java
│ │ │ │ └── producers/
│ │ │ │ ├── ConfigurationUtilProducer.java
│ │ │ │ └── EeConfigProducer.java
│ │ │ └── runtime/
│ │ │ └── cdi/
│ │ │ └── producers/
│ │ │ └── EeRuntimeProducer.java
│ │ └── resources/
│ │ └── META-INF/
│ │ ├── beans.xml
│ │ └── services/
│ │ └── com.kumuluz.ee.common.Component
│ ├── el/
│ │ ├── pom.xml
│ │ └── uel/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ └── el/
│ │ │ └── ElComponent.java
│ │ └── resources/
│ │ └── META-INF/
│ │ └── services/
│ │ └── com.kumuluz.ee.common.Component
│ ├── javamail/
│ │ ├── pom.xml
│ │ └── ri/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ └── javamail/
│ │ │ └── ri/
│ │ │ ├── JavaMailComponent.java
│ │ │ ├── MailSessionFactory.java
│ │ │ └── ManagedPasswordAuthenticator.java
│ │ └── resources/
│ │ └── META-INF/
│ │ └── services/
│ │ └── com.kumuluz.ee.common.Component
│ ├── jax-rs/
│ │ ├── jersey/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ ├── com/
│ │ │ │ │ └── kumuluz/
│ │ │ │ │ └── ee/
│ │ │ │ │ └── jaxrs/
│ │ │ │ │ ├── JaxRsComponent.java
│ │ │ │ │ └── Jetty10ConnectorProvider.java
│ │ │ │ └── org/
│ │ │ │ └── glassfish/
│ │ │ │ └── jersey/
│ │ │ │ └── jetty/
│ │ │ │ └── connector/
│ │ │ │ └── Jetty10Connector.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ ├── com.kumuluz.ee.common.Component
│ │ │ └── org.glassfish.jersey.client.spi.ConnectorProvider
│ │ └── pom.xml
│ ├── jax-ws/
│ │ ├── cxf/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ ├── main/
│ │ │ │ ├── java/
│ │ │ │ │ └── com/
│ │ │ │ │ └── kumuluz/
│ │ │ │ │ └── ee/
│ │ │ │ │ └── jaxws/
│ │ │ │ │ └── cxf/
│ │ │ │ │ ├── JaxWsComponent.java
│ │ │ │ │ ├── KumuluzCXFServlet.java
│ │ │ │ │ ├── annotations/
│ │ │ │ │ │ └── WsContext.java
│ │ │ │ │ ├── processor/
│ │ │ │ │ │ ├── AnnotationProcessorUtil.java
│ │ │ │ │ │ ├── JaxWsAnnotationProcessor.java
│ │ │ │ │ │ └── JaxWsAnnotationProcessorUtil.java
│ │ │ │ │ └── ws/
│ │ │ │ │ ├── CXFWebservicePublisher.java
│ │ │ │ │ ├── Endpoint.java
│ │ │ │ │ ├── InjectionHelper.java
│ │ │ │ │ ├── KumuluzWSInvoker.java
│ │ │ │ │ └── KumuluzWebServiceContext.java
│ │ │ │ └── resources/
│ │ │ │ └── META-INF/
│ │ │ │ └── services/
│ │ │ │ ├── com.kumuluz.ee.common.Component
│ │ │ │ └── javax.annotation.processing.Processor
│ │ │ └── test/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jaxws/
│ │ │ │ └── cxf/
│ │ │ │ ├── impl/
│ │ │ │ │ ├── NoWsContextAnnotatedEndpointBean.java
│ │ │ │ │ ├── WebServiceContextBean.java
│ │ │ │ │ ├── WsContextAnnotatedEndpoint.java
│ │ │ │ │ └── WsContextAnnotatedEndpointBean.java
│ │ │ │ ├── processor/
│ │ │ │ │ └── JaxWsAnnotationProcessorUtilTest.java
│ │ │ │ └── ws/
│ │ │ │ └── KumuluzWebServiceContextTest.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── ws/
│ │ │ └── java.lang.Object
│ │ ├── metro/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jaxws/
│ │ │ │ └── metro/
│ │ │ │ └── JaxWsComponent.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── com.kumuluz.ee.common.Component
│ │ └── pom.xml
│ ├── jpa/
│ │ ├── common/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jpa/
│ │ │ │ └── common/
│ │ │ │ ├── PersistenceSettings.java
│ │ │ │ ├── PersistenceUnitHolder.java
│ │ │ │ ├── PersistenceWrapper.java
│ │ │ │ ├── TransactionType.java
│ │ │ │ ├── exceptions/
│ │ │ │ │ └── NoDefaultPersistenceUnit.java
│ │ │ │ ├── injection/
│ │ │ │ │ ├── EntityManagerWrapper.java
│ │ │ │ │ ├── JpaService.java
│ │ │ │ │ ├── NonTxEntityManagerWrapper.java
│ │ │ │ │ ├── PersistenceContextResource.java
│ │ │ │ │ ├── PersistenceContextResourceFactory.java
│ │ │ │ │ ├── PersistenceUnitResource.java
│ │ │ │ │ └── PersistenceUnitResourceFactory.java
│ │ │ │ ├── jta/
│ │ │ │ │ ├── NonTxEntityManagerHolder.java
│ │ │ │ │ ├── NonTxQueryWrapper.java
│ │ │ │ │ ├── NonTxStoredProcedureQueryWrapper.java
│ │ │ │ │ ├── NonTxTypedQueryWrapper.java
│ │ │ │ │ ├── SyncEntityManagerWrapper.java
│ │ │ │ │ ├── TxScopedEntityManager.java
│ │ │ │ │ ├── TxScopedEntityManagerFactory.java
│ │ │ │ │ ├── TxScopedEntityManagerWrapper.java
│ │ │ │ │ └── TxSynchronization.java
│ │ │ │ └── utils/
│ │ │ │ └── PersistenceUtils.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── org.jboss.weld.bootstrap.api.Service
│ │ ├── eclipselink/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jpa/
│ │ │ │ └── eclipselink/
│ │ │ │ ├── EclipseLinkSettings.java
│ │ │ │ ├── JpaComponent.java
│ │ │ │ ├── KumuluzPlatform.java
│ │ │ │ └── KumuluzTransactionController.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── com.kumuluz.ee.common.Component
│ │ ├── hibernate/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jpa/
│ │ │ │ └── hibernate/
│ │ │ │ └── JpaComponent.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── com.kumuluz.ee.common.Component
│ │ └── pom.xml
│ ├── jsf/
│ │ ├── mojarra/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jsf/
│ │ │ │ └── mojarra/
│ │ │ │ └── JsfComponent.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── com.kumuluz.ee.common.Component
│ │ └── pom.xml
│ ├── json-b/
│ │ ├── pom.xml
│ │ └── yasson/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ └── jsonb/
│ │ │ └── yasson/
│ │ │ └── JsonBComponent.java
│ │ └── resources/
│ │ └── META-INF/
│ │ └── services/
│ │ └── com.kumuluz.ee.common.Component
│ ├── json-p/
│ │ ├── jsonp/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jsonp/
│ │ │ │ ├── JsonPComponent.java
│ │ │ │ └── configuration/
│ │ │ │ └── utils/
│ │ │ │ └── JsonConfigurationUtil.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── com.kumuluz.ee.common.Component
│ │ └── pom.xml
│ ├── jsp/
│ │ ├── jetty/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ ├── main/
│ │ │ │ ├── java/
│ │ │ │ │ └── com/
│ │ │ │ │ └── kumuluz/
│ │ │ │ │ └── ee/
│ │ │ │ │ └── jsp/
│ │ │ │ │ └── JspComponent.java
│ │ │ │ └── resources/
│ │ │ │ └── META-INF/
│ │ │ │ └── services/
│ │ │ │ └── com.kumuluz.ee.common.Component
│ │ │ └── test/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jetty/
│ │ │ │ └── jsp/
│ │ │ │ └── test/
│ │ │ │ ├── JspTest.java
│ │ │ │ └── beans/
│ │ │ │ ├── TimeBean.java
│ │ │ │ └── UserBean.java
│ │ │ └── resources/
│ │ │ └── webapp/
│ │ │ └── index.jsp
│ │ └── pom.xml
│ ├── jta/
│ │ ├── common/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jta/
│ │ │ │ └── common/
│ │ │ │ ├── JtaProvider.java
│ │ │ │ ├── JtaTransactionServices.java
│ │ │ │ ├── datasources/
│ │ │ │ │ ├── JtaXAConnectionWrapper.java
│ │ │ │ │ ├── JtaXADataSourceWrapper.java
│ │ │ │ │ └── XAStatementProxy.java
│ │ │ │ ├── exceptions/
│ │ │ │ │ └── CannotRetrieveTxException.java
│ │ │ │ └── utils/
│ │ │ │ └── TxUtils.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── org.jboss.weld.bootstrap.api.Service
│ │ ├── narayana/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jta/
│ │ │ │ └── narayana/
│ │ │ │ ├── JtaComponent.java
│ │ │ │ └── NarayanaJtaProvider.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ ├── com.kumuluz.ee.common.Component
│ │ │ └── com.kumuluz.ee.jta.common.JtaProvider
│ │ └── pom.xml
│ ├── pom.xml
│ └── websocket/
│ ├── jetty/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ └── websocket/
│ │ │ └── jetty/
│ │ │ └── WebSocketComponent.java
│ │ └── resources/
│ │ └── META-INF/
│ │ └── services/
│ │ └── com.kumuluz.ee.common.Component
│ └── pom.xml
├── core/
│ ├── pom.xml
│ └── src/
│ ├── main/
│ │ └── java/
│ │ └── com/
│ │ └── kumuluz/
│ │ └── ee/
│ │ ├── EeApplication.java
│ │ ├── factories/
│ │ │ ├── AgroalDataSourceFactory.java
│ │ │ ├── EeConfigFactory.java
│ │ │ └── JtaXADataSourceFactory.java
│ │ └── loaders/
│ │ ├── ComponentLoader.java
│ │ ├── ConfigExtensionLoader.java
│ │ ├── ExtensionLoader.java
│ │ ├── LogsExtensionLoader.java
│ │ └── ServerLoader.java
│ └── test/
│ └── java/
│ └── com/
│ └── kumuluz/
│ └── ee/
│ └── test/
│ └── ExampleTest.java
├── pom.xml
├── profiles/
│ ├── micro-profile/
│ │ └── pom.xml
│ ├── micro-profile-1.0/
│ │ └── pom.xml
│ ├── micro-profile-1.1/
│ │ └── pom.xml
│ ├── micro-profile-1.2/
│ │ └── pom.xml
│ ├── micro-profile-1.3/
│ │ └── pom.xml
│ ├── micro-profile-1.4/
│ │ └── pom.xml
│ ├── micro-profile-2.0/
│ │ └── pom.xml
│ ├── micro-profile-2.1/
│ │ └── pom.xml
│ ├── micro-profile-2.2/
│ │ └── pom.xml
│ ├── micro-profile-3.0/
│ │ └── pom.xml
│ ├── micro-profile-3.1/
│ │ └── pom.xml
│ ├── micro-profile-3.2/
│ │ └── pom.xml
│ ├── micro-profile-3.3/
│ │ └── pom.xml
│ └── pom.xml
├── servlet/
│ ├── jetty/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ └── jetty/
│ │ │ ├── JettyAttributes.java
│ │ │ ├── JettyFactory.java
│ │ │ ├── JettyJarClasspathUtil.java
│ │ │ └── JettyServletServer.java
│ │ └── resources/
│ │ └── META-INF/
│ │ └── services/
│ │ └── com.kumuluz.ee.common.KumuluzServer
│ └── pom.xml
├── settings.xml
└── tools/
├── loader/
│ ├── pom.xml
│ └── src/
│ └── main/
│ └── java/
│ └── com/
│ └── kumuluz/
│ └── ee/
│ └── loader/
│ ├── EeBootLoader.java
│ ├── EeClassLoader.java
│ ├── exception/
│ │ └── EeClassLoaderException.java
│ └── jar/
│ ├── FileInfo.java
│ ├── JarEntryInfo.java
│ └── JarFileInfo.java
├── maven-plugin/
│ ├── README.md
│ ├── pom.xml
│ └── src/
│ └── main/
│ ├── java/
│ │ └── com/
│ │ └── kumuluz/
│ │ └── ee/
│ │ └── maven/
│ │ └── plugin/
│ │ ├── AbstractCopyDependenciesMojo.java
│ │ ├── AbstractPackageMojo.java
│ │ ├── CopyDependenciesMojo.java
│ │ ├── MojoConstants.java
│ │ ├── RepackageMojo.java
│ │ ├── RunExplodedMojo.java
│ │ └── RunJarMojo.java
│ └── resources/
│ └── META-INF/
│ └── kumuluzee/
│ └── plugin-versions.properties
└── pom.xml
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/workflows/kumuluzee-ci.yml
================================================
name: KumuluzEE CI
on: [push, pull_request]
jobs:
test:
name: Build and test
runs-on: 'ubuntu-latest'
strategy:
matrix:
java-version: ['11', '17', '18']
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Install
run: mvn --show-version --update-snapshots --batch-mode clean install -DskipTests=true
- name: Test
run: mvn --batch-mode test
publish:
name: Publish to OSSRH
runs-on: 'ubuntu-latest'
needs: test
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Restore cache
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Restore GPG keys
env:
GPG_KEY: ${{ secrets.OSSRH_GPG_KEY }}
GPG_PUB: ${{ secrets.OSSRH_GPG_PUB }}
run: 'printf "$GPG_KEY" | base64 --decode > "$GITHUB_WORKSPACE/gpg.key" && printf "$GPG_PUB" | base64 --decode > "$GITHUB_WORKSPACE/gpg.pub" && gpg --batch --import "$GITHUB_WORKSPACE/gpg.pub" "$GITHUB_WORKSPACE/gpg.key"'
- name: Publish to OSSRH
env:
OSSRH_USERNAME: Kumuluz
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
run: mvn --batch-mode source:jar javadoc:jar deploy -Pdeploy -DskipTests=true --settings ./settings.xml;
================================================
FILE: CONTRIBUTING.md
================================================
# Contributing to KumuluzEE
♥ [KumuluzEE](https://github.com/kumuluz/KumuluzEE) and want to get involved?
Thanks! There are plenty of ways you can help!
## Bugs
A bug is a _demonstrable problem_ that is caused by the code in the
repository. Good bug reports are extremely helpful - thank you!
Guidelines for bug reports:
1. **Use the GitHub issue search** — check if the issue has already been
reported.
2. **Check if the issue has been fixed** — try to reproduce it using the
latest `master` branch in the repository.
3. **Isolate the problem** — ideally create a [reduced test
case](http://css-tricks.com/6263-reduced-test-cases/) and a live example.
A good bug report shouldn't leave others needing to chase you up for more
information. Please try to be as detailed as possible in your report. What is
your environment? What steps will reproduce the issue? What OS versions
experience the problem? What would you expect to be the outcome? All these
details will help people to fix any potential bugs.
Example:
> Short and descriptive example bug report title
>
> A summary of the issue and the OS environment in which it occurs. If
> suitable, include the steps required to reproduce the bug.
>
> 1. This is the first step
> 2. This is the second step
> 3. Further steps, etc.
>
> `<url>` (a link to the reduced test case)
>
> Any other information you want to share that is relevant to the issue being
> reported. This might include the lines of code that you have identified as
> causing the bug, and potential solutions (and your opinions on their
> merits).
**[File a bug report](https://github.com/kumuluz/KumuluzEE/issues/)**
## Pull requests
Good pull requests - patches, improvements, new features - are a fantastic
help. They should remain focused in scope and avoid containing unrelated
commits. If your contribution involves a significant amount of work or substantial
changes to any part of the project, please open an issue to discuss it first.
Make sure to adhere to the coding conventions used throughout a project
(indentation, accurate comments, etc.). Please update any documentation that is
relevant to the change you're making.
Please follow this process; it's the best way to get your work included in the
project:
1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork,
and configure the remotes:
```bash
# Clones your fork of the repo into the current directory in terminal
git clone https://github.com/<your-username>/KumuluzEE.git
# Navigate to the newly cloned directory
cd KumuluzEE
# Assigns the original repo to a remote called "upstream"
git remote add upstream https://github.com/kumuluz/KumuluzEE.git
```
2. If you cloned a while ago, get the latest changes from upstream:
```bash
git checkout master
git pull upstream master
```
3. Create a new topic branch to contain your feature, change, or fix:
```bash
git checkout -b <topic-branch-name>
```
4. Commit your changes in logical chunks. Please adhere to these [git commit
message
guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
or your pull request is unlikely be merged into the main project. Use git's
[interactive rebase](https://help.github.com/articles/interactive-rebase)
feature to tidy up your commits before making them public.
5. Locally merge (or rebase) the upstream development branch into your topic branch:
```bash
git pull [--rebase] upstream master
```
6. Push your topic branch up to your fork:
```bash
git push origin <topic-branch-name>
```
10. [Open a Pull Request](https://help.github.com/articles/using-pull-requests) with a
clear title and description.
## Do not…
Please **do not** use the issue tracker for personal support requests.
Please **do not** derail or troll issues. Keep the
discussion on topic and respect the opinions of others.
================================================
FILE: LICENSE
================================================
The MIT License (MIT)
Copyright (c) 2015 Sunesis d.o.o. and Tilen Faganel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================
FILE: README.md
================================================
# KumuluzEE

> Lightweight open-source framework for developing microservices using standard Java/JakartaEE technologies, extending them with Node.js, Go and other languages, and migrating to cloud-native architecture.
KumuluzEE is a lightweight framework for developing microservices using standard Java/JakartaEE technologies, extending them with Node.js, Go and other languages, and migrating existing applications to microservices and cloud-native architecture. KumuluzEE packages microservices as standalone JARs. KumuluzEE microservices are lightweight and optimized for size and start-up time.
They fit perfectly with Docker containers. KumuluzEE microservices are fully compatible with Kubernetes and enable Kubernetes-native development. KumuluzEE will also provide support for Serverless Functions on Azure, AWS and Google.
KumuluzEE also provides extensions for developing common patterns in cloud-native architectures, including configuration, logging, discovery, fault tolerance with circuit-breakers, metrics, security, event streaming and more.
KumuluzEE has been designed to use the standard Java/JakartaEE technologies and APIs with optional extensions for easier development of cloud-native microservices. Therefore, it is particularly suitable for existing enterprise Java developers, who would like to leverage their skills, but progressively move from monolithic to microservice design patterns.
KumuluzEE provides full support for **Java** latest versions (check each release for specific information). In addition to Java, KumuluzEE supports several programming languages, including **Node.js** and **Go**. Support for additional languages will be added soon. For these languages, KumuluzEE also provides support for service configuration and discovery.
KumuluzEE is Eclipse MicroProfile compliant and provides support for MicroProfile 1.0, 1.1, 1.2, 1.3, 1.4, 2.0, 2.1, 3.0, 3.1, 3.2 and 3.3. Support for 4.x and 5.x is coming soon. KumuluzEE provides support for all MicroProfile specifications, including MicroProfile Config, MicroProfile Health, MicroProfile Fault Tolerance, MicroProfile Metrics, MicroProfile JWT Authentication, MicroProfile Rest Client, MicroProfile OpenAPI and MicroProfile Open Tracing APIs.
## Getting started
If you already know how to use Java/JakartaEE, then you already know how to use KumuluzEE. It is simple and straightforward.
See the [getting started](https://github.com/kumuluz/KumuluzEE/wiki/Getting-started) wiki section to create your first light-weight standalone Java microservice in 5 minutes.
Read [tutorials](https://ee.kumuluz.com/tutorials/) at our home page.
Refer to [samples](https://github.com/kumuluz/kumuluzee-samples) for more examples.
## Features
Primary features:
- Lightweight, cloud-native Java microservices with full support for Docker, Kubernetes and Serverless (coming soon).
- Support for all major cloud-native patterns, minimal footprint, quick start-up time, perfect for scaling in the cloud.
- No need for a traditional application server. Run your app anywhere Java runs as well as in PaaS
and Docker-like environments.
- Allows you to develop microservices using standard Java technologies and extend them with Node.js, Go and other languages.
- Allows you to gradually migrate existing Java applications to microservices and cloud-native architecture.
- Complete control over what Java/JakartaEE components and its implementations are included. Only include what you need and make your app lightweight.
- Minimal to no configuration settings up the base server. Develop like any other Java application.
- Quick startup time, low resource consumption and stateless scalability accelerates development.
- Extend your microservices with common cloud-native patterns, such as config, discovery, logging, fault tolerance, circuit-breakers, etc. KumuluzEE provides all the building blocks.
KumuluzEE provides support for various Java/JakartaEE APIs and components. The goal is to support as many Java components as possible (contributions welcome).
## Java/JavaEE/JakartaEE components
Currently the following components are supported with more being added over time:
- Servlet (Jetty)
- CDI (RI Weld)
- JAX-RS (RI Jersey)
- JSON-P (RI JSONP)
- JSON-B (RI Yasson)
- JSP (Jetty Apache Jasper)
- JPA (RI EclipseLink)
- JPA (RI Hibernate)
- EL (RI UEL)
- JAX-WS (RI Metro)
- JAX-WS (Apache CXF)
- JSF (RI Mojarra)
- WebSocket (Jetty)
- Bean Validation (RI Hibernate validator)
- JTA (Narayana)
- Java Mail (RI JavaMail)
Please check each specific KumuluzEE version for specific versions of these components.
## Additional features
KumuluzEE provides additional features, which are described on the [project Wiki]( https://github.com/kumuluz/kumuluzee/wiki), particularly:
- [Configuration framework](https://github.com/kumuluz/kumuluzee/wiki/Configuration) for easy and efficient configuration of microservices from various sources, such as environment variables, configuration files (yaml), properties, etc.
- [TLS/SSL support](https://github.com/kumuluz/kumuluzee/wiki/TLS-SSL-support) for configuring TLS/SSL, including support for **HTTP/2**.
KumuluzEE also provides support for [**Uber JARs**](https://github.com/kumuluz/kumuluzee/wiki/Uber-JAR-support). With the KumuluzEE Maven plugin, you can pack and run each microservice as a single, self-contained Uber-JAR. Details are described later in this document.
## KumuluzEE projects
In addition to the standard Java EE components, KumuluzEE also comes with several projects that complement and extend its functionality. The projects follow the same modular concept as the Java components in which you can chose if you want to use it as well as the underlying implementation of the project. Most projects are geared towards creating cloud-native microservices including configuration, logging, discovery, fault tolerance including circuit-breakers, metrics, security, event streaming and more. Projects also extend KumuluzEE with technologies, such as Ethereum for blockchain microservices, gRPC, GraphQL, and others.
The following projects are available with more planned soon:
- [KumuluzEE Config](https://github.com/kumuluz/kumuluzee/wiki/Configuration) (File and environment variables)
- [KumuluzEE Config with config server](https://github.com/kumuluz/kumuluzee-config) (Config server etcd/Consul)
- [KumuluzEE REST](https://github.com/kumuluz/kumuluzee-rest) (For implementation of common, advanced and flexible REST API functionalities and patterns. Includes support for exposing JPA entities through REST)
- [KumuluzEE Logs](https://github.com/kumuluz/kumuluzee-logs) (For advanced microservice framework for logging)
- [KumuluzEE Discovery](https://github.com/kumuluz/kumuluzee-discovery) (For dynamic service discovery (etcd or Consul). Fully compatible with Kubernetes)
- [KumuluzEE Metrics](https://github.com/kumuluz/kumuluzee-metrics) (For easy collection and reporting of performance metrics)
- [KumuluzEE Security](https://github.com/kumuluz/kumuluzee-security) (For easy integration with OAuth2/OpenID identity and access management providers)
- [KumuluzEE Health](https://github.com/kumuluz/kumuluzee-health) (For implementing health checks and exposing microservice health information)
- [KumuluzEE Fault Tolerance](https://github.com/kumuluz/kumuluzee-fault-tolerance) (For implementing fault tolerance patterns with microservices including circuit breakers and decoupling microservices)
- [KumuluzEE Event Streaming](https://github.com/kumuluz/kumuluzee-streaming) (For event streaming support using Apache Kafka)
- [KumuluzEE Reactive](https://github.com/kumuluz/kumuluzee-reactive) (For developing reactive microservices and integration with reactive streams (Vert.x and similar))
- [KumuluzEE CORS](https://github.com/kumuluz/kumuluzee-cors) (For Cross-Origin Resource Sharing (CORS) support)
- [KumuluzEE Swagger](https://github.com/kumuluz/kumuluzee-swagger) (For Swagger (OpenAPI 2) support and visualization)
- [KumuluzEE OpenAPI](https://github.com/kumuluz/kumuluzee-openapi) (For OpenAPI 3 support, interface generation and visualization)
- [KumuluzEE Testing](https://github.com/kumuluz/kumuluzee-testing) (Tools and utilities for testing KumuluzEE microservices)
- [KumuluzEE gRPC](https://github.com/kumuluz/kumuluzee-grpc) (Native support for gRPC based services)
- [KumuluzEE GraphQL](https://github.com/kumuluz/kumuluzee-graphql) (Native support for GraphQL)
- [KumuluzEE Ethereum](https://github.com/kumuluz/kumuluzee-ethereum) (For Ethereum-enabled blockchain microservices)
- [KumuluzEE AMQP](https://github.com/kumuluz/kumuluzee-amqp) (Support for Advanced Message Queueing Protocol)
- [KumuluzEE Feature Flags](https://github.com/kumuluz/kumuluzee-feature-flags) (Support for development with feature flags.)
- [KumuluzEE JCache](https://github.com/kumuluz/kumuluzee-jcache) (Support for caching using JCache annotations.)
- [KumuluzEE Version](https://github.com/kumuluz/kumuluzee-version) (Support for exposing version details of microservice.)
## MicroProfile
KumuluzEE is Eclipse MicroProfile compliant and provides support for:
- MicroProfile 1.0
- MicroProfile 1.1
- MicroProfile 1.2
- MicroProfile 1.3
- MicroProfile 1.4
- MicroProfile 2.0
- MicroProfile 2.1
- MicroProfile 3.0
- MicroProfile 3.1
- MicroProfile 3.2
- MicroProfile 3.3
It implements the following MicroProfile APIs:
- [MicroProfile Config](https://github.com/kumuluz/kumuluzee-config-mp)
- [MicroProfile Health Check](https://github.com/kumuluz/kumuluzee-health)
- [MicroProfile Fault Tolerance](https://github.com/kumuluz/kumuluzee-fault-tolerance)
- [MicroProfile Metrics](https://github.com/kumuluz/kumuluzee-metrics)
- [MicroProfile JWT Authentication](https://github.com/kumuluz/kumuluzee-jwt-auth)
- [MicroProfile Rest Client](https://github.com/kumuluz/kumuluzee-rest-client)
- [MicroProfile OpenAPI](https://github.com/kumuluz/kumuluzee-openapi-mp)
- [MicroProfile Open Tracing](https://github.com/kumuluz/kumuluzee-opentracing)
## Usage
KumuluzEE ships with a BOM (bill of materials) which you can use to easily add the various components you need without worrying about the versions and their compatibility as it is required that all components are the same version.
Using maven add the BOM module of the library as a dependency to your project. The `${kumuluzee.version}` variables represents the most current minor version. You can see the available version on the
[Release Page](https://github.com/kumuluz/KumuluzEE/releases).
```xml
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-bom</artifactId>
<version>${kumuluzee.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
```
Now you can choose either any single combinations of Java components or use one of the common pre-built profiles that ship as part of KumuluzEE. You can chose any of the following profiles:
MicroProfile 1.0
```xml
<!-- MicroProfile 1.0 -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-1.0</artifactId>
</dependency>
```
MicroProfile 1.1
```xml
<!-- MicroProfile 1.1 -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-1.1</artifactId>
</dependency>
```
MicroProfile 1.2
```xml
<!-- MicroProfile 1.2 -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-1.2</artifactId>
</dependency>
```
MicroProfile 1.3
```xml
<!-- MicroProfile 1.3 -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-1.3</artifactId>
</dependency>
```
MicroProfile 1.4
```xml
<!-- MicroProfile 1.4 -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-1.4</artifactId>
</dependency>
```
MicroProfile 2.0
```xml
<!-- MicroProfile 2.0 -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-2.0</artifactId>
</dependency>
```
MicroProfile 2.1
```xml
<!-- MicroProfile 2.1 -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-2.1</artifactId>
</dependency>
```
MicroProfile 3.0
```xml
<!-- MicroProfile 3.0 -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-3.0</artifactId>
</dependency>
```
MicroProfile 3.1
```xml
<!-- MicroProfile 3.1 -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-3.1</artifactId>
</dependency>
```
MicroProfile 3.2
```xml
<!-- MicroProfile 3.2 -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-3.2</artifactId>
</dependency>
```
MicroProfile 3.3
```xml
<!-- MicroProfile 3.3 -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-3.3</artifactId>
</dependency>
```
To choose your Java components with fine grain control include them as your dependencies. You can chose any of the following artifacts:
```xml
<!-- Servlet (Jetty) -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-servlet-jetty</artifactId>
</dependency>
<!-- WebSocket (Jetty) -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-websocket-jetty</artifactId>
</dependency>
<!-- JSP (Jetty Apache Jasper) -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jsp-jetty</artifactId>
</dependency>
<!-- EL (UEL) -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-el-uel</artifactId>
</dependency>
<!-- CDI (Weld) -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-cdi-weld</artifactId>
</dependency>
<!-- JPA (EclipseLink) -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jpa-eclipselink</artifactId>
</dependency>
<!-- or -->
<!-- JPA (Hibernate) -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jpa-hibernate</artifactId>
</dependency>
<!-- JAX-RS (Jersey) -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jax-rs-jersey</artifactId>
</dependency>
<!-- JAX-WS (RI Metro) -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jax-ws-metro</artifactId>
</dependency>
<!-- or -->
<!-- JAX-WS (Apache CXF) -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jax-ws-cxf</artifactId>
</dependency>
<!-- JSF (Mojarra) -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jsf-mojarra</artifactId>
</dependency>
<!-- Bean Validation (Hibernate validator) -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-bean-validation-hibernate-validator</artifactId>
</dependency>
<!-- JSON-P -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-json-p-jsonp</artifactId>
</dependency>
<!-- JSON-B -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-json-b-yasson</artifactId>
</dependency>
<!-- JTA -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jta-narayana</artifactId>
</dependency>
<!-- JavaMail -->
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-javamail-ri</artifactId>
</dependency>
```
To choose your KumuluzEE project, you simply include it as your dependency. You can find the available implementations and options at their respected project pages.
## Pack and run microservice as Uber JAR
KumuluzEE (version 2.4 and higher) provides support for packing and running microservices as Uber JARs. It also includes a Maven plugin that correctly packages the microservice.
To package a Kumuluz EE microservice into an Uber JAR, you need to add the following plugin declaration into your
REST module pom.xml:
```xml
<plugin>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-maven-plugin</artifactId>
<version>${kumuluzee.version}</version>
<executions>
<execution>
<id>package</id>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<finalName/>
<outputDirectory/>
<mainClass/>
<webappDir/>
</configuration>
</execution>
</executions>
</plugin>
```
#### Parameters
* __finalName__
Final name of the generated "uber" JAR.
__Default value is__: `${project.build.finalName}` or `${project.artifactId}-${project.version}`
* __outputDirectory__
Directory containing the generated JAR.
__Default value is__: `${project.build.directory}`
### Run
Start the application using the following command:
```cmd
java -jar ${project.build.finalName}.jar
```
Example:
```cmd
java -jar my-app-1.0.0-SNAPSHOT.jar
```
## Getting started
You can find the getting started guide on the projects [wiki](https://github.com/kumuluz/KumuluzEE/wiki/Getting-started).
You can find samples [for Java EE and KumuluzEE]( https://github.com/kumuluz/kumuluzee-samples)
## Building
Ensure you have JDK 8 (or newer), Maven 3.2.1 (or newer) and Git installed
```bash
java -version
mvn -version
git --version
```
First clone the KumuluzEE repository:
```bash
git clone https://github.com/kumuluz/KumuluzEE.git
cd KumuluzEE
```
To build KumuluzEE run:
```bash
mvn clean package
```
This will build all modules and run the testsuite.
Once completed you will find the build archives in the modules respected `target` folder.
## Changelog
Recent changes can be viewed on Github on the [Releases Page](https://github.com/kumuluz/KumuluzEE/releases)
## Contribute
See the [contributing docs](https://github.com/kumuluz/KumuluzEE/blob/master/CONTRIBUTING.md)
When submitting an issue, please follow the [guidelines](https://github.com/kumuluz/KumuluzEE/blob/master/CONTRIBUTING.md#bugs).
When submitting a bugfix, write a test that exposes the bug and fails before applying your fix. Submit the test alongside the fix.
When submitting a new feature, add tests that cover the feature.
## License
MIT
================================================
FILE: bom/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>kumuluzee</artifactId>
<groupId>com.kumuluz.ee</groupId>
<version>4.2.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<name>KumuluzEE BOM</name>
<description>Bill of materials for all the KumuluzEE components</description>
<artifactId>kumuluzee-bom</artifactId>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-micro-profile</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-1.0</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-1.1</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-1.2</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-1.3</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-1.4</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-2.0</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-2.1</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-2.2</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-3.0</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-3.1</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-3.2</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-microProfile-3.3</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-servlet-jetty</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jsp-jetty</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-el-uel</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-cdi-weld</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jpa-eclipselink</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jpa-hibernate</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jax-rs-jersey</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jax-ws-metro</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jax-ws-cxf</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jsf-mojarra</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-websocket-jetty</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-bean-validation-hibernate-validator</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-json-p-jsonp</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-json-b-yasson</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-jta-narayana</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.kumuluz.ee</groupId>
<artifactId>kumuluzee-javamail-ri</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>
================================================
FILE: common/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>kumuluzee</artifactId>
<groupId>com.kumuluz.ee</groupId>
<version>4.2.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<name>KumuluzEE Common</name>
<description>
KumuluzEE common utilities, configs, exceptions and Java EE component interfaces
</description>
<artifactId>kumuluzee-common</artifactId>
<dependencies>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>jakarta.transaction</groupId>
<artifactId>jakarta.transaction-api</artifactId>
</dependency>
<dependency>
<groupId>io.agroal</groupId>
<artifactId>agroal-api</artifactId>
</dependency>
<dependency>
<groupId>io.agroal</groupId>
<artifactId>agroal-hikari</artifactId>
<version>${agroal.version}</version>
</dependency>
<dependency>
<groupId>io.agroal</groupId>
<artifactId>agroal-pool</artifactId>
<version>${agroal.version}</version>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
</project>
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/Component.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common;
import com.kumuluz.ee.common.config.EeConfig;
import com.kumuluz.ee.common.wrapper.KumuluzServerWrapper;
/**
* @author Tilen Faganel
* @since 1.0.0
*/
public interface Component {
void init(KumuluzServerWrapper server, EeConfig eeConfig);
void load();
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/ConfigExtension.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common;
import com.kumuluz.ee.configuration.ConfigurationSource;
import java.util.Collections;
import java.util.List;
/**
* @author Tilen Faganel
* @since 2.3.0
*/
public interface ConfigExtension extends Extension {
/**
* @deprecated Use {@link #getConfigurationSources()} instead.
*/
@Deprecated
default ConfigurationSource getConfigurationSource() {
return null;
}
default List<ConfigurationSource> getConfigurationSources() {
return Collections.emptyList();
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/Extension.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common;
import com.kumuluz.ee.common.config.EeConfig;
import com.kumuluz.ee.common.wrapper.KumuluzServerWrapper;
import java.util.Collections;
import java.util.List;
/**
* @author Tilen Faganel
* @since 2.3.0
*/
public interface Extension {
void load();
void init(KumuluzServerWrapper server, EeConfig eeConfig);
default boolean isEnabled() {
return true;
}
default List<String> scanLibraries() {
return Collections.emptyList();
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/KumuluzServer.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common;
import com.kumuluz.ee.common.config.ServerConfig;
import java.util.EventListener;
import java.util.Map;
import javax.servlet.Servlet;
/**
* @author Tilen Faganel
* @since 1.0.0
*/
public interface KumuluzServer {
void initServer();
void startServer();
void stopServer();
void setServerConfig(ServerConfig serverConfig);
ServerConfig getServerConfig();
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/LogsExtension.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common;
import java.util.Optional;
import java.util.logging.Handler;
import java.util.logging.LogManager;
/**
* @author Tilen Faganel
* @since 2.4.0
*/
public interface LogsExtension extends Extension {
Optional<Class<? extends LogManager>> getJavaUtilLogManagerClass();
Optional<Handler> getJavaUtilLogHandler();
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/ServletServer.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common;
import com.kumuluz.ee.common.servlet.ServletWrapper;
import javax.servlet.DispatcherType;
import javax.servlet.Filter;
import javax.servlet.Servlet;
import javax.sql.DataSource;
import javax.transaction.UserTransaction;
import java.util.*;
/**
* @author Tilen Faganel
* @since 1.0.0
*/
public interface ServletServer extends KumuluzServer {
void registerServlet(Class<? extends Servlet> servletClass, String mapping);
void registerServlet(Class<? extends Servlet> servletClass, String mapping, Map<String, String> parameters);
void registerServlet(Class<? extends Servlet> servletClass, String mapping, Map<String, String> parameters, int initOrder);
void registerListener(EventListener listener);
void registerFilter(Class<? extends Filter> filterClass, String pathSpec);
void registerFilter(Class<? extends Filter> filterClass, String pathSpec, Map<String, String> parameters);
void registerFilter(Class<? extends Filter> filterClass, String pathSpec, EnumSet<DispatcherType> dispatches);
void registerFilter(Class<? extends Filter> filterClass, String pathSpec, EnumSet<DispatcherType> dispatches, Map<String, String> parameters);
void registerResource(Object o, String jndiName);
void registerDataSource(DataSource ds, String jndiName);
void registerTransactionManager(UserTransaction userTransaction);
void initWebContext(List<String> scanLibraries);
List<ServletWrapper> getRegisteredServlets();
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/attributes/ClasspathAttributes.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.attributes;
/**
* @author Tilen Faganel
* @since 1.0.0
*/
public class ClasspathAttributes {
public static final String jar = "^((?!lib\\_[^\\/]*\\.jar\\.[^\\/]*\\.tmp|/lib\\_[^\\/]*\\.jar\\.[^\\/]*\\.tmp|.*\\/jre\\/lib\\/.*).)*$";
public static final String exploded = "^.*/classes/.*$";
public static final String exploded_test = ".*/test-classes/.*";
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/config/DataSourceConfig.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.config;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/**
* @author Tilen Faganel
* @since 2.1.0
*/
public class DataSourceConfig {
public static class Builder {
private String jndiName;
private String driverClass;
private String dataSourceClass;
private String connectionUrl;
private String username;
private String password;
private DataSourcePoolConfig.Builder pool = new DataSourcePoolConfig.Builder();
private Map<String, String> props = new HashMap<>();
public Builder jndiName(String jndiName) {
this.jndiName = jndiName;
return this;
}
public Builder driverClass(String driverClass) {
this.driverClass = driverClass;
return this;
}
public Builder dataSourceClass(String dataSourceClass) {
this.dataSourceClass = dataSourceClass;
return this;
}
public Builder connectionUrl(String connectionUrl) {
this.connectionUrl = connectionUrl;
return this;
}
public Builder username(String username) {
this.username = username;
return this;
}
public Builder password(String password) {
this.password = password;
return this;
}
public Builder pool(DataSourcePoolConfig.Builder pool) {
this.pool = pool;
return this;
}
public Builder prop(String key, String value) {
this.props.put(key, value);
return this;
}
public DataSourceConfig build() {
DataSourceConfig dataSourceConfig = new DataSourceConfig();
dataSourceConfig.jndiName = jndiName;
dataSourceConfig.driverClass = driverClass;
dataSourceConfig.dataSourceClass = dataSourceClass;
dataSourceConfig.connectionUrl = connectionUrl;
dataSourceConfig.username = username;
dataSourceConfig.password = password;
dataSourceConfig.pool = pool.build();
dataSourceConfig.props = Collections.unmodifiableMap(props);
return dataSourceConfig;
}
}
private String jndiName;
private String driverClass;
private String dataSourceClass;
private String connectionUrl;
private String username;
private String password;
private DataSourcePoolConfig pool;
private Map<String, String> props;
private DataSourceConfig() {
}
public String getJndiName() {
return jndiName;
}
public String getDriverClass() {
return driverClass;
}
public String getDataSourceClass() {
return dataSourceClass;
}
public String getConnectionUrl() {
return connectionUrl;
}
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
public DataSourcePoolConfig getPool() {
return pool;
}
public Map<String, String> getProps() {
return props;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/config/DataSourcePoolConfig.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.config;
/**
* @author Tilen Faganel
* @since 2.4.0
*/
public class DataSourcePoolConfig {
public static class Builder {
private Boolean autoCommit = true;
private Boolean flushOnClose = false;
private Long connectionTimeout = 30000L;
private Long idleTimeout = 600000L;
private Long maxLifetime = 1800000L;
@Deprecated
private Integer minIdle;
private Integer initialSize = 0;
private Integer minSize = 0;
private Integer maxSize = 10;
@Deprecated
private String name;
@Deprecated
private Long initializationFailTimeout;
@Deprecated
private Boolean isolateInternalQueries;
@Deprecated
private Boolean allowPoolSuspension;
@Deprecated
private Boolean readOnly;
@Deprecated
private Boolean registerMbeans;
private String connectionInitSql;
private String connectionValidSql;
private String transactionIsolation;
private Long validationTimeout = 5000L;
private Long leakDetectionThreshold = 0L;
private Long idleValidationTimeout = 0L;
public Builder autoCommit(Boolean autoCommit) {
this.autoCommit = autoCommit;
return this;
}
public Builder flushOnClose(Boolean flushOnClose) {
this.flushOnClose = flushOnClose;
return this;
}
public Builder connectionTimeout(Long connectionTimeout) {
this.connectionTimeout = connectionTimeout;
return this;
}
public Builder idleTimeout(Long idleTimeout) {
this.idleTimeout = idleTimeout;
return this;
}
public Builder maxLifetime(Long maxLifetime) {
this.maxLifetime = maxLifetime;
return this;
}
@Deprecated
public Builder minIdle(Integer minIdle) {
this.minIdle = minIdle;
return this;
}
public Builder initialSize(Integer initialSize) {
this.initialSize = initialSize;
return this;
}
public Builder minSize(Integer minSize) {
this.minSize = minSize;
return this;
}
public Builder maxSize(Integer maxSize) {
this.maxSize = maxSize;
return this;
}
@Deprecated
public Builder name(String name) {
this.name = name;
return this;
}
@Deprecated
public Builder initializationFailTimeout(Long initializationFailTimeout) {
this.initializationFailTimeout = initializationFailTimeout;
return this;
}
@Deprecated
public Builder isolateInternalQueries(Boolean isolateInternalQueries) {
this.isolateInternalQueries = isolateInternalQueries;
return this;
}
@Deprecated
public Builder allowPoolSuspension(Boolean allowPoolSuspension) {
this.allowPoolSuspension = allowPoolSuspension;
return this;
}
@Deprecated
public Builder readOnly(Boolean readOnly) {
this.readOnly = readOnly;
return this;
}
@Deprecated
public Builder registerMbeans(Boolean registerMbeans) {
this.registerMbeans = registerMbeans;
return this;
}
public Builder connectionInitSql(String connectionInitSql) {
this.connectionInitSql = connectionInitSql;
return this;
}
public Builder connectionValidSql(String connectionValidSql) {
this.connectionValidSql = connectionValidSql;
return this;
}
public Builder transactionIsolation(String transactionIsolation) {
this.transactionIsolation = transactionIsolation;
return this;
}
public Builder validationTimeout(Long validationTimeout) {
this.validationTimeout = validationTimeout;
return this;
}
public Builder leakDetectionThreshold(Long leakDetectionThreshold) {
this.leakDetectionThreshold = leakDetectionThreshold;
return this;
}
public Builder idleValidationTimeout (Long idleValidationTimeout ) {
this.idleValidationTimeout = idleValidationTimeout ;
return this;
}
public DataSourcePoolConfig build() {
DataSourcePoolConfig dataSourcePoolConfig = new DataSourcePoolConfig();
dataSourcePoolConfig.autoCommit = autoCommit;
dataSourcePoolConfig.flushOnClose = flushOnClose;
dataSourcePoolConfig.connectionTimeout = connectionTimeout;
dataSourcePoolConfig.idleTimeout = idleTimeout;
dataSourcePoolConfig.maxLifetime = maxLifetime;
dataSourcePoolConfig.minIdle = minIdle;
dataSourcePoolConfig.initialSize = initialSize;
dataSourcePoolConfig.minSize = minSize;
dataSourcePoolConfig.maxSize = maxSize;
dataSourcePoolConfig.name = name;
dataSourcePoolConfig.initializationFailTimeout = initializationFailTimeout;
dataSourcePoolConfig.isolateInternalQueries = isolateInternalQueries;
dataSourcePoolConfig.allowPoolSuspension = allowPoolSuspension;
dataSourcePoolConfig.readOnly = readOnly;
dataSourcePoolConfig.registerMbeans = registerMbeans;
dataSourcePoolConfig.connectionInitSql = connectionInitSql;
dataSourcePoolConfig.connectionValidSql = connectionValidSql;
dataSourcePoolConfig.transactionIsolation = transactionIsolation;
dataSourcePoolConfig.validationTimeout = validationTimeout;
dataSourcePoolConfig.leakDetectionThreshold = leakDetectionThreshold;
dataSourcePoolConfig.idleValidationTimeout = idleValidationTimeout;
return dataSourcePoolConfig;
}
}
private Boolean autoCommit;
private Boolean flushOnClose;
private Long connectionTimeout;
private Long idleTimeout;
private Long maxLifetime;
@Deprecated
private Integer minIdle;
private Integer initialSize = 0;
private Integer minSize = 0;
private Integer maxSize;
@Deprecated
private String name;
@Deprecated
private Long initializationFailTimeout;
@Deprecated
private Boolean isolateInternalQueries;
@Deprecated
private Boolean allowPoolSuspension;
@Deprecated
private Boolean readOnly;
@Deprecated
private Boolean registerMbeans;
private String connectionInitSql;
private String connectionValidSql;
private String transactionIsolation;
private Long validationTimeout;
private Long leakDetectionThreshold;
private Long idleValidationTimeout;
private DataSourcePoolConfig() {
}
public Boolean getFlushOnClose() {
return flushOnClose;
}
public Boolean getAutoCommit() {
return autoCommit;
}
public Long getConnectionTimeout() {
return connectionTimeout;
}
public Long getIdleTimeout() {
return idleTimeout;
}
public Long getMaxLifetime() {
return maxLifetime;
}
@Deprecated
public Integer getMinIdle() {
return minIdle;
}
public Integer getInitialSize() {
return initialSize;
}
public Integer getMinSize() {
return minSize;
}
public Integer getMaxSize() {
return maxSize;
}
@Deprecated
public String getName() {
return name;
}
@Deprecated
public Long getInitializationFailTimeout() {
return initializationFailTimeout;
}
@Deprecated
public Boolean getIsolateInternalQueries() {
return isolateInternalQueries;
}
@Deprecated
public Boolean getAllowPoolSuspension() {
return allowPoolSuspension;
}
@Deprecated
public Boolean getReadOnly() {
return readOnly;
}
@Deprecated
public Boolean getRegisterMbeans() {
return registerMbeans;
}
public String getConnectionInitSql() {
return connectionInitSql;
}
public String getConnectionValidSql() {
return connectionValidSql;
}
public String getTransactionIsolation() {
return transactionIsolation;
}
public Long getValidationTimeout() {
return validationTimeout;
}
public Long getLeakDetectionThreshold() {
return leakDetectionThreshold;
}
public Long getIdleValidationTimeout() {
return idleValidationTimeout;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/config/DevConfig.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.config;
import java.util.List;
/**
* @author Tilen Faganel
* @since 2.4.0
*/
public class DevConfig {
public static class Builder {
private String webappDir;
private List<String> scanLibraries;
private Boolean runningTests = false;
public Builder scanLibraries(List<String> scanLibraries) {
this.scanLibraries = scanLibraries;
return this;
}
public Builder webappDir(String webappDir) {
this.webappDir = webappDir;
return this;
}
public Builder runningTests(Boolean runningTests) {
this.runningTests = runningTests;
return this;
}
public DevConfig build() {
DevConfig devConfig = new DevConfig();
devConfig.webappDir = webappDir;
devConfig.scanLibraries = scanLibraries;
devConfig.runningTests = runningTests;
return devConfig;
}
}
private String webappDir;
private List<String> scanLibraries;
private Boolean runningTests;
private DevConfig() {
}
public String getWebappDir() {
return webappDir;
}
public List<String> getScanLibraries() {
return scanLibraries;
}
public Boolean getRunningTests() {
return runningTests;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/config/EeConfig.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.config;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
/**
* @author Tilen Faganel
* @since 1.0.0
*/
public class EeConfig {
public static class Builder {
private String name;
private String version = "1.0.0";
private Boolean debug = false;
private EnvConfig.Builder env = new EnvConfig.Builder();
private DevConfig.Builder dev = new DevConfig.Builder();
private ServerConfig.Builder server = new ServerConfig.Builder();
private List<DataSourceConfig.Builder> datasources = new ArrayList<>();
private List<XaDataSourceConfig.Builder> xaDatasources = new ArrayList<>();
private List<MailSessionConfig.Builder> mailSessions = new ArrayList<>();
public Builder name(String name) {
this.name = name;
return this;
}
public Builder version(String version) {
this.version = version;
return this;
}
public Builder debug(Boolean debug) {
this.debug = debug;
return this;
}
public Builder env(EnvConfig.Builder env) {
this.env = env;
return this;
}
public Builder dev(DevConfig.Builder dev) {
this.dev = dev;
return this;
}
public Builder server(ServerConfig.Builder server) {
this.server = server;
return this;
}
public Builder datasource(DataSourceConfig.Builder datasource) {
this.datasources.add(datasource);
return this;
}
public Builder xaDatasource(XaDataSourceConfig.Builder xaDatasource) {
this.xaDatasources.add(xaDatasource);
return this;
}
public Builder mailSession(MailSessionConfig.Builder mailSession) {
this.mailSessions.add(mailSession);
return this;
}
public EeConfig build() {
List<DataSourceConfig> constructedDatasources =
datasources.stream().map(DataSourceConfig.Builder::build).collect(Collectors.toList());
List<XaDataSourceConfig> constructedXaDatasources =
xaDatasources.stream().map(XaDataSourceConfig.Builder::build).collect(Collectors.toList());
List<MailSessionConfig> constructedMailSessions =
mailSessions.stream().map(MailSessionConfig.Builder::build).collect(Collectors.toList());
EeConfig eeConfig = new EeConfig();
eeConfig.name = name;
eeConfig.version = version;
eeConfig.debug = debug;
eeConfig.env = env.build();
eeConfig.dev = dev.build();
eeConfig.server = server.build();
eeConfig.datasources = Collections.unmodifiableList(constructedDatasources);
eeConfig.xaDatasources = Collections.unmodifiableList(constructedXaDatasources);
eeConfig.mailSessions = Collections.unmodifiableList(constructedMailSessions);
return eeConfig;
}
}
private static EeConfig instance;
private String name;
private String version;
private Boolean debug;
private EnvConfig env;
private DevConfig dev;
private ServerConfig server;
private List<DataSourceConfig> datasources;
private List<XaDataSourceConfig> xaDatasources;
private List<MailSessionConfig> mailSessions;
private EeConfig() {
}
public static void initialize(EeConfig eeConfig) {
if (instance != null) {
throw new IllegalStateException("The EeConfig was already initialized.");
}
instance = eeConfig;
}
public static EeConfig getInstance() {
if (instance == null) {
throw new IllegalStateException("The EeConfig was not yet initialized.");
}
return instance;
}
public String getName() {
return name;
}
public String getVersion() {
return version;
}
public Boolean getDebug() {
return debug;
}
public EnvConfig getEnv() {
return env;
}
public DevConfig getDev() {
return dev;
}
public ServerConfig getServer() {
return server;
}
public List<DataSourceConfig> getDatasources() {
return datasources;
}
public List<XaDataSourceConfig> getXaDatasources() {
return xaDatasources;
}
public List<MailSessionConfig> getMailSessions() {
return mailSessions;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/config/EnvConfig.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.config;
/**
* @author Tilen Faganel
* @since 2.4.0
*/
public class EnvConfig {
public static class Builder {
private String name;
public Builder name(String name) {
this.name = name;
return this;
}
public EnvConfig build() {
EnvConfig envConfig = new EnvConfig();
envConfig.name = name;
return envConfig;
}
}
private String name;
private EnvConfig() {
}
public String getName() {
return name;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/config/GzipConfig.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.config;
import java.util.List;
public class GzipConfig {
public static class Builder {
private Boolean enabled = false;
private Integer minGzipSize;
private List<String> includedMethods;
private List<String> includedMimeTypes;
private List<String> excludedMimeTypes;
private List<String> excludedAgentPatterns;
private List<String> excludedPaths;
private List<String> includedPaths;
public Builder enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
public Builder minGzipSize(Integer minGzipSize) {
this.minGzipSize = minGzipSize;
return this;
}
public Builder includedMethods(List<String> includedMethods) {
this.includedMethods = includedMethods;
return this;
}
public Builder includedMimeTypes(List<String> includedMimeTypes) {
this.includedMimeTypes = includedMimeTypes;
return this;
}
public Builder excludedMimeTypes(List<String> excludedMimeTypes) {
this.excludedMimeTypes = excludedMimeTypes;
return this;
}
public Builder excludedAgentPatterns(List<String> excludedAgentPatterns) {
this.excludedAgentPatterns = excludedAgentPatterns;
return this;
}
public Builder excludedPaths(List<String> excludedPaths) {
this.excludedPaths = excludedPaths;
return this;
}
public Builder includedPaths(List<String> includedPaths) {
this.includedPaths = includedPaths;
return this;
}
public GzipConfig build() {
GzipConfig gzipConfig = new GzipConfig();
gzipConfig.enabled = enabled;
gzipConfig.minGzipSize = minGzipSize;
gzipConfig.includedMethods = includedMethods;
gzipConfig.includedMimeTypes = includedMimeTypes;
gzipConfig.excludedMimeTypes = excludedMimeTypes;
gzipConfig.excludedAgentPatterns = excludedAgentPatterns;
gzipConfig.excludedPaths = excludedPaths;
gzipConfig.includedPaths = includedPaths;
return gzipConfig;
}
}
private Boolean enabled;
private Integer minGzipSize;
private List<String> includedMethods;
private List<String> includedMimeTypes;
private List<String> excludedMimeTypes;
private List<String> excludedAgentPatterns;
private List<String> excludedPaths;
private List<String> includedPaths;
private GzipConfig() {
}
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public Integer getMinGzipSize() {
return minGzipSize;
}
public void setMinGzipSize(Integer minGzipSize) {
this.minGzipSize = minGzipSize;
}
public List<String> getIncludedMethods() {
return includedMethods;
}
public void setIncludedMethods(List<String> includedMethods) {
this.includedMethods = includedMethods;
}
public List<String> getIncludedMimeTypes() {
return includedMimeTypes;
}
public void setIncludedMimeTypes(List<String> includedMimeTypes) {
this.includedMimeTypes = includedMimeTypes;
}
public List<String> getExcludedMimeTypes() {
return excludedMimeTypes;
}
public void setExcludedMimeTypes(List<String> excludedMimeTypes) {
this.excludedMimeTypes = excludedMimeTypes;
}
public List<String> getExcludedPaths() {
return excludedPaths;
}
public void setExcludedPaths(List<String> excludedPaths) {
this.excludedPaths = excludedPaths;
}
public List<String> getIncludedPaths() {
return includedPaths;
}
public void setIncludedPaths(List<String> includedPaths) {
this.includedPaths = includedPaths;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/config/MailServiceConfig.java
================================================
package com.kumuluz.ee.common.config;
public class MailServiceConfig {
public static class Builder {
private String protocol;
private String host;
private Integer port;
private Boolean starttls;
private String username;
private String password;
private Long connectionTimeout;
private Long timeout;
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
public Builder host(String host) {
this.host = host;
return this;
}
public Builder port(Integer port) {
this.port = port;
return this;
}
public Builder starttls(Boolean starttls) {
this.starttls = starttls;
return this;
}
public Builder username(String username) {
this.username = username;
return this;
}
public Builder password(String password) {
this.password = password;
return this;
}
public Builder connectionTimeout(Long connectionTimeout) {
this.connectionTimeout = connectionTimeout;
return this;
}
public Builder timeout(Long timeout) {
this.timeout = timeout;
return this;
}
public MailServiceConfig build() {
MailServiceConfig mailServiceConfig = new MailServiceConfig();
mailServiceConfig.protocol = protocol;
mailServiceConfig.host = host;
mailServiceConfig.port = port;
mailServiceConfig.starttls = starttls;
mailServiceConfig.username = username;
mailServiceConfig.password = password;
mailServiceConfig.connectionTimeout = connectionTimeout;
mailServiceConfig.timeout = timeout;
return mailServiceConfig;
}
}
private String protocol;
private String host;
private Integer port;
private Boolean starttls;
private String username;
private String password;
private Long connectionTimeout;
private Long timeout;
private MailServiceConfig(){
}
public String getProtocol() {
return protocol;
}
public String getHost() {
return host;
}
public Integer getPort() {
return port;
}
public Boolean getStarttls() {
return starttls;
}
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
public Long getConnectionTimeout() {
return connectionTimeout;
}
public Long getTimeout() {
return timeout;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/config/MailSessionConfig.java
================================================
package com.kumuluz.ee.common.config;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class MailSessionConfig {
public static class Builder {
private String jndiName;
private Boolean debug;
private MailServiceConfig.Builder transport;
private MailServiceConfig.Builder store;
private Map<String, String> props = new HashMap<>();
public Builder jndiName(String jndiName) {
this.jndiName = jndiName;
return this;
}
public Builder debug(Boolean debug) {
this.debug = debug;
return this;
}
public Builder transport(MailServiceConfig.Builder transport) {
this.transport = transport;
return this;
}
public Builder store(MailServiceConfig.Builder store) {
this.store = store;
return this;
}
public Builder prop(String key, String value) {
this.props.put(key, value);
return this;
}
public MailSessionConfig build() {
MailSessionConfig mailSessionConfig = new MailSessionConfig();
mailSessionConfig.jndiName = jndiName;
mailSessionConfig.debug = debug;
if (transport != null) mailSessionConfig.transport = transport.build();
if (store != null) mailSessionConfig.store = store.build();
mailSessionConfig.props = Collections.unmodifiableMap(props);
return mailSessionConfig;
}
}
private String jndiName;
private Boolean debug;
private MailServiceConfig transport;
private MailServiceConfig store;
private Map<String, String> props;
private MailSessionConfig() {
}
public String getJndiName() {
return jndiName;
}
public Boolean getDebug() {
return debug;
}
public MailServiceConfig getTransport() {
return transport;
}
public MailServiceConfig getStore() {
return store;
}
public Map<String, String> getProps() {
return props;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/config/ServerConfig.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.config;
/**
* @author Tilen Faganel
* @since 1.0.0
*/
public class ServerConfig {
public static class Builder {
private String baseUrl;
private String contextPath = "/";
private Boolean dirBrowsing = false;
private Boolean etags = false;
private Integer minThreads = 5;
private Integer maxThreads = 100;
private Boolean forceHttps = false;
private Boolean showServerInfo = true;
private Boolean forwardStartupException;
private ServerConnectorConfig.Builder http = new ServerConnectorConfig.Builder();
private ServerConnectorConfig.Builder https;
private GzipConfig.Builder gzip;
public Builder baseUrl(String baseUrl) {
this.baseUrl = baseUrl;
return this;
}
public Builder contextPath(String contextPath) {
this.contextPath = contextPath;
return this;
}
public Builder dirBrowsing(Boolean dirBrowsing) {
this.dirBrowsing = dirBrowsing;
return this;
}
public Builder etags(Boolean etags) {
this.etags = etags;
return this;
}
public Builder minThreads(Integer minThreads) {
this.minThreads = minThreads;
return this;
}
public Builder maxThreads(Integer maxThreads) {
this.maxThreads = maxThreads;
return this;
}
public Builder forceHttps(Boolean forceHttps) {
this.forceHttps = forceHttps;
return this;
}
public Builder http(ServerConnectorConfig.Builder http) {
this.http = http;
return this;
}
public Builder https(ServerConnectorConfig.Builder https) {
this.https = https;
return this;
}
public Builder gzip(GzipConfig.Builder gzip) {
this.gzip = gzip;
return this;
}
public Builder showServerInfo(Boolean showServerInfo) {
this.showServerInfo = showServerInfo;
return this;
}
public Builder forwardStartupException(Boolean forwardStartupException) {
this.forwardStartupException = forwardStartupException;
return this;
}
public ServerConfig build() {
ServerConfig serverConfig = new ServerConfig();
serverConfig.baseUrl = baseUrl;
serverConfig.contextPath = contextPath;
serverConfig.dirBrowsing = dirBrowsing;
serverConfig.etags = etags;
serverConfig.minThreads = minThreads;
serverConfig.maxThreads = maxThreads;
serverConfig.forceHttps = forceHttps;
serverConfig.showServerInfo = showServerInfo;
serverConfig.forwardStartupException = forwardStartupException;
serverConfig.http = http.build();
if (https != null) serverConfig.https = https.build();
if (gzip != null) serverConfig.gzip = gzip.build();
return serverConfig;
}
}
private String baseUrl;
private String contextPath;
private Boolean dirBrowsing;
private Boolean etags;
private Integer minThreads;
private Integer maxThreads;
private Boolean forceHttps;
private Boolean showServerInfo;
private Boolean forwardStartupException;
private ServerConnectorConfig http;
private ServerConnectorConfig https;
private GzipConfig gzip;
private ServerConfig() {
}
public String getBaseUrl() {
return baseUrl;
}
public String getContextPath() {
return contextPath;
}
public Boolean getDirBrowsing() {
return dirBrowsing;
}
public Boolean getEtags() {
return etags;
}
public Integer getMinThreads() {
return minThreads;
}
public Integer getMaxThreads() {
return maxThreads;
}
public Boolean getForceHttps() {
return forceHttps;
}
public Boolean getShowServerInfo(){
return showServerInfo;
}
public Boolean getForwardStartupException() {
return forwardStartupException;
}
public ServerConnectorConfig getHttp() {
return http;
}
public ServerConnectorConfig getHttps() {
return https;
}
public GzipConfig getGzip() {
return gzip;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/config/ServerConnectorConfig.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.config;
import java.util.Collections;
import java.util.List;
/**
* @author Tilen Faganel
* @since 2.4.0
*/
public class ServerConnectorConfig {
public final static Integer DEFAULT_HTTP_PORT = 8080;
public final static Integer DEFAULT_HTTPS_PORT = 8443;
public static class Builder {
private Integer port;
private String address;
private Boolean enabled;
private Boolean http2 = false;
private Boolean proxyForwarding = false;
private Integer requestHeaderSize = 8 * 1024;
private Integer responseHeaderSize = 8 * 1024;
private Integer idleTimeout = 30 * 1000;
private String keystorePath;
private String keystorePassword;
private String keyAlias;
private String keyPassword;
private List<String> sslProtocols;
private List<String> sslCiphers;
public Builder port(Integer port) {
this.port = port;
return this;
}
public Builder address(String address) {
this.address = address;
return this;
}
public Builder enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
public Builder http2(Boolean http2) {
this.http2 = http2;
return this;
}
public Builder proxyForwarding(Boolean proxyForwarding) {
this.proxyForwarding = proxyForwarding;
return this;
}
public Builder requestHeaderSize(Integer requestHeaderSize) {
this.requestHeaderSize = requestHeaderSize;
return this;
}
public Builder responseHeaderSize(Integer responseHeaderSize) {
this.responseHeaderSize = responseHeaderSize;
return this;
}
public Builder idleTimeout(Integer idleTimeout) {
this.idleTimeout = idleTimeout;
return this;
}
public Builder keystorePath(String keystorePath) {
this.keystorePath = keystorePath;
return this;
}
public Builder keystorePassword(String keystorePassword) {
this.keystorePassword = keystorePassword;
return this;
}
public Builder keyAlias(String keyAlias) {
this.keyAlias = keyAlias;
return this;
}
public Builder keyPassword(String keyPassword) {
this.keyPassword = keyPassword;
return this;
}
public Builder sslProtocols(List<String> sslProtocols) {
this.sslProtocols = Collections.unmodifiableList(sslProtocols);
return this;
}
public Builder sslCiphers(List<String> sslCiphers) {
this.sslCiphers = Collections.unmodifiableList(sslCiphers);
return this;
}
public ServerConnectorConfig build() {
ServerConnectorConfig serverConnectorConfig = new ServerConnectorConfig();
serverConnectorConfig.port = port;
serverConnectorConfig.address = address;
serverConnectorConfig.enabled = enabled;
serverConnectorConfig.http2 = http2;
serverConnectorConfig.proxyForwarding = proxyForwarding;
serverConnectorConfig.requestHeaderSize = requestHeaderSize;
serverConnectorConfig.responseHeaderSize = responseHeaderSize;
serverConnectorConfig.idleTimeout = idleTimeout;
serverConnectorConfig.keystorePath = keystorePath;
serverConnectorConfig.keystorePassword = keystorePassword;
serverConnectorConfig.keyAlias = keyAlias;
serverConnectorConfig.keyPassword = keyPassword;
serverConnectorConfig.sslProtocols = sslProtocols;
serverConnectorConfig.sslCiphers = sslCiphers;
return serverConnectorConfig;
}
}
private Integer port;
private String address;
private Boolean enabled;
private Boolean http2;
private Boolean proxyForwarding;
private Integer requestHeaderSize;
private Integer responseHeaderSize;
private Integer idleTimeout;
private String keystorePath;
private String keystorePassword;
private String keyAlias;
private String keyPassword;
private List<String> sslProtocols;
private List<String> sslCiphers;
private ServerConnectorConfig() {
}
public Integer getPort() {
return port;
}
public String getAddress() {
return address;
}
public Boolean getEnabled() {
return enabled;
}
public Boolean getHttp2() {
return http2;
}
public Boolean getProxyForwarding() {
return proxyForwarding;
}
public Integer getRequestHeaderSize() {
return requestHeaderSize;
}
public Integer getResponseHeaderSize() {
return responseHeaderSize;
}
public Integer getIdleTimeout() {
return idleTimeout;
}
public String getKeystorePath() {
return keystorePath;
}
public String getKeystorePassword() {
return keystorePassword;
}
public String getKeyAlias() {
return keyAlias;
}
public String getKeyPassword() {
return keyPassword;
}
public List<String> getSslProtocols() {
return sslProtocols;
}
public List<String> getSslCiphers() {
return sslCiphers;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/config/XaDataSourceConfig.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.config;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/**
* @author Tilen Faganel
* @since 2.3.0
*/
public class XaDataSourceConfig {
public static class Builder {
private String jndiName;
private String xaDatasourceClass;
private String username;
private String password;
private DataSourcePoolConfig.Builder pool = new DataSourcePoolConfig.Builder();
private Map<String, String> props = new HashMap<>();
public Builder jndiName(String jndiName) {
this.jndiName = jndiName;
return this;
}
public Builder xaDatasourceClass(String xaDatasourceClass) {
this.xaDatasourceClass = xaDatasourceClass;
return this;
}
public Builder username(String username) {
this.username = username;
return this;
}
public Builder password(String password) {
this.password = password;
return this;
}
public Builder pool(DataSourcePoolConfig.Builder pool) {
this.pool = pool;
return this;
}
public Builder prop(String key, String value) {
this.props.put(key, value);
return this;
}
public XaDataSourceConfig build() {
XaDataSourceConfig xaDataSourceConfig = new XaDataSourceConfig();
xaDataSourceConfig.jndiName = jndiName;
xaDataSourceConfig.xaDatasourceClass = xaDatasourceClass;
xaDataSourceConfig.username = username;
xaDataSourceConfig.password = password;
xaDataSourceConfig.pool = pool.build();
xaDataSourceConfig.props = Collections.unmodifiableMap(props);
return xaDataSourceConfig;
}
}
private String jndiName;
private String xaDatasourceClass;
private String username;
private String password;
private DataSourcePoolConfig pool;
private Map<String, String> props;
private XaDataSourceConfig() {
}
public String getJndiName() {
return jndiName;
}
public String getXaDatasourceClass() {
return xaDatasourceClass;
}
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
public DataSourcePoolConfig getPool() {
return pool;
}
public Map<String, String> getProps() {
return props;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/datasources/NonJtaXAConnectionWrapper.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.datasources;
import javax.sql.XAConnection;
import java.sql.*;
import java.util.Collections;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.Executor;
/**
* @author Tilen Faganel
* @since 2.3.0
*/
@Deprecated
public class NonJtaXAConnectionWrapper implements Connection {
private Boolean isClosed = false;
private XAConnection xaConnection;
public NonJtaXAConnectionWrapper(XAConnection xaConnection) {
this.xaConnection = xaConnection;
}
@Override
public Statement createStatement() throws SQLException {
checkIfValid();
return xaConnection.getConnection().createStatement();
}
@Override
public PreparedStatement prepareStatement(String sql) throws SQLException {
checkIfValid();
return xaConnection.getConnection().prepareStatement(sql);
}
@Override
public CallableStatement prepareCall(String sql) throws SQLException {
checkIfValid();
return xaConnection.getConnection().prepareCall(sql);
}
@Override
public String nativeSQL(String sql) throws SQLException {
checkIfValid();
return xaConnection.getConnection().nativeSQL(sql);
}
@Override
public void setAutoCommit(boolean autoCommit) throws SQLException {
checkIfValid();
xaConnection.getConnection().setAutoCommit(autoCommit);
}
@Override
public boolean getAutoCommit() throws SQLException {
checkIfValid();
return xaConnection.getConnection().getAutoCommit();
}
@Override
public void commit() throws SQLException {
checkIfValid();
xaConnection.getConnection().commit();
}
@Override
public void rollback() throws SQLException {
checkIfValid();
xaConnection.getConnection().rollback();
}
@Override
public void close() throws SQLException {
if (isClosed) return;
isClosed = true;
if (xaConnection != null) {
xaConnection.close();
xaConnection = null;
}
}
@Override
public boolean isClosed() throws SQLException {
return isClosed;
}
@Override
public DatabaseMetaData getMetaData() throws SQLException {
checkIfValid();
return xaConnection.getConnection().getMetaData();
}
@Override
public void setReadOnly(boolean readOnly) throws SQLException {
checkIfValid();
xaConnection.getConnection().setReadOnly(readOnly);
}
@Override
public boolean isReadOnly() throws SQLException {
checkIfValid();
return xaConnection.getConnection().isReadOnly();
}
@Override
public void setCatalog(String catalog) throws SQLException {
checkIfValid();
xaConnection.getConnection().setCatalog(catalog);
}
@Override
public String getCatalog() throws SQLException {
checkIfValid();
return xaConnection.getConnection().getCatalog();
}
@Override
public void setTransactionIsolation(int level) throws SQLException {
checkIfValid();
xaConnection.getConnection().setTransactionIsolation(level);
}
@Override
public int getTransactionIsolation() throws SQLException {
checkIfValid();
return xaConnection.getConnection().getTransactionIsolation();
}
@Override
public SQLWarning getWarnings() throws SQLException {
checkIfValid();
return xaConnection.getConnection().getWarnings();
}
@Override
public void clearWarnings() throws SQLException {
checkIfValid();
xaConnection.getConnection().clearWarnings();
}
@Override
public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException {
checkIfValid();
return xaConnection.getConnection().createStatement(resultSetType, resultSetConcurrency);
}
@Override
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
checkIfValid();
return xaConnection.getConnection().prepareStatement(sql, resultSetType, resultSetConcurrency);
}
@Override
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
checkIfValid();
return xaConnection.getConnection().prepareCall(sql, resultSetType, resultSetConcurrency);
}
@Override
public Map<String, Class<?>> getTypeMap() throws SQLException {
checkIfValid();
return xaConnection.getConnection().getTypeMap();
}
@Override
public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
checkIfValid();
xaConnection.getConnection().setTypeMap(map);
}
@Override
public void setHoldability(int holdability) throws SQLException {
checkIfValid();
xaConnection.getConnection().setHoldability(holdability);
}
@Override
public int getHoldability() throws SQLException {
checkIfValid();
return xaConnection.getConnection().getHoldability();
}
@Override
public Savepoint setSavepoint() throws SQLException {
checkIfValid();
return xaConnection.getConnection().setSavepoint();
}
@Override
public Savepoint setSavepoint(String name) throws SQLException {
checkIfValid();
return xaConnection.getConnection().setSavepoint(name);
}
@Override
public void rollback(Savepoint savepoint) throws SQLException {
checkIfValid();
xaConnection.getConnection().rollback();
}
@Override
public void releaseSavepoint(Savepoint savepoint) throws SQLException {
checkIfValid();
xaConnection.getConnection().releaseSavepoint(savepoint);
}
@Override
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
checkIfValid();
return xaConnection.getConnection().createStatement(resultSetType, resultSetConcurrency, resultSetHoldability);
}
@Override
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
checkIfValid();
return xaConnection.getConnection().prepareStatement(sql, resultSetType, resultSetConcurrency, resultSetHoldability);
}
@Override
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
checkIfValid();
return xaConnection.getConnection().prepareCall(sql, resultSetType, resultSetConcurrency, resultSetHoldability);
}
@Override
public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException {
checkIfValid();
return xaConnection.getConnection().prepareStatement(sql, autoGeneratedKeys);
}
@Override
public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException {
checkIfValid();
return xaConnection.getConnection().prepareStatement(sql, columnIndexes);
}
@Override
public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException {
checkIfValid();
return xaConnection.getConnection().prepareStatement(sql, columnNames);
}
@Override
public Clob createClob() throws SQLException {
checkIfValid();
return xaConnection.getConnection().createClob();
}
@Override
public Blob createBlob() throws SQLException {
checkIfValid();
return xaConnection.getConnection().createBlob();
}
@Override
public NClob createNClob() throws SQLException {
checkIfValid();
return xaConnection.getConnection().createNClob();
}
@Override
public SQLXML createSQLXML() throws SQLException {
checkIfValid();
return xaConnection.getConnection().createSQLXML();
}
@Override
public boolean isValid(int timeout) throws SQLException {
checkIfValid();
return xaConnection.getConnection().isValid(timeout);
}
@Override
public void setClientInfo(String name, String value) throws SQLClientInfoException {
try {
checkIfValid();
xaConnection.getConnection().setClientInfo(name, value);
} catch (SQLException e) {
throw new SQLClientInfoException(Collections.emptyMap(), e);
}
}
@Override
public void setClientInfo(Properties properties) throws SQLClientInfoException {
try {
checkIfValid();
xaConnection.getConnection().setClientInfo(properties);
} catch (SQLException e) {
throw new SQLClientInfoException(Collections.emptyMap(), e);
}
}
@Override
public String getClientInfo(String name) throws SQLException {
checkIfValid();
return xaConnection.getConnection().getClientInfo(name);
}
@Override
public Properties getClientInfo() throws SQLException {
checkIfValid();
return xaConnection.getConnection().getClientInfo();
}
@Override
public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
checkIfValid();
return xaConnection.getConnection().createArrayOf(typeName, elements);
}
@Override
public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
checkIfValid();
return xaConnection.getConnection().createStruct(typeName, attributes);
}
@Override
public void setSchema(String schema) throws SQLException {
checkIfValid();
xaConnection.getConnection().setSchema(schema);
}
@Override
public String getSchema() throws SQLException {
checkIfValid();
return xaConnection.getConnection().getSchema();
}
@Override
public void abort(Executor executor) throws SQLException {
checkIfValid();
xaConnection.getConnection().abort(executor);
}
@Override
public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
checkIfValid();
xaConnection.getConnection().setNetworkTimeout(executor, milliseconds);
}
@Override
public int getNetworkTimeout() throws SQLException {
checkIfValid();
return xaConnection.getConnection().getNetworkTimeout();
}
@Override
public <T> T unwrap(Class<T> iface) throws SQLException {
checkIfValid();
return xaConnection.getConnection().unwrap(iface);
}
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
checkIfValid();
return xaConnection.getConnection().isWrapperFor(iface);
}
private void checkIfValid() throws SQLException {
if (isClosed) throw new SQLException("The connection is closed");
if (xaConnection == null) throw new SQLException("The connection is invalid");
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/datasources/NonJtaXADataSourceWrapper.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.datasources;
import javax.sql.DataSource;
import javax.sql.XAConnection;
import javax.sql.XADataSource;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.sql.Wrapper;
import java.util.logging.Logger;
/**
* @author Tilen Faganel
* @since 2.3.0
*/
@Deprecated
public class NonJtaXADataSourceWrapper implements XADataSourceWrapper {
protected XADataSource xaDataSource;
public NonJtaXADataSourceWrapper(XADataSource xaDataSource) {
this.xaDataSource = xaDataSource;
}
@Override
public Connection getConnection() throws SQLException {
checkIfValid();
XAConnection xaConnection = xaDataSource.getXAConnection();
return new NonJtaXAConnectionWrapper(xaConnection);
}
@Override
public Connection getConnection(String username, String password) throws SQLException {
checkIfValid();
XAConnection xaConnection = xaDataSource.getXAConnection(username, password);
return new NonJtaXAConnectionWrapper(xaConnection);
}
@Override
public <T> T unwrap(Class<T> iface) throws SQLException {
if (xaDataSource == null) {
throw new SQLException("The underlying XADataSource is invalid or cannot be found");
} else if (iface.isInstance(xaDataSource)) {
return iface.cast(xaDataSource);
} else if (xaDataSource instanceof Wrapper) {
return ((java.sql.Wrapper) xaDataSource).unwrap(iface);
} else {
throw new SQLException("The requested interface cannot be unwrapped");
}
}
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
if (xaDataSource == null) {
throw new SQLException("The underlying XADataSource is invalid or cannot be found");
} else if (iface.isInstance(xaDataSource)) {
return true;
} else if (xaDataSource instanceof Wrapper) {
return ((java.sql.Wrapper) xaDataSource).isWrapperFor(iface);
}
return false;
}
@Override
public PrintWriter getLogWriter() throws SQLException {
checkIfValid();
return xaDataSource.getLogWriter();
}
@Override
public void setLogWriter(PrintWriter out) throws SQLException {
checkIfValid();
xaDataSource.setLogWriter(out);
}
@Override
public void setLoginTimeout(int seconds) throws SQLException {
checkIfValid();
xaDataSource.setLoginTimeout(seconds);
}
@Override
public int getLoginTimeout() throws SQLException {
checkIfValid();
return xaDataSource.getLoginTimeout();
}
@Override
public Logger getParentLogger() throws SQLFeatureNotSupportedException {
checkIfValid();
return xaDataSource.getParentLogger();
}
protected void checkIfValid() {
if (xaDataSource == null) throw new IllegalStateException("The XADataSource is invalid or cannot be found");
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/datasources/XADataSourceBuilder.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.datasources;
import com.kumuluz.ee.common.config.XaDataSourceConfig;
import com.kumuluz.ee.common.exceptions.KumuluzServerException;
import javax.sql.XADataSource;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
* @author Tilen Faganel
* @since 2.3.0
*/
@Deprecated
public class XADataSourceBuilder {
private XaDataSourceConfig xaDataSourceConfig;
public XADataSourceBuilder(XaDataSourceConfig xaDataSourceConfig) {
this.xaDataSourceConfig = xaDataSourceConfig;
}
public XADataSource constructXaDataSource() {
if (xaDataSourceConfig == null) {
throw new KumuluzServerException("The XADataSource configuration object for creating a XADataSource cannot be null.");
}
if (xaDataSourceConfig.getXaDatasourceClass() == null) {
throw new KumuluzServerException("The XADataSource class config property 'xa-datasource-class' for creating a XADataSource must be provided.");
}
XADataSource xaDataSource = createXaDataSourceObject();
setProperty(xaDataSource, "user", xaDataSourceConfig.getUsername());
setProperty(xaDataSource, "password", xaDataSourceConfig.getPassword());
xaDataSourceConfig.getProps().forEach((k, v) -> setProperty(xaDataSource, k, v));
return xaDataSource;
}
private XADataSource createXaDataSourceObject() {
try {
return (XADataSource) Class.forName(xaDataSourceConfig.getXaDatasourceClass()).newInstance();
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | ClassCastException e) {
String msg = "The XADataSource class '" + xaDataSourceConfig.getXaDatasourceClass() +
"' is either incorrect or is not present in the classpath.";
throw new KumuluzServerException(msg, e);
}
}
private void setProperty(Object object, String name, String value) {
name = "set" + name.substring(0, 1).toUpperCase() + name.substring(1);
Method[] methods = object.getClass().getMethods();
Method matchingMethod = null;
for (Method method : methods) {
if (method.getName().equalsIgnoreCase(name) && method.getParameterTypes().length == 1) {
// ignores overloading, just takes the first match it finds.
matchingMethod = method;
break;
}
}
if (matchingMethod == null) {
String msg = "The XADataSource configuration property '" + name + "' is either incorrect or doesn't exist.";
throw new KumuluzServerException(msg);
}
Class type = matchingMethod.getParameterTypes()[0];
Object argument = value;
if (type == Integer.TYPE) {
argument = Integer.valueOf(value);
}
if (type == Boolean.TYPE) {
argument = Boolean.valueOf(value);
}
try {
matchingMethod.invoke(object, argument);
} catch (IllegalAccessException | InvocationTargetException e) {
String msg = "The XADataSource configuration property '" + name + "' is either incorrect or doesn't exist.";
throw new KumuluzServerException(msg, e);
}
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/datasources/XADataSourceWrapper.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.datasources;
import javax.sql.DataSource;
/**
* @author Tilen Faganel
* @since 2.3.0
*/
@Deprecated
public interface XADataSourceWrapper extends DataSource {
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentDef.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.dependencies;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Tilen Faganel
* @since 2.0.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface EeComponentDef {
String name();
EeComponentType type();
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentDependencies.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.dependencies;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Tilen Faganel
* @since 2.0.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface EeComponentDependencies {
EeComponentDependency[] value();
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentDependency.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.dependencies;
import java.lang.annotation.*;
/**
* @author Tilen Faganel
* @since 2.0.0
*/
@Repeatable(EeComponentDependencies.class)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface EeComponentDependency {
EeComponentType value();
String[] implementations() default {};
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentOptional.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.dependencies;
import java.lang.annotation.*;
/**
* @author Tilen Faganel
* @since 2.0.0
*/
@Repeatable(EeComponentOptionals.class)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface EeComponentOptional {
EeComponentType value();
String[] implementations() default {};
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentOptionals.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.dependencies;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Tilen Faganel
* @since 2.0.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface EeComponentOptionals {
EeComponentOptional[] value();
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentType.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.dependencies;
/**
* @author Tilen Faganel
* @since 2.0.0
*/
public enum EeComponentType {
SERVLET("Servlet"),
WEBSOCKET("WebSocket"),
JSP("JSP"),
EL("EL"),
JSF("JSF"),
JPA("JPA"),
CDI("CDI"),
JAX_RS("JAX-RS"),
JAX_WS("JAX-WS"),
BEAN_VALIDATION("Bean Validation"),
JSON_P("JSON-P"),
JSON_B("JSON-B"),
JTA("JTA"),
EJB("EJB"),
BATCH("Batch"),
MAIL("JavaMail");
private final String name;
EeComponentType(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/dependencies/EeExtensionDef.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.dependencies;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Tilen Faganel
* @since 2.3.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface EeExtensionDef {
String name();
String group();
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/dependencies/EeExtensionGroup.java
================================================
package com.kumuluz.ee.common.dependencies;
public class EeExtensionGroup {
public final static String CONFIG = "config";
public final static String LOGS = "logs";
public final static String DISCOVERY = "discovery";
public final static String SECURITY = "security";
public final static String FAULT_TOLERANCE = "fault.tolerance";
public final static String STREAMING = "streaming";
public final static String METRICS = "metrics";
public final static String HEALTH = "health";
public final static String CORS = "cors";
public final static String REST_CLIENT = "rest.client";
public final static String AMQP = "amqp";
public final static String CACHING = "caching";
public final static String GRAPHQL = "graphql";
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/dependencies/ServerDef.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.dependencies;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Tilen Faganel
* @since 2.0.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface ServerDef {
String value();
EeComponentType[] provides() default {};
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/exceptions/ComponentsException.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.exceptions;
/**
* @author Tilen Faganel
* @since 1.0.0
*/
public class ComponentsException extends RuntimeException {
public ComponentsException(String msg) {
super(msg);
}
public ComponentsException(String msg, Throwable cause) {
super(msg, cause);
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/exceptions/KumuluzServerException.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.exceptions;
/**
* @author Tilen Faganel
* @since 1.0.0
*/
public class KumuluzServerException extends RuntimeException {
public KumuluzServerException(String msg) {
super(msg);
}
public KumuluzServerException(String msg, Throwable cause) {
super(msg, cause);
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/filters/PoweredByFilter.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.filters;
import javax.servlet.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class PoweredByFilter implements Filter {
private String name;
@Override
public void init(FilterConfig filterConfig) throws ServletException {
this.name = filterConfig.getInitParameter("name");
}
@Override
public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain)
throws IOException,
ServletException {
((HttpServletResponse) response).addHeader("X-Powered-By", name);
chain.doFilter(request, response);
}
@Override
public void destroy() {
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/runtime/EeRuntime.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.runtime;
import java.util.List;
/**
* @author Tilen Faganel
* @since 2.4.0
*/
public class EeRuntime {
private EeRuntimeInternal internalRuntime;
private static EeRuntime instance;
protected EeRuntime() {
}
private EeRuntime(EeRuntimeInternal internalRuntime) {
this.internalRuntime = internalRuntime;
}
public static void initialize(EeRuntimeInternal runtimeInternal) {
if (instance != null) {
throw new IllegalStateException("The EeRuntime was already initialized.");
}
instance = new EeRuntime(runtimeInternal);
}
public static EeRuntime getInstance() {
if (instance == null) {
throw new IllegalStateException("The EeRuntime was not yet initialized.");
}
return instance;
}
public String getInstanceId() {
return internalRuntime.getInstanceId();
}
public String getVersion() {
return internalRuntime.getVersion();
}
public List<EeRuntimeComponent> getEeComponents() {
return internalRuntime.getEeComponents();
}
public List<EeRuntimeExtension> getEeExtensions() {
return internalRuntime.getEeExtensions();
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/runtime/EeRuntimeComponent.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.runtime;
import com.kumuluz.ee.common.dependencies.EeComponentType;
/**
* @author Tilen Faganel
* @since 2.4.0
*/
public class EeRuntimeComponent {
private EeComponentType type;
private String implementationName;
public EeRuntimeComponent(EeComponentType type, String implementationName) {
this.type = type;
this.implementationName = implementationName;
}
public EeComponentType getType() {
return type;
}
public String getImplementationName() {
return implementationName;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/runtime/EeRuntimeExtension.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.runtime;
/**
* @author Jan Meznarič
* @since 2.5.0
*/
public class EeRuntimeExtension {
private String group;
private String implementationName;
public EeRuntimeExtension(String group, String implementationName) {
this.group = group;
this.implementationName = implementationName;
}
public String getGroup() {
return group;
}
public String getImplementationName() {
return implementationName;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/runtime/EeRuntimeInternal.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.runtime;
import java.util.Collections;
import java.util.List;
import java.util.ResourceBundle;
import java.util.UUID;
/**
* @author Tilen Faganel
* @since 2.4.0
*/
public class EeRuntimeInternal {
private String instanceId = UUID.randomUUID().toString();
private String version = ResourceBundle.getBundle("META-INF/kumuluzee/versions").getString("version");
private List<EeRuntimeComponent> eeComponents = Collections.emptyList();
private List<EeRuntimeExtension> eeExtensions = Collections.emptyList();
public String getInstanceId() {
return instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public List<EeRuntimeComponent> getEeComponents() {
return eeComponents;
}
public void setEeComponents(List<EeRuntimeComponent> eeComponents) {
this.eeComponents = Collections.unmodifiableList(eeComponents);
}
public List<EeRuntimeExtension> getEeExtensions() {
return eeExtensions;
}
public void setEeExtensions(List<EeRuntimeExtension> eeExtensions) {
this.eeExtensions = Collections.unmodifiableList(eeExtensions);
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/servlet/ServletWrapper.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.servlet;
/**
* @author Urban Malc
* @since 2.6.0
*/
public class ServletWrapper {
private String name;
private String contextPath;
public ServletWrapper(String name, String contextPath) {
this.name = name;
this.contextPath = contextPath;
}
public String getName() {
return name;
}
public String getContextPath() {
return contextPath;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/utils/ClassUtils.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.utils;
/**
* @author Tilen Faganel
* @since 1.0.0
*/
public class ClassUtils {
public static boolean isPresent(String className) {
return loadClass(className) != null;
}
public static Class<?> loadClass(String className) {
try {
return Class.forName(className);
} catch (Throwable ex) {
return null;
}
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/utils/EnvUtils.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.utils;
import com.kumuluz.ee.common.exceptions.KumuluzServerException;
import java.util.Optional;
import java.util.function.Consumer;
/**
* @author Tilen Faganel
* @since 1.0.0
*/
public class EnvUtils {
public static void getEnv(String var, Consumer<String> consumer) {
Optional.ofNullable(System.getenv(var))
.filter(s -> !s.isEmpty())
.ifPresent(consumer);
}
public static void getEnvAsInteger(String var, Consumer<Integer> consumer) {
try {
Optional.ofNullable(System.getenv(var))
.filter(s -> !s.isEmpty())
.ifPresent(s -> consumer.accept(Integer.parseInt(s)));
} catch (NumberFormatException e) {
throw new KumuluzServerException(var + "is in the incorrect format", e);
}
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/utils/ResourceUtils.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.utils;
import com.kumuluz.ee.common.config.DevConfig;
import com.kumuluz.ee.common.config.EeConfig;
import com.kumuluz.ee.common.exceptions.KumuluzServerException;
import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
/**
* @author Tilen Faganel
* @since 1.0.0
*/
public class ResourceUtils {
public static String getProjectWebResources() {
// First check the `webapp` directory in the compiled resources
URL webApp = ResourceUtils.class.getClassLoader().getResource("webapp");
if (webApp != null) {
return webApp.toString();
}
// Next check if running inside an IDE and try to find the `src/main/webapp` dir
URL resourceRoot = ResourceUtils.class.getClassLoader().getResource(".");
if (resourceRoot != null) {
try {
Path resourceRootPath = Paths.get(resourceRoot.toURI());
// If running with maven
if (Files.isDirectory(resourceRootPath) && resourceRootPath.getFileName().toString().equals("classes")
&& resourceRootPath.getParent() != null && resourceRootPath.getParent().getFileName().toString().equals("target")) {
DevConfig devConfig = EeConfig.getInstance().getDev();
Path sibling = devConfig.getWebappDir() == null ?
Paths.get( "src", "main", "webapp") :
Paths.get(devConfig.getWebappDir());
Path sourceWebApp = resourceRootPath.getParent().resolveSibling(sibling);
if (Files.isDirectory(sourceWebApp)) {
return sourceWebApp.toString();
}
}
} catch (URISyntaxException e) {
throw new KumuluzServerException("Could not retrieve the class loaders' resource dir.", e);
}
}
// Finally if nothing is found, create a temp directory and delete it on shutdown
try {
final Path tempWebApp = Files.createTempDirectory("kumuluzee-tmp-webapp");
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
try {
Files.delete(tempWebApp);
} catch (IOException ignored) {
}
}));
return tempWebApp.toString();
} catch (IOException e) {
throw new KumuluzServerException("Could not initialize a temporary webapp directory.", e);
}
}
public static boolean isRunningInJar() {
URL jar = ResourceUtils.class.getClassLoader().getResource("webapp");
return (jar == null || jar.toString().toLowerCase().startsWith("jar:"))
&& ResourceUtils.class.getClassLoader().getClass().getName().equals("com.kumuluz.ee.loader.EeClassLoader");
}
public static boolean isRunningTests() {
return EeConfig.getInstance().getDev().getRunningTests();
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/utils/StringUtils.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.utils;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* @author Tilen Faganel
* @since 2.3.0
*/
public class StringUtils {
/**
* Parse upper camel case to lower hyphen case.
*
* @param s string in upper camel case format
* @return string in lower hyphen case format
*/
public static String camelCaseToHyphenCase(String s) {
StringBuilder parsedString = new StringBuilder(s.substring(0, 1).toLowerCase());
for (char c : s.substring(1).toCharArray()) {
if (Character.isUpperCase(c)) {
parsedString.append("-").append(Character.toLowerCase(c));
} else {
parsedString.append(c);
}
}
return parsedString.toString();
}
/**
* Parse lower hyphen case to upper camel case.
*
* @param s string in lower hyphen case format
* @return string in upper camel case format
*/
public static String hyphenCaseToCamelCase(String s) {
List<String> words = Stream.of(s.split("-")).filter(w -> !"".equals(w)).collect(Collectors.toList());
if (words.size() < 2) {
return s;
}
StringBuilder parsedString = new StringBuilder(words.get(0));
for (int i = 1; i < words.size(); i++) {
parsedString.append(Character.toUpperCase(words.get(i).charAt(0))).append(words.get(i).substring(1));
}
return parsedString.toString();
}
/**
* Check whether the string is null or empty
*
* @param s string to check.
* @return 'true' if string is null or empty, 'false' otherwise.
*/
public static boolean isNullOrEmpty(String s) {
return s == null || s.isEmpty();
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/wrapper/ComponentWrapper.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.wrapper;
import com.kumuluz.ee.common.Component;
import com.kumuluz.ee.common.dependencies.EeComponentDependency;
import com.kumuluz.ee.common.dependencies.EeComponentOptional;
/**
* @author Tilen Faganel
* @since 2.0.0
*/
public class ComponentWrapper {
private Component component;
private String name;
private EeComponentDependency[] dependencies;
private EeComponentOptional[] optionalDependencies;
public ComponentWrapper(Component component, String name,
EeComponentDependency[] dependencies,
EeComponentOptional[] optionalDependencies) {
this.component = component;
this.name = name;
this.dependencies = dependencies;
this.optionalDependencies = optionalDependencies;
}
public Component getComponent() {
return component;
}
public void setComponent(Component component) {
this.component = component;
}
public EeComponentDependency[] getDependencies() {
return dependencies;
}
public void setDependencies(EeComponentDependency[] dependencies) {
this.dependencies = dependencies;
}
public EeComponentOptional[] getOptionalDependencies() {
return optionalDependencies;
}
public void setOptionalDependencies(EeComponentOptional[] optionalDependencies) {
this.optionalDependencies = optionalDependencies;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/wrapper/EeComponentWrapper.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.wrapper;
import com.kumuluz.ee.common.Component;
import com.kumuluz.ee.common.dependencies.EeComponentDependency;
import com.kumuluz.ee.common.dependencies.EeComponentOptional;
import com.kumuluz.ee.common.dependencies.EeComponentType;
import java.util.List;
/**
* @author Tilen Faganel
* @since 2.0.0
*/
public class EeComponentWrapper extends ComponentWrapper {
private EeComponentType type;
public EeComponentWrapper(Component component, String name,
EeComponentDependency[] dependencies,
EeComponentOptional[] optionalDependencies) {
super(component, name, dependencies, optionalDependencies);
}
public EeComponentWrapper(Component component, String name, EeComponentType type,
EeComponentDependency[] dependencies,
EeComponentOptional[] optionalDependencies) {
super(component, name, dependencies, optionalDependencies);
this.type = type;
}
public EeComponentType getType() {
return type;
}
public void setType(EeComponentType type) {
this.type = type;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/wrapper/ExtensionWrapper.java
================================================
package com.kumuluz.ee.common.wrapper;
import com.kumuluz.ee.common.Extension;
import com.kumuluz.ee.common.dependencies.EeComponentDependency;
import com.kumuluz.ee.common.dependencies.EeComponentOptional;
public class ExtensionWrapper<T extends Extension> {
private T extension;
private String name;
private String group;
private EeComponentDependency[] dependencies;
private EeComponentOptional[] optionalDependencies;
public ExtensionWrapper(T extension, String name, String group, EeComponentDependency[] dependencies, EeComponentOptional[] optionalDependencies) {
this.extension = extension;
this.name = name;
this.group = group;
this.dependencies = dependencies;
this.optionalDependencies = optionalDependencies;
}
public T getExtension() {
return extension;
}
public void setExtension(T extension) {
this.extension = extension;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getGroup() {
return group;
}
public void setGroup(String group) {
this.group = group;
}
public EeComponentDependency[] getDependencies() {
return dependencies;
}
public void setDependencies(EeComponentDependency[] dependencies) {
this.dependencies = dependencies;
}
public EeComponentOptional[] getOptionalDependencies() {
return optionalDependencies;
}
public void setOptionalDependencies(EeComponentOptional[] optionalDependencies) {
this.optionalDependencies = optionalDependencies;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/common/wrapper/KumuluzServerWrapper.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.common.wrapper;
import com.kumuluz.ee.common.KumuluzServer;
import com.kumuluz.ee.common.dependencies.EeComponentType;
import java.util.List;
/**
* @author Tilen Faganel
* @since 2.0.0
*/
public class KumuluzServerWrapper {
private KumuluzServer server;
private String name;
private EeComponentType[] providedEeComponents;
public KumuluzServerWrapper(KumuluzServer server, String name, EeComponentType[] providedEeComponents) {
this.server = server;
this.name = name;
this.providedEeComponents = providedEeComponents;
}
public KumuluzServer getServer() {
return server;
}
public void setServer(KumuluzServer server) {
this.server = server;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public EeComponentType[] getProvidedEeComponents() {
return providedEeComponents;
}
public void setProvidedEeComponents(EeComponentType[] providedEeComponents) {
this.providedEeComponents = providedEeComponents;
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/configuration/ConfigurationDecoder.java
================================================
/*
* Copyright (c) 2014-2019 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.configuration;
/**
* Optional implementation of this interface can be registered as
* a service provider to implement decoding of certain configuration keys' values.
*
* @author Jan Meznarič
* @since 3.2.1
*/
public interface ConfigurationDecoder {
/**
* Check if key's value should be decoded.
*
* @param key configuration key to be checked for decoding
* @return returns true if key's value should be decoded with the decode(String key, String value) method
*/
boolean shouldDecode(String key);
/**
* Decode values of encoded keys.
*
* @param key encoded key
* @param value encoded value
* @return decoded value
*/
String decode(String key, String value);
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/configuration/ConfigurationListener.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.configuration;
/**
* @author Tilen Faganel
* @since 2.3.0
*/
@FunctionalInterface
public interface ConfigurationListener {
void onChange(String key, String value);
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/configuration/ConfigurationSource.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.configuration;
import com.kumuluz.ee.configuration.utils.ConfigurationDispatcher;
import java.util.List;
import java.util.Optional;
/**
* @author Tilen Faganel
* @since 2.1.0
*/
public interface ConfigurationSource {
String CONFIG_ORDINAL = "config_ordinal";
void init(ConfigurationDispatcher configurationDispatcher);
Optional<String> get(String key);
default Optional<Boolean> getBoolean(String key) {
Optional<String> value = get(key);
return value.map(Boolean::valueOf);
}
default Optional<Integer> getInteger(String key) {
Optional<String> value = get(key);
if (value.isPresent()) {
try {
return Optional.of(Integer.valueOf(value.get()));
} catch (NumberFormatException e) {
return Optional.empty();
}
} else {
return Optional.empty();
}
}
default Optional<Long> getLong(String key) {
Optional<String> value = get(key);
if (value.isPresent()) {
try {
return Optional.of(Long.valueOf(value.get()));
} catch (NumberFormatException e) {
return Optional.empty();
}
} else {
return Optional.empty();
}
}
default Optional<Double> getDouble(String key) {
Optional<String> value = get(key);
if (value.isPresent()) {
try {
return Optional.of(Double.valueOf(value.get()));
} catch (NumberFormatException e) {
return Optional.empty();
}
} else {
return Optional.empty();
}
}
default Optional<Float> getFloat(String key) {
Optional<String> value = get(key);
if (value.isPresent()) {
try {
return Optional.of(Float.valueOf(value.get()));
} catch (NumberFormatException e) {
return Optional.empty();
}
} else {
return Optional.empty();
}
}
Optional<Integer> getListSize(String key);
Optional<List<String>> getMapKeys(String key);
void watch(String key);
void set(String key, String value);
void set(String key, Boolean value);
void set(String key, Integer value);
void set(String key, Double value);
void set(String key, Float value);
default Integer getOrdinal() {
return getInteger(CONFIG_ORDINAL).orElse(100);
}
default void postInit() {}
default void initProfile(String profileName) {}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/configuration/enums/ConfigurationValueType.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.configuration.enums;
/**
* @author Jan Meznarič
* @since 2.3.0
*/
public enum ConfigurationValueType {
STRING,
INTEGER,
LONG,
DOUBLE,
FLOAT,
BOOLEAN,
LIST,
MAP
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/configuration/sources/EnvironmentConfigurationSource.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.configuration.sources;
import com.kumuluz.ee.configuration.ConfigurationSource;
import com.kumuluz.ee.configuration.utils.ConfigurationDispatcher;
import java.util.*;
/**
* @author Tilen Faganel
* @since 2.1.0
*/
public class EnvironmentConfigurationSource implements ConfigurationSource {
@Override
public void init(ConfigurationDispatcher configurationDispatcher) {
}
@Override
public Optional<String> get(String key) {
String value = null;
for (String possibleName : getPossibleEnvNames(key)) {
value = System.getenv(possibleName);
if (value != null) {
break;
}
}
return Optional.ofNullable(value);
}
@Override
public Optional<Integer> getListSize(String key) {
for (String possibleKeyName : getPossibleEnvNames(key)) {
int maxIndex = -1;
for (String envName : System.getenv().keySet()) {
if (envName.startsWith(possibleKeyName)) {
int openingIndex = possibleKeyName.length();
int closingIndex = envName.indexOf("_", openingIndex + 1);
if (closingIndex < 0) {
closingIndex = envName.length();
}
try {
int idx = Integer.parseInt(envName.substring(openingIndex, closingIndex));
maxIndex = Math.max(maxIndex, idx);
} catch (NumberFormatException ignored) {
}
}
}
if (maxIndex != -1) {
return Optional.of(maxIndex + 1);
}
// retry for legacy key names
for (String envName : System.getenv().keySet()) {
if (envName.startsWith(possibleKeyName)) {
int openingIndex = possibleKeyName.length() + 1;
int closingIndex = envName.indexOf("]", openingIndex + 1);
if (closingIndex < 0) {
closingIndex = envName.indexOf("_", openingIndex + 1);
}
if (closingIndex < 0) {
closingIndex = envName.length() - 1;
}
if (openingIndex >= closingIndex) {
continue;
}
try {
int idx = Integer.parseInt(envName.substring(openingIndex, closingIndex));
maxIndex = Math.max(maxIndex, idx);
} catch (NumberFormatException ignored) {
}
}
}
if (maxIndex != -1) {
return Optional.of(maxIndex + 1);
}
}
return Optional.empty();
}
@Override
public Optional<List<String>> getMapKeys(String key) {
Set<String> mapKeys = new HashSet<>();
Set<String> envKeys = new HashSet<>(System.getenv().keySet());
List<String> possibleKeyNames = (key.equals("")) ? Collections.singletonList("") : getPossibleEnvNames(key);
for (String possibleKeyName : possibleKeyNames) {
Set<String> toRemove = new HashSet<>();
for (String envKey : envKeys) {
if (!possibleKeyName.equals("") && possibleKeyName.length() + 1 > envKey.length()) {
continue;
}
if (envKey.startsWith(possibleKeyName)) {
int separatorIdx;
int startIdx;
if (possibleKeyName.equals("")) {
int dotIdx = envKey.indexOf('.');
int underscoreIdx = envKey.indexOf('_');
if (dotIdx > 0 && underscoreIdx > 0) {
// both defined, pick earliest
separatorIdx = Math.min(dotIdx, underscoreIdx);
} else {
// at least one is -1
separatorIdx = Math.max(dotIdx, underscoreIdx);
}
startIdx = 0;
} else {
char separator = envKey.charAt(possibleKeyName.length());
if (separator != '.' && separator != '_') {
continue;
}
startIdx = possibleKeyName.length() + 1;
separatorIdx = envKey.indexOf(separator, startIdx);
}
if (separatorIdx < 0) {
// no separators left, use full key
separatorIdx = envKey.length();
}
String mapKey = envKey.substring(startIdx, separatorIdx);
if (!mapKey.isEmpty()) {
int bracketIndex = mapKey.indexOf("[");
if (bracketIndex > 0) {
// list bracket present, cut it off
mapKey = mapKey.substring(0, bracketIndex);
}
mapKeys.add(mapKey.toLowerCase());
toRemove.add(envKey);
}
}
}
envKeys.removeAll(toRemove);
}
if (mapKeys.size() == 0) {
return Optional.empty();
} else {
return Optional.of(new ArrayList<>(mapKeys));
}
}
@Override
public void watch(String key) {
}
@Override
public void set(String key, String value) {
}
@Override
public void set(String key, Boolean value) {
}
@Override
public void set(String key, Integer value) {
}
@Override
public void set(String key, Double value) {
}
@Override
public void set(String key, Float value) {
}
@Override
public Integer getOrdinal() {
return getInteger(CONFIG_ORDINAL).orElse(300);
}
private List<String> getPossibleEnvNames(String key) {
List<String> possibleNames = new LinkedList<>();
// MP Config 1.3: raw key
possibleNames.add(key);
// MP Config 1.3: replaces non alpha-numeric characters with '_'
possibleNames.add(replaceNonAlphaNum(key));
// MP Config 1.3: replaces non alpha-numeric characters with '_', to uppercase
possibleNames.add(replaceNonAlphaNum(key).toUpperCase());
// legacy 1: removes characters '[]-' and replaces dots with '_', to uppercase
possibleNames.add(parseKeyNameForEnvironmentVariables(key));
// legacy 2: replaces dots with '_', to uppercase
possibleNames.add(parseKeyNameForEnvironmentVariablesLegacy(key));
return possibleNames;
}
private String replaceNonAlphaNum(String s) {
return s.replaceAll("[^a-zA-Z0-9]", "_");
}
private String parseKeyNameForEnvironmentVariables(String key) {
return key.toUpperCase().replaceAll("\\[", "").replaceAll("]", "")
.replaceAll("-", "").replaceAll("\\.", "_");
}
private String parseKeyNameForEnvironmentVariablesLegacy(String key) {
return key.toUpperCase().replaceAll("\\.", "_");
}
}
================================================
FILE: common/src/main/java/com/kumuluz/ee/configuration/sources/FileConfigurationSource.java
================================================
/*
* Copyright (c) 2014-2017 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* The software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
* implied, including but not limited to the warranties of merchantability,
* fitness for a particular purpose and noninfringement. in no event shall the
* authors or copyright holders be liable for any claim, damages or other
* liability, whether in an action of contract, tort or otherwise, arising from,
* out of or in connection with the software or the use or other dealings in the
* software. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kumuluz.ee.configuration.sources;
import com.kumuluz.ee.configuration.ConfigurationSource;
import com.kumuluz.ee.configuration.utils.ConfigurationDispatcher;
import com.kumuluz.ee.configuration.utils.ConfigurationSourceUtils;
import com.kumuluz.ee.logs.LogDeferrer;
import org.yaml.snakeyaml.Yaml;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.*;
import java.util.logging.Logger;
import java.util.stream.Collectors;
/**
* @author Tilen Faganel
* @since 2.1.0
*/
public class FileConfigurationSource implements ConfigurationSource {
private enum Mode {
YAML,
PROPERTIES
}
private Logger log;
private LogDeferrer<Logger> logDeferrer;
private String ymlFileName;
private String yamlFileName;
private String propertiesFileName;
private final String microProfilePropertiesFileName;
private final List<Map<String, Object>> yamlConfigs = new ArrayList<>();
private final List<Properties> properties = new ArrayList<>();
private Mode mode;
public FileConfigurationSource() {
this.ymlFileName = "config.yml";
this.yamlFileName = "config.yaml";
this.propertiesFileName = "config.properties";
this.microProfilePropertiesFileName = "META-INF/microprofile-config.properties";
String configurationFileName = System.getProperty("com.kumuluz.ee.configuration.file");
if (configurationFileName != null && !configurationFileName.isEmpty()) {
this.ymlFileName = configurationFileName;
this.yamlFileName = null;
this.propertiesFileName = configurationFileName;
}
this.logDeferrer = new LogDeferrer<>();
this.logDeferrer.init(() -> Logger.getLogger(FileConfigurationSource.class.getName()));
}
public void postInit() {
logDeferrer.execute();
logDeferrer = null;
log = Logger.getLogger(FileConfigurationSource.class.getName());
}
@Override
public void init(ConfigurationDispatcher configurationDispatcher) {
// read yaml file to Map<String, Object>
Map<String, Object> yamlConfig = loadYamlFile(this.ymlFileName, this.yamlFileName);
if (yamlConfig != null) {
this.yamlConfigs.add(yamlConfig);
this.mode = Mode.YAML;
} else {
// parse properties file
Properties p = loadProperties(propertiesFileName);
if (p == null) {
p = loadProperties(microProfilePropertiesFileName);
}
if (p != null) {
this.properties.add(p);
this.mode = Mode.PROPERTIES;
}
}
if (!yamlConfigs.isEmpty() || !properties.isEmpty()) {
logDeferrer.defer(l -> l.info("Configuration successfully read."));
} else {
logDeferrer.defer(l -> l.info("Unable to load configuration from file. " +
"No configuration files were found."));
}
}
@Override
public void initProfile(String profileName) {
if (mode == Mode.YAML) {
Map<String, Object> yamlConfig = loadYamlFile("config-" + profileName + ".yml", "config-" + profileName + ".yaml");
if (yamlConfig != null) {
this.yamlConfigs.add(0, yamlConfig);
}
} else if (mode == Mode.PROPERTIES) {
Properties p = loadProperties("config-" + profileName + ".properties");
if (p == null) {
p = loadProperties("META-INF/microprofile-config-" + profileName + ".properties");
}
if (p != null) {
this.properties.add(0, p);
}
}
}
@Override
public Optional<String> get(String key) {
// get key value from yaml configuration
if (mode == Mode.YAML) {
Object value;
for (var config : this.yamlConfigs) {
value = getYamlValue(key, config);
if (value != null && !(value instanceof Map) && !(value instanceof List)) {
return Optional.of(value.toString());
}
}
return Optional.empty();
// get value from .properties configuration
} else if (mode == Mode.PROPERTIES) {
for (Properties properties : this.properties) {
String value = properties.getProperty(key);
if (value != null) {
return Optional.of(value);
}
}
return Optional.empty();
}
return Optional.empty();
}
@Override
public Optional<Integer> getListSize(String key) {
if (mode == Mode.YAML) {
Integer maxSize = null;
for (var config : this.yamlConfigs) {
Object value = getYamlValue(key, config);
if (value instanceof List) {
if (maxSize == null) {
maxSize = ((List<?>) value).size();
} else {
maxSize = Math.max(((List<?>) value).size(), maxSize);
}
}
}
return Optional.ofNullable(maxSize);
} else if (mode == Mode.PROPERTIES) {
Integer maxSize = null;
for (Properties properties : this.properties) {
Optional<Integer> propertyListSize = ConfigurationSourceUtils.getListSize(key, properties.stringPropertyNames());
if (propertyListSize.isPresent()) {
if (maxSize == null) {
maxSize = propertyListSize.get();
} else {
maxSize = Math.max(propertyListSize.get(), maxSize);
}
}
}
return Optional.ofNullable(maxSize);
}
return Optional.empty();
}
@Override
@SuppressWarnings("unchecked")
public Optional<List<String>> getMapKeys(String key) {
if (mode == Mode.YAML) {
boolean found = false;
Set<String> mergedKeys = new HashSet<>();
for (var config : this.yamlConfigs) {
Object o = (key.equals("")) ? config : getYamlValue(key, config);
Map<String, Object> map = null;
if (o instanceof Map) {
map = (Map<String, Object>) o;
}
if (map != null && !map.isEmpty()) {
found = true;
mergedKeys.addAll(map.keySet());
}
}
if (found) {
return Optional.of(new ArrayList<>(mergedKeys));
} else {
return Optional.empty();
}
} else if (mode == Mode.PROPERTIES) {
boolean found = false;
Set<String> mergedKeys = new HashSet<>();
for (Properties properties : this.properties) {
Optional<List<String>> propertyMapKeys = ConfigurationSourceUtils.getMapKeys(key,
properties.stringPropertyNames());
if (propertyMapKeys.isPresent()) {
found = true;
mergedKeys.addAll(propertyMapKeys.get());
}
}
if (found) {
return Optional.of(new ArrayList<>(mergedKeys));
} else {
return Optional.empty();
}
}
return Optional.empty();
}
@Override
public void watch(String key) {
}
@Override
public void set(String key, String value) {
}
@Override
public void set(String key, Boolean value) {
}
@Override
public void set(String key, Integer value) {
}
@Override
public void set(String key, Double value) {
}
@Override
public void set(String key, Float value) {
}
@Override
public Integer getOrdinal() {
return getInteger(CONFIG_ORDINAL).orElse(100);
}
/**
* Returns true, if key represents an array.
*
* @param key configuration key
* @return true if the config key represents an array, false otherwise.
*/
private boolean representsArray(String key) {
int openingBracket = key.indexOf("[");
int closingBracket = key.indexOf("]");
return closingBracket == key.length() - 1 && openingBracket != -1;
}
/**
* Parses configuration map, returns value for given key.
*
* @param key configuration key
* @return Value for given key.
*/
private Object getYamlValue(String key, Object value) {
// iterate over configuration tree
String[] splittedKeys = key.split("\\.");
for (int i = 0; i < splittedKeys.length; i++) {
String splittedKey = splittedKeys[i];
if (value == null) {
return null;
}
// parse arrays
if (representsArray(splittedKey)) {
// value array support
int arrayIndex;
int openingBracket = splittedKey.indexOf("[");
int closingBracket = splittedKey.indexOf("]");
try {
arrayIndex = Integer.parseInt(splittedKey.substring(openingBracket + 1, closingBracket));
} catch (NumberFormatException e) {
if (log != null) {
log.severe("Cannot cast array index.");
}
return null;
}
splittedKey = splittedKey.substring(0, openingBracket);
if (value instanceof Map) {
value = ((Map<?, ?>) value).get(splittedKey);
} else {
return null;
}
if (value instanceof List) {
value = (arrayIndex < ((List<?>) value).size()) ? ((List<?>) value).get(arrayIndex) : null;
}
} else {
if (value instanceof Map) {
Object tmpValue = ((Map<?, ?>) value).get(splittedKey);
if (tmpValue == null && i != splittedKeys.length - 1) {
String postfixKey = Arrays.stream(splittedKeys).skip(i)
.collect(Collectors.joining("."));
return ((Map<?, ?>) value).get(postfixKey);
} else {
value = tmpValue;
}
} else {
return null;
}
}
}
return value;
}
private Map<String, Object> loadYamlFile(String fileNameYml, String fileNameYaml) {
InputStream file = null;
Yaml yaml = new Yaml();
try {
file = getClass().getClassLoader().getResourceAsStream(fileNameYml);
if (file == null && fileNameYaml != null) {
file = getClass().getClassLoader().getResourceAsStream(fileNameYaml);
}
if (file == null) {
try {
file = Files.newInputStream(Paths.get(fileNameYml));
} catch (IOException ignored) {
}
}
if (file == null && fileNameYaml != null) {
try {
file = Files.newInputStream(Paths.get(fileNameYaml));
} catch (IOException ignored) {
}
}
if (file != null) {
logDeferrer.defer(l -> l.info("Loading configuration from YAML file."));
Object yamlParsed = yaml.load(file);
if (yamlParsed instanceof Map) {
//noinspection unchecked
return (Map<String, Object>) yamlParsed;
} else {
logDeferrer.defer(l -> l.info("Configuration YAML is malformed as it contains an array at the " +
"root level. Skipping."));
}
}
return null;
} catch (Exception e) {
logDeferrer.defer(l ->
l.info("Couldn't successfully process the YAML configuration file. " +
"All your properties may not be correctly loaded."));
return null;
} finally {
if (file != null) {
try {
file.close();
} catch (IOException ignored) {
}
}
}
}
private Properties loadProperties(String fileName) {
InputStream inputStream = null;
try {
inputStream = getClass().getClassLoader().getResourceAsStream(fileName);
if (inputStream == null) {
try {
inputStream = Files.newInputStream(Paths.get(fileName));
} catch (IOException ignored) {
}
}
if (inputStream != null) {
logDeferrer.defer(l -> l.info("Loading configuration from .p
gitextract_kh8ins4r/
├── .github/
│ └── workflows/
│ └── kumuluzee-ci.yml
├── .gitignore
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── bom/
│ └── pom.xml
├── common/
│ ├── pom.xml
│ └── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ ├── common/
│ │ │ │ ├── Component.java
│ │ │ │ ├── ConfigExtension.java
│ │ │ │ ├── Extension.java
│ │ │ │ ├── KumuluzServer.java
│ │ │ │ ├── LogsExtension.java
│ │ │ │ ├── ServletServer.java
│ │ │ │ ├── attributes/
│ │ │ │ │ └── ClasspathAttributes.java
│ │ │ │ ├── config/
│ │ │ │ │ ├── DataSourceConfig.java
│ │ │ │ │ ├── DataSourcePoolConfig.java
│ │ │ │ │ ├── DevConfig.java
│ │ │ │ │ ├── EeConfig.java
│ │ │ │ │ ├── EnvConfig.java
│ │ │ │ │ ├── GzipConfig.java
│ │ │ │ │ ├── MailServiceConfig.java
│ │ │ │ │ ├── MailSessionConfig.java
│ │ │ │ │ ├── ServerConfig.java
│ │ │ │ │ ├── ServerConnectorConfig.java
│ │ │ │ │ └── XaDataSourceConfig.java
│ │ │ │ ├── datasources/
│ │ │ │ │ ├── NonJtaXAConnectionWrapper.java
│ │ │ │ │ ├── NonJtaXADataSourceWrapper.java
│ │ │ │ │ ├── XADataSourceBuilder.java
│ │ │ │ │ └── XADataSourceWrapper.java
│ │ │ │ ├── dependencies/
│ │ │ │ │ ├── EeComponentDef.java
│ │ │ │ │ ├── EeComponentDependencies.java
│ │ │ │ │ ├── EeComponentDependency.java
│ │ │ │ │ ├── EeComponentOptional.java
│ │ │ │ │ ├── EeComponentOptionals.java
│ │ │ │ │ ├── EeComponentType.java
│ │ │ │ │ ├── EeExtensionDef.java
│ │ │ │ │ ├── EeExtensionGroup.java
│ │ │ │ │ └── ServerDef.java
│ │ │ │ ├── exceptions/
│ │ │ │ │ ├── ComponentsException.java
│ │ │ │ │ └── KumuluzServerException.java
│ │ │ │ ├── filters/
│ │ │ │ │ └── PoweredByFilter.java
│ │ │ │ ├── runtime/
│ │ │ │ │ ├── EeRuntime.java
│ │ │ │ │ ├── EeRuntimeComponent.java
│ │ │ │ │ ├── EeRuntimeExtension.java
│ │ │ │ │ └── EeRuntimeInternal.java
│ │ │ │ ├── servlet/
│ │ │ │ │ └── ServletWrapper.java
│ │ │ │ ├── utils/
│ │ │ │ │ ├── ClassUtils.java
│ │ │ │ │ ├── EnvUtils.java
│ │ │ │ │ ├── ResourceUtils.java
│ │ │ │ │ └── StringUtils.java
│ │ │ │ └── wrapper/
│ │ │ │ ├── ComponentWrapper.java
│ │ │ │ ├── EeComponentWrapper.java
│ │ │ │ ├── ExtensionWrapper.java
│ │ │ │ └── KumuluzServerWrapper.java
│ │ │ ├── configuration/
│ │ │ │ ├── ConfigurationDecoder.java
│ │ │ │ ├── ConfigurationListener.java
│ │ │ │ ├── ConfigurationSource.java
│ │ │ │ ├── enums/
│ │ │ │ │ └── ConfigurationValueType.java
│ │ │ │ ├── sources/
│ │ │ │ │ ├── EnvironmentConfigurationSource.java
│ │ │ │ │ ├── FileConfigurationSource.java
│ │ │ │ │ └── SystemPropertyConfigurationSource.java
│ │ │ │ └── utils/
│ │ │ │ ├── ConfigurationDecoderUtils.java
│ │ │ │ ├── ConfigurationDispatcher.java
│ │ │ │ ├── ConfigurationImpl.java
│ │ │ │ ├── ConfigurationInterpolationUtil.java
│ │ │ │ ├── ConfigurationSourceUtils.java
│ │ │ │ └── ConfigurationUtil.java
│ │ │ └── logs/
│ │ │ ├── LogDeferrer.java
│ │ │ └── impl/
│ │ │ ├── JavaUtilConsoleHandler.java
│ │ │ ├── JavaUtilDefaultLogConfigurator.java
│ │ │ └── JavaUtilFormatter.java
│ │ └── resources/
│ │ └── META-INF/
│ │ ├── kumuluzee/
│ │ │ └── versions.properties
│ │ └── services/
│ │ └── com.kumuluz.ee.configuration.ConfigurationSource
│ └── test/
│ └── java/
│ └── com/
│ └── kumuluz/
│ └── ee/
│ └── configuration/
│ └── utils/
│ └── ConfigurationInterpolationUtilTest.java
├── components/
│ ├── bean-validation/
│ │ ├── hibernate-validator/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ ├── main/
│ │ │ │ ├── java/
│ │ │ │ │ └── com/
│ │ │ │ │ └── kumuluz/
│ │ │ │ │ └── ee/
│ │ │ │ │ └── beanvalidation/
│ │ │ │ │ └── BeanValidationComponent.java
│ │ │ │ └── resources/
│ │ │ │ └── META-INF/
│ │ │ │ └── services/
│ │ │ │ └── com.kumuluz.ee.common.Component
│ │ │ └── test/
│ │ │ └── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ └── beanvalidation/
│ │ │ └── test/
│ │ │ ├── HibernateValidatorTest.java
│ │ │ └── beans/
│ │ │ ├── Project.java
│ │ │ └── User.java
│ │ └── pom.xml
│ ├── cdi/
│ │ ├── pom.xml
│ │ └── weld/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ ├── cdi/
│ │ │ │ └── CdiComponent.java
│ │ │ ├── configuration/
│ │ │ │ └── cdi/
│ │ │ │ ├── ConfigBundle.java
│ │ │ │ ├── ConfigValue.java
│ │ │ │ ├── interceptors/
│ │ │ │ │ └── ConfigBundleInterceptor.java
│ │ │ │ └── producers/
│ │ │ │ ├── ConfigurationUtilProducer.java
│ │ │ │ └── EeConfigProducer.java
│ │ │ └── runtime/
│ │ │ └── cdi/
│ │ │ └── producers/
│ │ │ └── EeRuntimeProducer.java
│ │ └── resources/
│ │ └── META-INF/
│ │ ├── beans.xml
│ │ └── services/
│ │ └── com.kumuluz.ee.common.Component
│ ├── el/
│ │ ├── pom.xml
│ │ └── uel/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ └── el/
│ │ │ └── ElComponent.java
│ │ └── resources/
│ │ └── META-INF/
│ │ └── services/
│ │ └── com.kumuluz.ee.common.Component
│ ├── javamail/
│ │ ├── pom.xml
│ │ └── ri/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ └── javamail/
│ │ │ └── ri/
│ │ │ ├── JavaMailComponent.java
│ │ │ ├── MailSessionFactory.java
│ │ │ └── ManagedPasswordAuthenticator.java
│ │ └── resources/
│ │ └── META-INF/
│ │ └── services/
│ │ └── com.kumuluz.ee.common.Component
│ ├── jax-rs/
│ │ ├── jersey/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ ├── com/
│ │ │ │ │ └── kumuluz/
│ │ │ │ │ └── ee/
│ │ │ │ │ └── jaxrs/
│ │ │ │ │ ├── JaxRsComponent.java
│ │ │ │ │ └── Jetty10ConnectorProvider.java
│ │ │ │ └── org/
│ │ │ │ └── glassfish/
│ │ │ │ └── jersey/
│ │ │ │ └── jetty/
│ │ │ │ └── connector/
│ │ │ │ └── Jetty10Connector.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ ├── com.kumuluz.ee.common.Component
│ │ │ └── org.glassfish.jersey.client.spi.ConnectorProvider
│ │ └── pom.xml
│ ├── jax-ws/
│ │ ├── cxf/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ ├── main/
│ │ │ │ ├── java/
│ │ │ │ │ └── com/
│ │ │ │ │ └── kumuluz/
│ │ │ │ │ └── ee/
│ │ │ │ │ └── jaxws/
│ │ │ │ │ └── cxf/
│ │ │ │ │ ├── JaxWsComponent.java
│ │ │ │ │ ├── KumuluzCXFServlet.java
│ │ │ │ │ ├── annotations/
│ │ │ │ │ │ └── WsContext.java
│ │ │ │ │ ├── processor/
│ │ │ │ │ │ ├── AnnotationProcessorUtil.java
│ │ │ │ │ │ ├── JaxWsAnnotationProcessor.java
│ │ │ │ │ │ └── JaxWsAnnotationProcessorUtil.java
│ │ │ │ │ └── ws/
│ │ │ │ │ ├── CXFWebservicePublisher.java
│ │ │ │ │ ├── Endpoint.java
│ │ │ │ │ ├── InjectionHelper.java
│ │ │ │ │ ├── KumuluzWSInvoker.java
│ │ │ │ │ └── KumuluzWebServiceContext.java
│ │ │ │ └── resources/
│ │ │ │ └── META-INF/
│ │ │ │ └── services/
│ │ │ │ ├── com.kumuluz.ee.common.Component
│ │ │ │ └── javax.annotation.processing.Processor
│ │ │ └── test/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jaxws/
│ │ │ │ └── cxf/
│ │ │ │ ├── impl/
│ │ │ │ │ ├── NoWsContextAnnotatedEndpointBean.java
│ │ │ │ │ ├── WebServiceContextBean.java
│ │ │ │ │ ├── WsContextAnnotatedEndpoint.java
│ │ │ │ │ └── WsContextAnnotatedEndpointBean.java
│ │ │ │ ├── processor/
│ │ │ │ │ └── JaxWsAnnotationProcessorUtilTest.java
│ │ │ │ └── ws/
│ │ │ │ └── KumuluzWebServiceContextTest.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── ws/
│ │ │ └── java.lang.Object
│ │ ├── metro/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jaxws/
│ │ │ │ └── metro/
│ │ │ │ └── JaxWsComponent.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── com.kumuluz.ee.common.Component
│ │ └── pom.xml
│ ├── jpa/
│ │ ├── common/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jpa/
│ │ │ │ └── common/
│ │ │ │ ├── PersistenceSettings.java
│ │ │ │ ├── PersistenceUnitHolder.java
│ │ │ │ ├── PersistenceWrapper.java
│ │ │ │ ├── TransactionType.java
│ │ │ │ ├── exceptions/
│ │ │ │ │ └── NoDefaultPersistenceUnit.java
│ │ │ │ ├── injection/
│ │ │ │ │ ├── EntityManagerWrapper.java
│ │ │ │ │ ├── JpaService.java
│ │ │ │ │ ├── NonTxEntityManagerWrapper.java
│ │ │ │ │ ├── PersistenceContextResource.java
│ │ │ │ │ ├── PersistenceContextResourceFactory.java
│ │ │ │ │ ├── PersistenceUnitResource.java
│ │ │ │ │ └── PersistenceUnitResourceFactory.java
│ │ │ │ ├── jta/
│ │ │ │ │ ├── NonTxEntityManagerHolder.java
│ │ │ │ │ ├── NonTxQueryWrapper.java
│ │ │ │ │ ├── NonTxStoredProcedureQueryWrapper.java
│ │ │ │ │ ├── NonTxTypedQueryWrapper.java
│ │ │ │ │ ├── SyncEntityManagerWrapper.java
│ │ │ │ │ ├── TxScopedEntityManager.java
│ │ │ │ │ ├── TxScopedEntityManagerFactory.java
│ │ │ │ │ ├── TxScopedEntityManagerWrapper.java
│ │ │ │ │ └── TxSynchronization.java
│ │ │ │ └── utils/
│ │ │ │ └── PersistenceUtils.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── org.jboss.weld.bootstrap.api.Service
│ │ ├── eclipselink/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jpa/
│ │ │ │ └── eclipselink/
│ │ │ │ ├── EclipseLinkSettings.java
│ │ │ │ ├── JpaComponent.java
│ │ │ │ ├── KumuluzPlatform.java
│ │ │ │ └── KumuluzTransactionController.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── com.kumuluz.ee.common.Component
│ │ ├── hibernate/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jpa/
│ │ │ │ └── hibernate/
│ │ │ │ └── JpaComponent.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── com.kumuluz.ee.common.Component
│ │ └── pom.xml
│ ├── jsf/
│ │ ├── mojarra/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jsf/
│ │ │ │ └── mojarra/
│ │ │ │ └── JsfComponent.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── com.kumuluz.ee.common.Component
│ │ └── pom.xml
│ ├── json-b/
│ │ ├── pom.xml
│ │ └── yasson/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ └── jsonb/
│ │ │ └── yasson/
│ │ │ └── JsonBComponent.java
│ │ └── resources/
│ │ └── META-INF/
│ │ └── services/
│ │ └── com.kumuluz.ee.common.Component
│ ├── json-p/
│ │ ├── jsonp/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jsonp/
│ │ │ │ ├── JsonPComponent.java
│ │ │ │ └── configuration/
│ │ │ │ └── utils/
│ │ │ │ └── JsonConfigurationUtil.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── com.kumuluz.ee.common.Component
│ │ └── pom.xml
│ ├── jsp/
│ │ ├── jetty/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ ├── main/
│ │ │ │ ├── java/
│ │ │ │ │ └── com/
│ │ │ │ │ └── kumuluz/
│ │ │ │ │ └── ee/
│ │ │ │ │ └── jsp/
│ │ │ │ │ └── JspComponent.java
│ │ │ │ └── resources/
│ │ │ │ └── META-INF/
│ │ │ │ └── services/
│ │ │ │ └── com.kumuluz.ee.common.Component
│ │ │ └── test/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jetty/
│ │ │ │ └── jsp/
│ │ │ │ └── test/
│ │ │ │ ├── JspTest.java
│ │ │ │ └── beans/
│ │ │ │ ├── TimeBean.java
│ │ │ │ └── UserBean.java
│ │ │ └── resources/
│ │ │ └── webapp/
│ │ │ └── index.jsp
│ │ └── pom.xml
│ ├── jta/
│ │ ├── common/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jta/
│ │ │ │ └── common/
│ │ │ │ ├── JtaProvider.java
│ │ │ │ ├── JtaTransactionServices.java
│ │ │ │ ├── datasources/
│ │ │ │ │ ├── JtaXAConnectionWrapper.java
│ │ │ │ │ ├── JtaXADataSourceWrapper.java
│ │ │ │ │ └── XAStatementProxy.java
│ │ │ │ ├── exceptions/
│ │ │ │ │ └── CannotRetrieveTxException.java
│ │ │ │ └── utils/
│ │ │ │ └── TxUtils.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── org.jboss.weld.bootstrap.api.Service
│ │ ├── narayana/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── kumuluz/
│ │ │ │ └── ee/
│ │ │ │ └── jta/
│ │ │ │ └── narayana/
│ │ │ │ ├── JtaComponent.java
│ │ │ │ └── NarayanaJtaProvider.java
│ │ │ └── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ ├── com.kumuluz.ee.common.Component
│ │ │ └── com.kumuluz.ee.jta.common.JtaProvider
│ │ └── pom.xml
│ ├── pom.xml
│ └── websocket/
│ ├── jetty/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ └── websocket/
│ │ │ └── jetty/
│ │ │ └── WebSocketComponent.java
│ │ └── resources/
│ │ └── META-INF/
│ │ └── services/
│ │ └── com.kumuluz.ee.common.Component
│ └── pom.xml
├── core/
│ ├── pom.xml
│ └── src/
│ ├── main/
│ │ └── java/
│ │ └── com/
│ │ └── kumuluz/
│ │ └── ee/
│ │ ├── EeApplication.java
│ │ ├── factories/
│ │ │ ├── AgroalDataSourceFactory.java
│ │ │ ├── EeConfigFactory.java
│ │ │ └── JtaXADataSourceFactory.java
│ │ └── loaders/
│ │ ├── ComponentLoader.java
│ │ ├── ConfigExtensionLoader.java
│ │ ├── ExtensionLoader.java
│ │ ├── LogsExtensionLoader.java
│ │ └── ServerLoader.java
│ └── test/
│ └── java/
│ └── com/
│ └── kumuluz/
│ └── ee/
│ └── test/
│ └── ExampleTest.java
├── pom.xml
├── profiles/
│ ├── micro-profile/
│ │ └── pom.xml
│ ├── micro-profile-1.0/
│ │ └── pom.xml
│ ├── micro-profile-1.1/
│ │ └── pom.xml
│ ├── micro-profile-1.2/
│ │ └── pom.xml
│ ├── micro-profile-1.3/
│ │ └── pom.xml
│ ├── micro-profile-1.4/
│ │ └── pom.xml
│ ├── micro-profile-2.0/
│ │ └── pom.xml
│ ├── micro-profile-2.1/
│ │ └── pom.xml
│ ├── micro-profile-2.2/
│ │ └── pom.xml
│ ├── micro-profile-3.0/
│ │ └── pom.xml
│ ├── micro-profile-3.1/
│ │ └── pom.xml
│ ├── micro-profile-3.2/
│ │ └── pom.xml
│ ├── micro-profile-3.3/
│ │ └── pom.xml
│ └── pom.xml
├── servlet/
│ ├── jetty/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── kumuluz/
│ │ │ └── ee/
│ │ │ └── jetty/
│ │ │ ├── JettyAttributes.java
│ │ │ ├── JettyFactory.java
│ │ │ ├── JettyJarClasspathUtil.java
│ │ │ └── JettyServletServer.java
│ │ └── resources/
│ │ └── META-INF/
│ │ └── services/
│ │ └── com.kumuluz.ee.common.KumuluzServer
│ └── pom.xml
├── settings.xml
└── tools/
├── loader/
│ ├── pom.xml
│ └── src/
│ └── main/
│ └── java/
│ └── com/
│ └── kumuluz/
│ └── ee/
│ └── loader/
│ ├── EeBootLoader.java
│ ├── EeClassLoader.java
│ ├── exception/
│ │ └── EeClassLoaderException.java
│ └── jar/
│ ├── FileInfo.java
│ ├── JarEntryInfo.java
│ └── JarFileInfo.java
├── maven-plugin/
│ ├── README.md
│ ├── pom.xml
│ └── src/
│ └── main/
│ ├── java/
│ │ └── com/
│ │ └── kumuluz/
│ │ └── ee/
│ │ └── maven/
│ │ └── plugin/
│ │ ├── AbstractCopyDependenciesMojo.java
│ │ ├── AbstractPackageMojo.java
│ │ ├── CopyDependenciesMojo.java
│ │ ├── MojoConstants.java
│ │ ├── RepackageMojo.java
│ │ ├── RunExplodedMojo.java
│ │ └── RunJarMojo.java
│ └── resources/
│ └── META-INF/
│ └── kumuluzee/
│ └── plugin-versions.properties
└── pom.xml
SYMBOL INDEX (1360 symbols across 163 files)
FILE: common/src/main/java/com/kumuluz/ee/common/Component.java
type Component (line 30) | public interface Component {
method init (line 32) | void init(KumuluzServerWrapper server, EeConfig eeConfig);
method load (line 34) | void load();
FILE: common/src/main/java/com/kumuluz/ee/common/ConfigExtension.java
type ConfigExtension (line 32) | public interface ConfigExtension extends Extension {
method getConfigurationSource (line 37) | @Deprecated
method getConfigurationSources (line 42) | default List<ConfigurationSource> getConfigurationSources() {
FILE: common/src/main/java/com/kumuluz/ee/common/Extension.java
type Extension (line 33) | public interface Extension {
method load (line 35) | void load();
method init (line 37) | void init(KumuluzServerWrapper server, EeConfig eeConfig);
method isEnabled (line 39) | default boolean isEnabled() {
method scanLibraries (line 43) | default List<String> scanLibraries() {
FILE: common/src/main/java/com/kumuluz/ee/common/KumuluzServer.java
type KumuluzServer (line 34) | public interface KumuluzServer {
method initServer (line 36) | void initServer();
method startServer (line 38) | void startServer();
method stopServer (line 40) | void stopServer();
method setServerConfig (line 42) | void setServerConfig(ServerConfig serverConfig);
method getServerConfig (line 44) | ServerConfig getServerConfig();
FILE: common/src/main/java/com/kumuluz/ee/common/LogsExtension.java
type LogsExtension (line 31) | public interface LogsExtension extends Extension {
method getJavaUtilLogManagerClass (line 33) | Optional<Class<? extends LogManager>> getJavaUtilLogManagerClass();
method getJavaUtilLogHandler (line 35) | Optional<Handler> getJavaUtilLogHandler();
FILE: common/src/main/java/com/kumuluz/ee/common/ServletServer.java
type ServletServer (line 36) | public interface ServletServer extends KumuluzServer {
method registerServlet (line 38) | void registerServlet(Class<? extends Servlet> servletClass, String map...
method registerServlet (line 40) | void registerServlet(Class<? extends Servlet> servletClass, String map...
method registerServlet (line 42) | void registerServlet(Class<? extends Servlet> servletClass, String map...
method registerListener (line 44) | void registerListener(EventListener listener);
method registerFilter (line 46) | void registerFilter(Class<? extends Filter> filterClass, String pathSp...
method registerFilter (line 48) | void registerFilter(Class<? extends Filter> filterClass, String pathSp...
method registerFilter (line 50) | void registerFilter(Class<? extends Filter> filterClass, String pathSp...
method registerFilter (line 52) | void registerFilter(Class<? extends Filter> filterClass, String pathSp...
method registerResource (line 54) | void registerResource(Object o, String jndiName);
method registerDataSource (line 56) | void registerDataSource(DataSource ds, String jndiName);
method registerTransactionManager (line 58) | void registerTransactionManager(UserTransaction userTransaction);
method initWebContext (line 60) | void initWebContext(List<String> scanLibraries);
method getRegisteredServlets (line 62) | List<ServletWrapper> getRegisteredServlets();
FILE: common/src/main/java/com/kumuluz/ee/common/attributes/ClasspathAttributes.java
class ClasspathAttributes (line 27) | public class ClasspathAttributes {
FILE: common/src/main/java/com/kumuluz/ee/common/config/DataSourceConfig.java
class DataSourceConfig (line 31) | public class DataSourceConfig {
class Builder (line 33) | public static class Builder {
method jndiName (line 46) | public Builder jndiName(String jndiName) {
method driverClass (line 51) | public Builder driverClass(String driverClass) {
method dataSourceClass (line 56) | public Builder dataSourceClass(String dataSourceClass) {
method connectionUrl (line 61) | public Builder connectionUrl(String connectionUrl) {
method username (line 66) | public Builder username(String username) {
method password (line 71) | public Builder password(String password) {
method pool (line 76) | public Builder pool(DataSourcePoolConfig.Builder pool) {
method prop (line 81) | public Builder prop(String key, String value) {
method build (line 86) | public DataSourceConfig build() {
method DataSourceConfig (line 115) | private DataSourceConfig() {
method getJndiName (line 118) | public String getJndiName() {
method getDriverClass (line 122) | public String getDriverClass() {
method getDataSourceClass (line 126) | public String getDataSourceClass() {
method getConnectionUrl (line 130) | public String getConnectionUrl() {
method getUsername (line 134) | public String getUsername() {
method getPassword (line 138) | public String getPassword() {
method getPool (line 142) | public DataSourcePoolConfig getPool() {
method getProps (line 146) | public Map<String, String> getProps() {
FILE: common/src/main/java/com/kumuluz/ee/common/config/DataSourcePoolConfig.java
class DataSourcePoolConfig (line 27) | public class DataSourcePoolConfig {
class Builder (line 29) | public static class Builder {
method autoCommit (line 69) | public Builder autoCommit(Boolean autoCommit) {
method flushOnClose (line 74) | public Builder flushOnClose(Boolean flushOnClose) {
method connectionTimeout (line 79) | public Builder connectionTimeout(Long connectionTimeout) {
method idleTimeout (line 84) | public Builder idleTimeout(Long idleTimeout) {
method maxLifetime (line 89) | public Builder maxLifetime(Long maxLifetime) {
method minIdle (line 94) | @Deprecated
method initialSize (line 100) | public Builder initialSize(Integer initialSize) {
method minSize (line 105) | public Builder minSize(Integer minSize) {
method maxSize (line 110) | public Builder maxSize(Integer maxSize) {
method name (line 115) | @Deprecated
method initializationFailTimeout (line 121) | @Deprecated
method isolateInternalQueries (line 127) | @Deprecated
method allowPoolSuspension (line 133) | @Deprecated
method readOnly (line 139) | @Deprecated
method registerMbeans (line 145) | @Deprecated
method connectionInitSql (line 151) | public Builder connectionInitSql(String connectionInitSql) {
method connectionValidSql (line 156) | public Builder connectionValidSql(String connectionValidSql) {
method transactionIsolation (line 161) | public Builder transactionIsolation(String transactionIsolation) {
method validationTimeout (line 166) | public Builder validationTimeout(Long validationTimeout) {
method leakDetectionThreshold (line 171) | public Builder leakDetectionThreshold(Long leakDetectionThreshold) {
method idleValidationTimeout (line 176) | public Builder idleValidationTimeout (Long idleValidationTimeout ) {
method build (line 181) | public DataSourcePoolConfig build() {
method DataSourcePoolConfig (line 248) | private DataSourcePoolConfig() {
method getFlushOnClose (line 251) | public Boolean getFlushOnClose() {
method getAutoCommit (line 255) | public Boolean getAutoCommit() {
method getConnectionTimeout (line 259) | public Long getConnectionTimeout() {
method getIdleTimeout (line 263) | public Long getIdleTimeout() {
method getMaxLifetime (line 267) | public Long getMaxLifetime() {
method getMinIdle (line 271) | @Deprecated
method getInitialSize (line 276) | public Integer getInitialSize() {
method getMinSize (line 280) | public Integer getMinSize() {
method getMaxSize (line 284) | public Integer getMaxSize() {
method getName (line 288) | @Deprecated
method getInitializationFailTimeout (line 293) | @Deprecated
method getIsolateInternalQueries (line 298) | @Deprecated
method getAllowPoolSuspension (line 303) | @Deprecated
method getReadOnly (line 308) | @Deprecated
method getRegisterMbeans (line 313) | @Deprecated
method getConnectionInitSql (line 318) | public String getConnectionInitSql() {
method getConnectionValidSql (line 322) | public String getConnectionValidSql() {
method getTransactionIsolation (line 326) | public String getTransactionIsolation() {
method getValidationTimeout (line 330) | public Long getValidationTimeout() {
method getLeakDetectionThreshold (line 334) | public Long getLeakDetectionThreshold() {
method getIdleValidationTimeout (line 338) | public Long getIdleValidationTimeout() {
FILE: common/src/main/java/com/kumuluz/ee/common/config/DevConfig.java
class DevConfig (line 29) | public class DevConfig {
class Builder (line 31) | public static class Builder {
method scanLibraries (line 37) | public Builder scanLibraries(List<String> scanLibraries) {
method webappDir (line 42) | public Builder webappDir(String webappDir) {
method runningTests (line 47) | public Builder runningTests(Boolean runningTests) {
method build (line 52) | public DevConfig build() {
method DevConfig (line 67) | private DevConfig() {
method getWebappDir (line 70) | public String getWebappDir() {
method getScanLibraries (line 74) | public List<String> getScanLibraries() {
method getRunningTests (line 78) | public Boolean getRunningTests() {
FILE: common/src/main/java/com/kumuluz/ee/common/config/EeConfig.java
class EeConfig (line 32) | public class EeConfig {
class Builder (line 34) | public static class Builder {
method name (line 47) | public Builder name(String name) {
method version (line 52) | public Builder version(String version) {
method debug (line 57) | public Builder debug(Boolean debug) {
method env (line 62) | public Builder env(EnvConfig.Builder env) {
method dev (line 67) | public Builder dev(DevConfig.Builder dev) {
method server (line 72) | public Builder server(ServerConfig.Builder server) {
method datasource (line 77) | public Builder datasource(DataSourceConfig.Builder datasource) {
method xaDatasource (line 82) | public Builder xaDatasource(XaDataSourceConfig.Builder xaDatasource) {
method mailSession (line 87) | public Builder mailSession(MailSessionConfig.Builder mailSession) {
method build (line 92) | public EeConfig build() {
method EeConfig (line 131) | private EeConfig() {
method initialize (line 134) | public static void initialize(EeConfig eeConfig) {
method getInstance (line 143) | public static EeConfig getInstance() {
method getName (line 152) | public String getName() {
method getVersion (line 156) | public String getVersion() {
method getDebug (line 160) | public Boolean getDebug() {
method getEnv (line 164) | public EnvConfig getEnv() {
method getDev (line 168) | public DevConfig getDev() {
method getServer (line 172) | public ServerConfig getServer() {
method getDatasources (line 176) | public List<DataSourceConfig> getDatasources() {
method getXaDatasources (line 180) | public List<XaDataSourceConfig> getXaDatasources() {
method getMailSessions (line 184) | public List<MailSessionConfig> getMailSessions() {
FILE: common/src/main/java/com/kumuluz/ee/common/config/EnvConfig.java
class EnvConfig (line 27) | public class EnvConfig {
class Builder (line 29) | public static class Builder {
method name (line 33) | public Builder name(String name) {
method build (line 38) | public EnvConfig build() {
method EnvConfig (line 49) | private EnvConfig() {
method getName (line 52) | public String getName() {
FILE: common/src/main/java/com/kumuluz/ee/common/config/GzipConfig.java
class GzipConfig (line 25) | public class GzipConfig {
class Builder (line 27) | public static class Builder {
method enabled (line 38) | public Builder enabled(Boolean enabled) {
method minGzipSize (line 43) | public Builder minGzipSize(Integer minGzipSize) {
method includedMethods (line 48) | public Builder includedMethods(List<String> includedMethods) {
method includedMimeTypes (line 53) | public Builder includedMimeTypes(List<String> includedMimeTypes) {
method excludedMimeTypes (line 58) | public Builder excludedMimeTypes(List<String> excludedMimeTypes) {
method excludedAgentPatterns (line 63) | public Builder excludedAgentPatterns(List<String> excludedAgentPatte...
method excludedPaths (line 68) | public Builder excludedPaths(List<String> excludedPaths) {
method includedPaths (line 73) | public Builder includedPaths(List<String> includedPaths) {
method build (line 78) | public GzipConfig build() {
method GzipConfig (line 103) | private GzipConfig() {
method getEnabled (line 106) | public Boolean getEnabled() {
method setEnabled (line 110) | public void setEnabled(Boolean enabled) {
method getMinGzipSize (line 114) | public Integer getMinGzipSize() {
method setMinGzipSize (line 118) | public void setMinGzipSize(Integer minGzipSize) {
method getIncludedMethods (line 122) | public List<String> getIncludedMethods() {
method setIncludedMethods (line 126) | public void setIncludedMethods(List<String> includedMethods) {
method getIncludedMimeTypes (line 130) | public List<String> getIncludedMimeTypes() {
method setIncludedMimeTypes (line 134) | public void setIncludedMimeTypes(List<String> includedMimeTypes) {
method getExcludedMimeTypes (line 138) | public List<String> getExcludedMimeTypes() {
method setExcludedMimeTypes (line 142) | public void setExcludedMimeTypes(List<String> excludedMimeTypes) {
method getExcludedPaths (line 146) | public List<String> getExcludedPaths() {
method setExcludedPaths (line 150) | public void setExcludedPaths(List<String> excludedPaths) {
method getIncludedPaths (line 154) | public List<String> getIncludedPaths() {
method setIncludedPaths (line 158) | public void setIncludedPaths(List<String> includedPaths) {
FILE: common/src/main/java/com/kumuluz/ee/common/config/MailServiceConfig.java
class MailServiceConfig (line 3) | public class MailServiceConfig {
class Builder (line 5) | public static class Builder {
method protocol (line 16) | public Builder protocol(String protocol) {
method host (line 21) | public Builder host(String host) {
method port (line 26) | public Builder port(Integer port) {
method starttls (line 31) | public Builder starttls(Boolean starttls) {
method username (line 36) | public Builder username(String username) {
method password (line 41) | public Builder password(String password) {
method connectionTimeout (line 46) | public Builder connectionTimeout(Long connectionTimeout) {
method timeout (line 51) | public Builder timeout(Long timeout) {
method build (line 56) | public MailServiceConfig build() {
method MailServiceConfig (line 81) | private MailServiceConfig(){
method getProtocol (line 84) | public String getProtocol() {
method getHost (line 88) | public String getHost() {
method getPort (line 92) | public Integer getPort() {
method getStarttls (line 96) | public Boolean getStarttls() {
method getUsername (line 100) | public String getUsername() {
method getPassword (line 104) | public String getPassword() {
method getConnectionTimeout (line 108) | public Long getConnectionTimeout() {
method getTimeout (line 112) | public Long getTimeout() {
FILE: common/src/main/java/com/kumuluz/ee/common/config/MailSessionConfig.java
class MailSessionConfig (line 7) | public class MailSessionConfig {
class Builder (line 9) | public static class Builder {
method jndiName (line 19) | public Builder jndiName(String jndiName) {
method debug (line 24) | public Builder debug(Boolean debug) {
method transport (line 29) | public Builder transport(MailServiceConfig.Builder transport) {
method store (line 34) | public Builder store(MailServiceConfig.Builder store) {
method prop (line 39) | public Builder prop(String key, String value) {
method build (line 44) | public MailSessionConfig build() {
method MailSessionConfig (line 67) | private MailSessionConfig() {
method getJndiName (line 71) | public String getJndiName() {
method getDebug (line 75) | public Boolean getDebug() {
method getTransport (line 79) | public MailServiceConfig getTransport() {
method getStore (line 83) | public MailServiceConfig getStore() {
method getProps (line 87) | public Map<String, String> getProps() {
FILE: common/src/main/java/com/kumuluz/ee/common/config/ServerConfig.java
class ServerConfig (line 27) | public class ServerConfig {
class Builder (line 29) | public static class Builder {
method baseUrl (line 46) | public Builder baseUrl(String baseUrl) {
method contextPath (line 51) | public Builder contextPath(String contextPath) {
method dirBrowsing (line 56) | public Builder dirBrowsing(Boolean dirBrowsing) {
method etags (line 61) | public Builder etags(Boolean etags) {
method minThreads (line 66) | public Builder minThreads(Integer minThreads) {
method maxThreads (line 71) | public Builder maxThreads(Integer maxThreads) {
method forceHttps (line 76) | public Builder forceHttps(Boolean forceHttps) {
method http (line 81) | public Builder http(ServerConnectorConfig.Builder http) {
method https (line 86) | public Builder https(ServerConnectorConfig.Builder https) {
method gzip (line 91) | public Builder gzip(GzipConfig.Builder gzip) {
method showServerInfo (line 96) | public Builder showServerInfo(Boolean showServerInfo) {
method forwardStartupException (line 101) | public Builder forwardStartupException(Boolean forwardStartupExcepti...
method build (line 106) | public ServerConfig build() {
method ServerConfig (line 143) | private ServerConfig() {
method getBaseUrl (line 146) | public String getBaseUrl() {
method getContextPath (line 150) | public String getContextPath() {
method getDirBrowsing (line 154) | public Boolean getDirBrowsing() {
method getEtags (line 158) | public Boolean getEtags() {
method getMinThreads (line 162) | public Integer getMinThreads() {
method getMaxThreads (line 166) | public Integer getMaxThreads() {
method getForceHttps (line 170) | public Boolean getForceHttps() {
method getShowServerInfo (line 174) | public Boolean getShowServerInfo(){
method getForwardStartupException (line 178) | public Boolean getForwardStartupException() {
method getHttp (line 182) | public ServerConnectorConfig getHttp() {
method getHttps (line 186) | public ServerConnectorConfig getHttps() {
method getGzip (line 190) | public GzipConfig getGzip() {
FILE: common/src/main/java/com/kumuluz/ee/common/config/ServerConnectorConfig.java
class ServerConnectorConfig (line 30) | public class ServerConnectorConfig {
class Builder (line 35) | public static class Builder {
method port (line 53) | public Builder port(Integer port) {
method address (line 58) | public Builder address(String address) {
method enabled (line 63) | public Builder enabled(Boolean enabled) {
method http2 (line 68) | public Builder http2(Boolean http2) {
method proxyForwarding (line 73) | public Builder proxyForwarding(Boolean proxyForwarding) {
method requestHeaderSize (line 78) | public Builder requestHeaderSize(Integer requestHeaderSize) {
method responseHeaderSize (line 83) | public Builder responseHeaderSize(Integer responseHeaderSize) {
method idleTimeout (line 88) | public Builder idleTimeout(Integer idleTimeout) {
method keystorePath (line 93) | public Builder keystorePath(String keystorePath) {
method keystorePassword (line 98) | public Builder keystorePassword(String keystorePassword) {
method keyAlias (line 103) | public Builder keyAlias(String keyAlias) {
method keyPassword (line 108) | public Builder keyPassword(String keyPassword) {
method sslProtocols (line 113) | public Builder sslProtocols(List<String> sslProtocols) {
method sslCiphers (line 118) | public Builder sslCiphers(List<String> sslCiphers) {
method build (line 123) | public ServerConnectorConfig build() {
method ServerConnectorConfig (line 161) | private ServerConnectorConfig() {
method getPort (line 164) | public Integer getPort() {
method getAddress (line 168) | public String getAddress() {
method getEnabled (line 172) | public Boolean getEnabled() {
method getHttp2 (line 176) | public Boolean getHttp2() {
method getProxyForwarding (line 180) | public Boolean getProxyForwarding() {
method getRequestHeaderSize (line 184) | public Integer getRequestHeaderSize() {
method getResponseHeaderSize (line 188) | public Integer getResponseHeaderSize() {
method getIdleTimeout (line 192) | public Integer getIdleTimeout() {
method getKeystorePath (line 196) | public String getKeystorePath() {
method getKeystorePassword (line 200) | public String getKeystorePassword() {
method getKeyAlias (line 204) | public String getKeyAlias() {
method getKeyPassword (line 208) | public String getKeyPassword() {
method getSslProtocols (line 212) | public List<String> getSslProtocols() {
method getSslCiphers (line 216) | public List<String> getSslCiphers() {
FILE: common/src/main/java/com/kumuluz/ee/common/config/XaDataSourceConfig.java
class XaDataSourceConfig (line 31) | public class XaDataSourceConfig {
class Builder (line 33) | public static class Builder {
method jndiName (line 44) | public Builder jndiName(String jndiName) {
method xaDatasourceClass (line 49) | public Builder xaDatasourceClass(String xaDatasourceClass) {
method username (line 54) | public Builder username(String username) {
method password (line 59) | public Builder password(String password) {
method pool (line 64) | public Builder pool(DataSourcePoolConfig.Builder pool) {
method prop (line 69) | public Builder prop(String key, String value) {
method build (line 74) | public XaDataSourceConfig build() {
method XaDataSourceConfig (line 99) | private XaDataSourceConfig() {
method getJndiName (line 102) | public String getJndiName() {
method getXaDatasourceClass (line 106) | public String getXaDatasourceClass() {
method getUsername (line 110) | public String getUsername() {
method getPassword (line 114) | public String getPassword() {
method getPool (line 118) | public DataSourcePoolConfig getPool() {
method getProps (line 122) | public Map<String, String> getProps() {
FILE: common/src/main/java/com/kumuluz/ee/common/datasources/NonJtaXAConnectionWrapper.java
class NonJtaXAConnectionWrapper (line 34) | @Deprecated
method NonJtaXAConnectionWrapper (line 41) | public NonJtaXAConnectionWrapper(XAConnection xaConnection) {
method createStatement (line 45) | @Override
method prepareStatement (line 53) | @Override
method prepareCall (line 61) | @Override
method nativeSQL (line 69) | @Override
method setAutoCommit (line 77) | @Override
method getAutoCommit (line 85) | @Override
method commit (line 93) | @Override
method rollback (line 101) | @Override
method close (line 109) | @Override
method isClosed (line 123) | @Override
method getMetaData (line 129) | @Override
method setReadOnly (line 137) | @Override
method isReadOnly (line 145) | @Override
method setCatalog (line 153) | @Override
method getCatalog (line 161) | @Override
method setTransactionIsolation (line 169) | @Override
method getTransactionIsolation (line 177) | @Override
method getWarnings (line 185) | @Override
method clearWarnings (line 193) | @Override
method createStatement (line 201) | @Override
method prepareStatement (line 209) | @Override
method prepareCall (line 217) | @Override
method getTypeMap (line 225) | @Override
method setTypeMap (line 233) | @Override
method setHoldability (line 241) | @Override
method getHoldability (line 249) | @Override
method setSavepoint (line 257) | @Override
method setSavepoint (line 265) | @Override
method rollback (line 273) | @Override
method releaseSavepoint (line 281) | @Override
method createStatement (line 289) | @Override
method prepareStatement (line 297) | @Override
method prepareCall (line 305) | @Override
method prepareStatement (line 313) | @Override
method prepareStatement (line 321) | @Override
method prepareStatement (line 329) | @Override
method createClob (line 337) | @Override
method createBlob (line 345) | @Override
method createNClob (line 353) | @Override
method createSQLXML (line 361) | @Override
method isValid (line 369) | @Override
method setClientInfo (line 377) | @Override
method setClientInfo (line 389) | @Override
method getClientInfo (line 401) | @Override
method getClientInfo (line 409) | @Override
method createArrayOf (line 417) | @Override
method createStruct (line 425) | @Override
method setSchema (line 433) | @Override
method getSchema (line 441) | @Override
method abort (line 449) | @Override
method setNetworkTimeout (line 457) | @Override
method getNetworkTimeout (line 465) | @Override
method unwrap (line 473) | @Override
method isWrapperFor (line 481) | @Override
method checkIfValid (line 489) | private void checkIfValid() throws SQLException {
FILE: common/src/main/java/com/kumuluz/ee/common/datasources/NonJtaXADataSourceWrapper.java
class NonJtaXADataSourceWrapper (line 37) | @Deprecated
method NonJtaXADataSourceWrapper (line 42) | public NonJtaXADataSourceWrapper(XADataSource xaDataSource) {
method getConnection (line 46) | @Override
method getConnection (line 56) | @Override
method unwrap (line 66) | @Override
method isWrapperFor (line 80) | @Override
method getLogWriter (line 94) | @Override
method setLogWriter (line 102) | @Override
method setLoginTimeout (line 110) | @Override
method getLoginTimeout (line 118) | @Override
method getParentLogger (line 126) | @Override
method checkIfValid (line 134) | protected void checkIfValid() {
FILE: common/src/main/java/com/kumuluz/ee/common/datasources/XADataSourceBuilder.java
class XADataSourceBuilder (line 34) | @Deprecated
method XADataSourceBuilder (line 39) | public XADataSourceBuilder(XaDataSourceConfig xaDataSourceConfig) {
method constructXaDataSource (line 43) | public XADataSource constructXaDataSource() {
method createXaDataSourceObject (line 65) | private XADataSource createXaDataSourceObject() {
method setProperty (line 78) | private void setProperty(Object object, String name, String value) {
FILE: common/src/main/java/com/kumuluz/ee/common/datasources/XADataSourceWrapper.java
type XADataSourceWrapper (line 29) | @Deprecated
FILE: common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentType.java
type EeComponentType (line 27) | public enum EeComponentType {
method EeComponentType (line 63) | EeComponentType(String name) {
method getName (line 67) | public String getName() {
FILE: common/src/main/java/com/kumuluz/ee/common/dependencies/EeExtensionGroup.java
class EeExtensionGroup (line 3) | public class EeExtensionGroup {
FILE: common/src/main/java/com/kumuluz/ee/common/exceptions/ComponentsException.java
class ComponentsException (line 27) | public class ComponentsException extends RuntimeException {
method ComponentsException (line 29) | public ComponentsException(String msg) {
method ComponentsException (line 34) | public ComponentsException(String msg, Throwable cause) {
FILE: common/src/main/java/com/kumuluz/ee/common/exceptions/KumuluzServerException.java
class KumuluzServerException (line 27) | public class KumuluzServerException extends RuntimeException {
method KumuluzServerException (line 29) | public KumuluzServerException(String msg) {
method KumuluzServerException (line 34) | public KumuluzServerException(String msg, Throwable cause) {
FILE: common/src/main/java/com/kumuluz/ee/common/filters/PoweredByFilter.java
class PoweredByFilter (line 27) | public class PoweredByFilter implements Filter {
method init (line 31) | @Override
method doFilter (line 36) | @Override
method destroy (line 46) | @Override
FILE: common/src/main/java/com/kumuluz/ee/common/runtime/EeRuntime.java
class EeRuntime (line 29) | public class EeRuntime {
method EeRuntime (line 35) | protected EeRuntime() {
method EeRuntime (line 38) | private EeRuntime(EeRuntimeInternal internalRuntime) {
method initialize (line 42) | public static void initialize(EeRuntimeInternal runtimeInternal) {
method getInstance (line 51) | public static EeRuntime getInstance() {
method getInstanceId (line 60) | public String getInstanceId() {
method getVersion (line 64) | public String getVersion() {
method getEeComponents (line 68) | public List<EeRuntimeComponent> getEeComponents() {
method getEeExtensions (line 72) | public List<EeRuntimeExtension> getEeExtensions() {
FILE: common/src/main/java/com/kumuluz/ee/common/runtime/EeRuntimeComponent.java
class EeRuntimeComponent (line 29) | public class EeRuntimeComponent {
method EeRuntimeComponent (line 34) | public EeRuntimeComponent(EeComponentType type, String implementationN...
method getType (line 39) | public EeComponentType getType() {
method getImplementationName (line 43) | public String getImplementationName() {
FILE: common/src/main/java/com/kumuluz/ee/common/runtime/EeRuntimeExtension.java
class EeRuntimeExtension (line 27) | public class EeRuntimeExtension {
method EeRuntimeExtension (line 32) | public EeRuntimeExtension(String group, String implementationName) {
method getGroup (line 37) | public String getGroup() {
method getImplementationName (line 41) | public String getImplementationName() {
FILE: common/src/main/java/com/kumuluz/ee/common/runtime/EeRuntimeInternal.java
class EeRuntimeInternal (line 32) | public class EeRuntimeInternal {
method getInstanceId (line 39) | public String getInstanceId() {
method setInstanceId (line 43) | public void setInstanceId(String instanceId) {
method getVersion (line 47) | public String getVersion() {
method setVersion (line 51) | public void setVersion(String version) {
method getEeComponents (line 55) | public List<EeRuntimeComponent> getEeComponents() {
method setEeComponents (line 59) | public void setEeComponents(List<EeRuntimeComponent> eeComponents) {
method getEeExtensions (line 63) | public List<EeRuntimeExtension> getEeExtensions() {
method setEeExtensions (line 67) | public void setEeExtensions(List<EeRuntimeExtension> eeExtensions) {
FILE: common/src/main/java/com/kumuluz/ee/common/servlet/ServletWrapper.java
class ServletWrapper (line 27) | public class ServletWrapper {
method ServletWrapper (line 32) | public ServletWrapper(String name, String contextPath) {
method getName (line 37) | public String getName() {
method getContextPath (line 41) | public String getContextPath() {
FILE: common/src/main/java/com/kumuluz/ee/common/utils/ClassUtils.java
class ClassUtils (line 27) | public class ClassUtils {
method isPresent (line 29) | public static boolean isPresent(String className) {
method loadClass (line 34) | public static Class<?> loadClass(String className) {
FILE: common/src/main/java/com/kumuluz/ee/common/utils/EnvUtils.java
class EnvUtils (line 32) | public class EnvUtils {
method getEnv (line 34) | public static void getEnv(String var, Consumer<String> consumer) {
method getEnvAsInteger (line 41) | public static void getEnvAsInteger(String var, Consumer<Integer> consu...
FILE: common/src/main/java/com/kumuluz/ee/common/utils/ResourceUtils.java
class ResourceUtils (line 38) | public class ResourceUtils {
method getProjectWebResources (line 40) | public static String getProjectWebResources() {
method isRunningInJar (line 102) | public static boolean isRunningInJar() {
method isRunningTests (line 110) | public static boolean isRunningTests() {
FILE: common/src/main/java/com/kumuluz/ee/common/utils/StringUtils.java
class StringUtils (line 31) | public class StringUtils {
method camelCaseToHyphenCase (line 39) | public static String camelCaseToHyphenCase(String s) {
method hyphenCaseToCamelCase (line 61) | public static String hyphenCaseToCamelCase(String s) {
method isNullOrEmpty (line 85) | public static boolean isNullOrEmpty(String s) {
FILE: common/src/main/java/com/kumuluz/ee/common/wrapper/ComponentWrapper.java
class ComponentWrapper (line 31) | public class ComponentWrapper {
method ComponentWrapper (line 38) | public ComponentWrapper(Component component, String name,
method getComponent (line 47) | public Component getComponent() {
method setComponent (line 51) | public void setComponent(Component component) {
method getDependencies (line 56) | public EeComponentDependency[] getDependencies() {
method setDependencies (line 60) | public void setDependencies(EeComponentDependency[] dependencies) {
method getOptionalDependencies (line 64) | public EeComponentOptional[] getOptionalDependencies() {
method setOptionalDependencies (line 68) | public void setOptionalDependencies(EeComponentOptional[] optionalDepe...
method getName (line 72) | public String getName() {
method setName (line 76) | public void setName(String name) {
FILE: common/src/main/java/com/kumuluz/ee/common/wrapper/EeComponentWrapper.java
class EeComponentWrapper (line 34) | public class EeComponentWrapper extends ComponentWrapper {
method EeComponentWrapper (line 38) | public EeComponentWrapper(Component component, String name,
method EeComponentWrapper (line 45) | public EeComponentWrapper(Component component, String name, EeComponen...
method getType (line 53) | public EeComponentType getType() {
method setType (line 57) | public void setType(EeComponentType type) {
FILE: common/src/main/java/com/kumuluz/ee/common/wrapper/ExtensionWrapper.java
class ExtensionWrapper (line 7) | public class ExtensionWrapper<T extends Extension> {
method ExtensionWrapper (line 15) | public ExtensionWrapper(T extension, String name, String group, EeComp...
method getExtension (line 23) | public T getExtension() {
method setExtension (line 27) | public void setExtension(T extension) {
method getName (line 31) | public String getName() {
method setName (line 35) | public void setName(String name) {
method getGroup (line 39) | public String getGroup() {
method setGroup (line 43) | public void setGroup(String group) {
method getDependencies (line 47) | public EeComponentDependency[] getDependencies() {
method setDependencies (line 51) | public void setDependencies(EeComponentDependency[] dependencies) {
method getOptionalDependencies (line 55) | public EeComponentOptional[] getOptionalDependencies() {
method setOptionalDependencies (line 59) | public void setOptionalDependencies(EeComponentOptional[] optionalDepe...
FILE: common/src/main/java/com/kumuluz/ee/common/wrapper/KumuluzServerWrapper.java
class KumuluzServerWrapper (line 32) | public class KumuluzServerWrapper {
method KumuluzServerWrapper (line 38) | public KumuluzServerWrapper(KumuluzServer server, String name, EeCompo...
method getServer (line 45) | public KumuluzServer getServer() {
method setServer (line 49) | public void setServer(KumuluzServer server) {
method getName (line 53) | public String getName() {
method setName (line 57) | public void setName(String name) {
method getProvidedEeComponents (line 61) | public EeComponentType[] getProvidedEeComponents() {
method setProvidedEeComponents (line 65) | public void setProvidedEeComponents(EeComponentType[] providedEeCompon...
FILE: common/src/main/java/com/kumuluz/ee/configuration/ConfigurationDecoder.java
type ConfigurationDecoder (line 30) | public interface ConfigurationDecoder {
method shouldDecode (line 38) | boolean shouldDecode(String key);
method decode (line 47) | String decode(String key, String value);
FILE: common/src/main/java/com/kumuluz/ee/configuration/ConfigurationListener.java
type ConfigurationListener (line 27) | @FunctionalInterface
method onChange (line 30) | void onChange(String key, String value);
FILE: common/src/main/java/com/kumuluz/ee/configuration/ConfigurationSource.java
type ConfigurationSource (line 32) | public interface ConfigurationSource {
method init (line 36) | void init(ConfigurationDispatcher configurationDispatcher);
method get (line 38) | Optional<String> get(String key);
method getBoolean (line 40) | default Optional<Boolean> getBoolean(String key) {
method getInteger (line 47) | default Optional<Integer> getInteger(String key) {
method getLong (line 63) | default Optional<Long> getLong(String key) {
method getDouble (line 79) | default Optional<Double> getDouble(String key) {
method getFloat (line 95) | default Optional<Float> getFloat(String key) {
method getListSize (line 112) | Optional<Integer> getListSize(String key);
method getMapKeys (line 114) | Optional<List<String>> getMapKeys(String key);
method watch (line 116) | void watch(String key);
method set (line 118) | void set(String key, String value);
method set (line 120) | void set(String key, Boolean value);
method set (line 122) | void set(String key, Integer value);
method set (line 124) | void set(String key, Double value);
method set (line 126) | void set(String key, Float value);
method getOrdinal (line 128) | default Integer getOrdinal() {
method postInit (line 132) | default void postInit() {}
method initProfile (line 134) | default void initProfile(String profileName) {}
FILE: common/src/main/java/com/kumuluz/ee/configuration/enums/ConfigurationValueType.java
type ConfigurationValueType (line 27) | public enum ConfigurationValueType {
FILE: common/src/main/java/com/kumuluz/ee/configuration/sources/EnvironmentConfigurationSource.java
class EnvironmentConfigurationSource (line 32) | public class EnvironmentConfigurationSource implements ConfigurationSour...
method init (line 34) | @Override
method get (line 38) | @Override
method getListSize (line 54) | @Override
method getMapKeys (line 119) | @Override
method watch (line 188) | @Override
method set (line 192) | @Override
method set (line 196) | @Override
method set (line 200) | @Override
method set (line 204) | @Override
method set (line 208) | @Override
method getOrdinal (line 212) | @Override
method getPossibleEnvNames (line 217) | private List<String> getPossibleEnvNames(String key) {
method replaceNonAlphaNum (line 234) | private String replaceNonAlphaNum(String s) {
method parseKeyNameForEnvironmentVariables (line 238) | private String parseKeyNameForEnvironmentVariables(String key) {
method parseKeyNameForEnvironmentVariablesLegacy (line 245) | private String parseKeyNameForEnvironmentVariablesLegacy(String key) {
FILE: common/src/main/java/com/kumuluz/ee/configuration/sources/FileConfigurationSource.java
class FileConfigurationSource (line 41) | public class FileConfigurationSource implements ConfigurationSource {
type Mode (line 43) | private enum Mode {
method FileConfigurationSource (line 60) | public FileConfigurationSource() {
method postInit (line 80) | public void postInit() {
method init (line 88) | @Override
method initProfile (line 118) | @Override
method get (line 138) | @Override
method getListSize (line 171) | @Override
method getMapKeys (line 215) | @Override
method watch (line 269) | @Override
method set (line 273) | @Override
method set (line 277) | @Override
method set (line 281) | @Override
method set (line 285) | @Override
method set (line 289) | @Override
method getOrdinal (line 293) | @Override
method representsArray (line 304) | private boolean representsArray(String key) {
method getYamlValue (line 319) | private Object getYamlValue(String key, Object value) {
method loadYamlFile (line 387) | private Map<String, Object> loadYamlFile(String fileNameYml, String fi...
method loadProperties (line 445) | private Properties loadProperties(String fileName) {
FILE: common/src/main/java/com/kumuluz/ee/configuration/sources/SystemPropertyConfigurationSource.java
class SystemPropertyConfigurationSource (line 34) | public class SystemPropertyConfigurationSource implements ConfigurationS...
method init (line 36) | @Override
method get (line 40) | @Override
method getListSize (line 45) | @Override
method getMapKeys (line 51) | @Override
method watch (line 57) | @Override
method set (line 61) | @Override
method set (line 65) | @Override
method set (line 69) | @Override
method set (line 73) | @Override
method set (line 77) | @Override
method getOrdinal (line 81) | @Override
FILE: common/src/main/java/com/kumuluz/ee/configuration/utils/ConfigurationDecoderUtils.java
class ConfigurationDecoderUtils (line 31) | public class ConfigurationDecoderUtils {
method decodeConfigValueIfEncoded (line 33) | public static String decodeConfigValueIfEncoded(String key, String val...
FILE: common/src/main/java/com/kumuluz/ee/configuration/utils/ConfigurationDispatcher.java
class ConfigurationDispatcher (line 34) | public class ConfigurationDispatcher {
method notifyChange (line 38) | public void notifyChange(String key, String value) {
method subscribe (line 45) | public void subscribe(ConfigurationListener listener) {
method unsubscribe (line 49) | public void unsubscribe(ConfigurationListener listener) {
FILE: common/src/main/java/com/kumuluz/ee/configuration/utils/ConfigurationImpl.java
class ConfigurationImpl (line 35) | public class ConfigurationImpl {
method ConfigurationImpl (line 42) | public ConfigurationImpl() {
method init (line 46) | private void init() {
method postInit (line 67) | public void postInit() {
method isUtilLoggerAvailable (line 72) | public Boolean isUtilLoggerAvailable() {
method getUtilLogger (line 76) | public Logger getUtilLogger() {
method getDispatcher (line 80) | public ConfigurationDispatcher getDispatcher() {
method getConfigurationSources (line 84) | public List<ConfigurationSource> getConfigurationSources() {
method getConfigurationDecoder (line 88) | public ConfigurationDecoder getConfigurationDecoder() {
FILE: common/src/main/java/com/kumuluz/ee/configuration/utils/ConfigurationInterpolationUtil.java
class ConfigurationInterpolationUtil (line 16) | public class ConfigurationInterpolationUtil {
method interpolateString (line 18) | public static String interpolateString(String value, Function<String, ...
method getInnermostInterpolation (line 59) | private static InterpolationLocation getInnermostInterpolation(String ...
class InterpolationLocation (line 80) | private static class InterpolationLocation {
method InterpolationLocation (line 85) | public InterpolationLocation(int startIndex, int endIndex) {
FILE: common/src/main/java/com/kumuluz/ee/configuration/utils/ConfigurationSourceUtils.java
class ConfigurationSourceUtils (line 29) | public class ConfigurationSourceUtils {
method getListSize (line 32) | public static Optional<Integer> getListSize(String key, Collection<Str...
method getMapKeys (line 58) | public static Optional<List<String>> getMapKeys(String key, Collection...
FILE: common/src/main/java/com/kumuluz/ee/configuration/utils/ConfigurationUtil.java
class ConfigurationUtil (line 34) | public class ConfigurationUtil {
method ConfigurationUtil (line 40) | protected ConfigurationUtil() {
method ConfigurationUtil (line 43) | private ConfigurationUtil(ConfigurationImpl config) {
method initialize (line 47) | public static void initialize(ConfigurationImpl config) {
method getInstance (line 56) | public static ConfigurationUtil getInstance() {
method get (line 65) | public Optional<String> get(String key) {
method getRaw (line 81) | public Optional<String> getRaw(String key) {
method getBoolean (line 96) | public Optional<Boolean> getBoolean(String key) {
method getInteger (line 109) | public Optional<Integer> getInteger(String key) {
method getLong (line 122) | public Optional<Long> getLong(String key) {
method getDouble (line 135) | public Optional<Double> getDouble(String key) {
method getFloat (line 148) | public Optional<Float> getFloat(String key) {
method getListSize (line 161) | public Optional<Integer> getListSize(String key) {
method getList (line 180) | public Optional<List<String>> getList(String key) {
method set (line 198) | public void set(String key, String value) {
method set (line 202) | public void set(String key, Boolean value) {
method set (line 206) | public void set(String key, Integer value) {
method set (line 210) | public void set(String key, Double value) {
method set (line 214) | public void set(String key, Float value) {
method getType (line 218) | public Optional<ConfigurationValueType> getType(String key) {
method getMapKeys (line 270) | public Optional<List<String>> getMapKeys(String key) {
method subscribe (line 296) | public void subscribe(String key, ConfigurationListener listener) {
method unsubscribe (line 305) | public void unsubscribe(ConfigurationListener listener) {
method getConfigurationSources (line 309) | public List<ConfigurationSource> getConfigurationSources() {
method getConfigurationDecoder (line 313) | public ConfigurationDecoder getConfigurationDecoder() {
FILE: common/src/main/java/com/kumuluz/ee/logs/LogDeferrer.java
class LogDeferrer (line 8) | public class LogDeferrer<T> {
method init (line 14) | public void init(Supplier<T> logger) {
method defer (line 24) | public void defer(Consumer<T> log) {
method execute (line 29) | public void execute() {
FILE: common/src/main/java/com/kumuluz/ee/logs/impl/JavaUtilConsoleHandler.java
class JavaUtilConsoleHandler (line 6) | public class JavaUtilConsoleHandler extends StreamHandler {
method JavaUtilConsoleHandler (line 11) | public JavaUtilConsoleHandler() {
method publish (line 32) | @Override
method close (line 44) | @Override
FILE: common/src/main/java/com/kumuluz/ee/logs/impl/JavaUtilDefaultLogConfigurator.java
class JavaUtilDefaultLogConfigurator (line 7) | public class JavaUtilDefaultLogConfigurator {
method init (line 9) | public static void init() {
method initSoleHandler (line 37) | public static void initSoleHandler(Handler handler) {
FILE: common/src/main/java/com/kumuluz/ee/logs/impl/JavaUtilFormatter.java
class JavaUtilFormatter (line 13) | public class JavaUtilFormatter extends Formatter {
method format (line 17) | @Override
FILE: common/src/test/java/com/kumuluz/ee/configuration/utils/ConfigurationInterpolationUtilTest.java
class ConfigurationInterpolationUtilTest (line 18) | public class ConfigurationInterpolationUtilTest {
method identityResolver (line 23) | private Optional<String> identityResolver(String s) {
method testValueResolver (line 27) | private Optional<String> testValueResolver(String s) {
method emptyResolver (line 31) | private Optional<String> emptyResolver(String s) {
method createMapResolver (line 35) | private Function<String, Optional<String>> createMapResolver(Map<Strin...
method noInterpolationTest (line 39) | @Test
method simpleInterpolationTest (line 54) | @Test
method nestedInterpolationTest (line 65) | @Test
method defaultValueInterpolationTest (line 79) | @Test
method defaultValueAndNestedInterpolationTest (line 92) | @Test
FILE: components/bean-validation/hibernate-validator/src/main/java/com/kumuluz/ee/beanvalidation/BeanValidationComponent.java
class BeanValidationComponent (line 36) | @EeComponentDef(name = "Hibernate Validator", type = EeComponentType.BEA...
method init (line 42) | @Override
method load (line 46) | @Override
FILE: components/bean-validation/hibernate-validator/src/test/java/com/kumuluz/ee/beanvalidation/test/HibernateValidatorTest.java
class HibernateValidatorTest (line 40) | public class HibernateValidatorTest {
method setUp (line 44) | @BeforeClass
method testCorrectEntities (line 50) | @Test
method testWrongEntities (line 77) | @Test
FILE: components/bean-validation/hibernate-validator/src/test/java/com/kumuluz/ee/beanvalidation/test/beans/Project.java
class Project (line 29) | public class Project {
method getName (line 41) | public String getName() {
method setName (line 45) | public void setName(String name) {
method getDescription (line 49) | public String getDescription() {
method setDescription (line 53) | public void setDescription(String description) {
method getUser (line 57) | public User getUser() {
method setUser (line 61) | public void setUser(User user) {
FILE: components/bean-validation/hibernate-validator/src/test/java/com/kumuluz/ee/beanvalidation/test/beans/User.java
class User (line 34) | public class User {
method getUsername (line 64) | public String getUsername() {
method setUsername (line 68) | public void setUsername(String username) {
method getEmail (line 72) | public String getEmail() {
method setEmail (line 76) | public void setEmail(String email) {
method getFirstname (line 80) | public String getFirstname() {
method setFirstname (line 84) | public void setFirstname(String firstname) {
method getLastname (line 88) | public String getLastname() {
method setLastname (line 92) | public void setLastname(String lastname) {
method getAge (line 96) | public Integer getAge() {
method setAge (line 100) | public void setAge(Integer age) {
method getSalary (line 104) | public Double getSalary() {
method setSalary (line 108) | public void setSalary(Double salary) {
method getCreatedAt (line 112) | public Date getCreatedAt() {
method setCreatedAt (line 116) | public void setCreatedAt(Date createdAt) {
method getProjects (line 120) | public List<Project> getProjects() {
method setProjects (line 124) | public void setProjects(List<Project> projects) {
FILE: components/cdi/weld/src/main/java/com/kumuluz/ee/cdi/CdiComponent.java
class CdiComponent (line 35) | @EeComponentDef(name = "Weld", type = EeComponentType.CDI)
method init (line 40) | @Override
method load (line 44) | @Override
FILE: components/cdi/weld/src/main/java/com/kumuluz/ee/configuration/cdi/interceptors/ConfigBundleInterceptor.java
class ConfigBundleInterceptor (line 46) | @Interceptor
method loadConfiguration (line 59) | @PostConstruct
method processConfigBundleBeanSetters (line 88) | private boolean processConfigBundleBeanSetters(Object target, Class ta...
method getValueOfPrimitive (line 189) | private Optional getValueOfPrimitive(Class type, String key) {
method processNestedObject (line 222) | private Object processNestedObject(Class targetClass, Method method, C...
method getKeyName (line 261) | private String getKeyName(Class targetClass, String setter, String key...
method getKeyPrefix (line 293) | private String getKeyPrefix(Class targetClass) {
method setterToField (line 314) | private String setterToField(String setter) {
method targetClassIsProxied (line 324) | private boolean targetClassIsProxied(Class targetClass) {
method deployWatcher (line 336) | private void deployWatcher(Object target, Method method, String watche...
FILE: components/cdi/weld/src/main/java/com/kumuluz/ee/configuration/cdi/producers/ConfigurationUtilProducer.java
class ConfigurationUtilProducer (line 32) | public class ConfigurationUtilProducer {
method getConfigurationUtil (line 34) | @Produces
FILE: components/cdi/weld/src/main/java/com/kumuluz/ee/configuration/cdi/producers/EeConfigProducer.java
class EeConfigProducer (line 32) | public class EeConfigProducer {
method getConfigurationUtil (line 34) | @Produces
FILE: components/cdi/weld/src/main/java/com/kumuluz/ee/runtime/cdi/producers/EeRuntimeProducer.java
class EeRuntimeProducer (line 32) | public class EeRuntimeProducer {
method getConfigurationUtil (line 34) | @Produces
FILE: components/el/uel/src/main/java/com/kumuluz/ee/el/ElComponent.java
class ElComponent (line 35) | @EeComponentDef(name = "UEL", type = EeComponentType.EL)
method init (line 40) | @Override
method load (line 44) | @Override
FILE: components/javamail/ri/src/main/java/com/kumuluz/ee/javamail/ri/JavaMailComponent.java
class JavaMailComponent (line 18) | @EeComponentDef(name = "JavaMailRI", type = EeComponentType.MAIL)
method init (line 23) | @Override
method load (line 40) | @Override
FILE: components/javamail/ri/src/main/java/com/kumuluz/ee/javamail/ri/MailSessionFactory.java
class MailSessionFactory (line 11) | public class MailSessionFactory {
method create (line 18) | static Session create(MailSessionConfig cfg) {
method configureService (line 67) | private static void configureService(Properties properties, MailServic...
FILE: components/javamail/ri/src/main/java/com/kumuluz/ee/javamail/ri/ManagedPasswordAuthenticator.java
class ManagedPasswordAuthenticator (line 9) | public class ManagedPasswordAuthenticator extends Authenticator {
method ManagedPasswordAuthenticator (line 13) | ManagedPasswordAuthenticator(MailSessionConfig mailSessionConfig) {
method getPasswordAuthentication (line 17) | @Override
FILE: components/jax-rs/jersey/src/main/java/com/kumuluz/ee/jaxrs/JaxRsComponent.java
class JaxRsComponent (line 36) | @EeComponentDef(name = "Jersey", type = EeComponentType.JAX_RS)
method init (line 42) | @Override
method load (line 46) | @Override
FILE: components/jax-rs/jersey/src/main/java/com/kumuluz/ee/jaxrs/Jetty10ConnectorProvider.java
class Jetty10ConnectorProvider (line 36) | public class Jetty10ConnectorProvider implements ConnectorProvider {
method getConnector (line 38) | @Override
FILE: components/jax-rs/jersey/src/main/java/org/glassfish/jersey/jetty/connector/Jetty10Connector.java
class Jetty10Connector (line 133) | public class Jetty10Connector implements Connector {
method Jetty10Connector (line 148) | public Jetty10Connector(final Client jaxrsClient, final Configuration ...
method getProxyUri (line 232) | @SuppressWarnings("ChainOfInstanceofChecks")
method getHttpClient (line 248) | @SuppressWarnings("UnusedDeclaration")
method getCookieStore (line 259) | public CookieStore getCookieStore() {
method apply (line 263) | @Override
method processResponseHeaders (line 304) | private static void processResponseHeaders(final HttpFields respHeader...
class HttpClientResponseInputStream (line 317) | private static final class HttpClientResponseInputStream extends Filte...
method HttpClientResponseInputStream (line 319) | HttpClientResponseInputStream(final ContentResponse jettyResponse) t...
method getInputStream (line 323) | private static InputStream getInputStream(final ContentResponse resp...
method translateRequest (line 328) | private Request translateRequest(final ClientRequest clientRequest) {
method writeOutBoundHeaders (line 342) | private Map<String, String> writeOutBoundHeaders(final MultivaluedMap<...
method getBytesProvider (line 357) | private ContentProvider getBytesProvider(final ClientRequest clientReq...
method getStreamProvider (line 380) | private ContentProvider getStreamProvider(final ClientRequest clientRe...
method processContent (line 397) | private void processContent(final ClientRequest clientRequest, final C...
method apply (line 408) | @Override
method translateResponse (line 504) | private static ClientResponse translateResponse(final ClientRequest je...
method getName (line 513) | @Override
method close (line 518) | @Override
FILE: components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/JaxWsComponent.java
class JaxWsComponent (line 42) | @EeComponentDef(name = "CXF", type = EeComponentType.JAX_WS)
method init (line 48) | @Override
method load (line 73) | @Override
FILE: components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/KumuluzCXFServlet.java
class KumuluzCXFServlet (line 36) | public class KumuluzCXFServlet extends CXFNonSpringServlet {
method init (line 42) | public void init() throws ServletException {
method loadBus (line 50) | @Override
FILE: components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/processor/AnnotationProcessorUtil.java
class AnnotationProcessorUtil (line 35) | public class AnnotationProcessorUtil {
method writeFile (line 37) | public static void writeFile(Set<String> content, String resourceName,...
method writeFile (line 49) | private static void writeFile(Set<String> content, String resourceName...
method readOldFile (line 62) | private static FileObject readOldFile(Set<String> content, String reso...
method readOldFile (line 79) | private static void readOldFile(Set<String> content, Reader reader) th...
FILE: components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/processor/JaxWsAnnotationProcessor.java
class JaxWsAnnotationProcessor (line 42) | public class JaxWsAnnotationProcessor extends AbstractProcessor {
method getSupportedSourceVersion (line 48) | @Override
method getSupportedAnnotationTypes (line 53) | @Override
method init (line 58) | @Override
method process (line 64) | @Override
method getElementName (line 83) | private void getElementName(Set<String> corsElementNames, Element e) {
FILE: components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/processor/JaxWsAnnotationProcessorUtil.java
class JaxWsAnnotationProcessorUtil (line 38) | public class JaxWsAnnotationProcessorUtil {
method JaxWsAnnotationProcessorUtil (line 50) | private JaxWsAnnotationProcessorUtil() {
method getInstance (line 53) | public static synchronized JaxWsAnnotationProcessorUtil getInstance() {
method init (line 62) | private void init() {
method getWsClasses (line 94) | private List<Class<?>> getWsClasses() {
method targetClassIsProxied (line 119) | private boolean targetClassIsProxied(Class targetClass) {
method isInitialized (line 123) | private boolean isInitialized() {
method getContextRoot (line 127) | public String getContextRoot() {
method setContextRoot (line 131) | public void setContextRoot(String contextRoot) {
method getEndpointList (line 145) | public List<Endpoint> getEndpointList() {
method reinitialize (line 149) | protected void reinitialize() {
FILE: components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/ws/CXFWebservicePublisher.java
class CXFWebservicePublisher (line 45) | public class CXFWebservicePublisher {
method publish (line 52) | public Server publish(final Endpoint endpoint, final Bus bus, final bo...
method injectWebServiceResource (line 94) | protected void injectWebServiceResource(final Field f, final Class<?> ...
method getBean (line 125) | private Object getBean(Class<?> clazz, boolean cdiPresent) {
method open (line 140) | private void open() {
method close (line 150) | public void close() {
FILE: components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/ws/Endpoint.java
class Endpoint (line 29) | public class Endpoint {
method Endpoint (line 35) | public Endpoint(Class<?> implementationClass, String url, WebService w...
method getUrl (line 41) | public String getUrl() {
method getImplementationClass (line 45) | public Class<?> getImplementationClass() {
method wsdlLocation (line 49) | public String wsdlLocation() {
method defaultEndpointUrl (line 58) | private String defaultEndpointUrl() {
method serviceName (line 67) | public String serviceName() {
method portName (line 76) | public String portName() {
FILE: components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/ws/InjectionHelper.java
class InjectionHelper (line 31) | public final class InjectionHelper {
method InjectionHelper (line 33) | private InjectionHelper() {
method injectWebServiceContext (line 36) | public static void injectWebServiceContext(final Object instance, fina...
method setField (line 54) | private static void setField(final Object instance, final Field field,...
FILE: components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/ws/KumuluzWSInvoker.java
class KumuluzWSInvoker (line 42) | public class KumuluzWSInvoker extends JAXWSMethodInvoker implements Invo...
method KumuluzWSInvoker (line 47) | public KumuluzWSInvoker(final Class<?> targetClass, final Object targe...
method invoke (line 53) | @Override
method performInvocation (line 70) | @Override
FILE: components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/ws/KumuluzWebServiceContext.java
class KumuluzWebServiceContext (line 35) | public final class KumuluzWebServiceContext implements WebServiceContext...
method getInstance (line 43) | public static KumuluzWebServiceContext getInstance() {
method getEndpointReference (line 47) | public EndpointReference getEndpointReference(final Element... referen...
method getEndpointReference (line 51) | public <T extends EndpointReference> T getEndpointReference(final Clas...
method getMessageContext (line 55) | public MessageContext getMessageContext() {
method setMessageContext (line 59) | public void setMessageContext(final WebServiceContext ctx) {
method getUserPrincipal (line 63) | public Principal getUserPrincipal() {
method isUserInRole (line 67) | public boolean isUserInRole(String role) {
method getWebServiceContext (line 71) | private WebServiceContext getWebServiceContext() {
FILE: components/jax-ws/cxf/src/test/java/com/kumuluz/ee/jaxws/cxf/impl/NoWsContextAnnotatedEndpointBean.java
class NoWsContextAnnotatedEndpointBean (line 5) | @WebService
FILE: components/jax-ws/cxf/src/test/java/com/kumuluz/ee/jaxws/cxf/impl/WebServiceContextBean.java
class WebServiceContextBean (line 13) | public class WebServiceContextBean implements WebServiceContext {
method WebServiceContextBean (line 17) | public WebServiceContextBean(String id) {
method getMessageContext (line 23) | @Override
method getUserPrincipal (line 28) | @Override
method isUserInRole (line 33) | @Override
method getEndpointReference (line 38) | @Override
method getEndpointReference (line 43) | @Override
FILE: components/jax-ws/cxf/src/test/java/com/kumuluz/ee/jaxws/cxf/impl/WsContextAnnotatedEndpoint.java
type WsContextAnnotatedEndpoint (line 3) | public interface WsContextAnnotatedEndpoint {
FILE: components/jax-ws/cxf/src/test/java/com/kumuluz/ee/jaxws/cxf/impl/WsContextAnnotatedEndpointBean.java
class WsContextAnnotatedEndpointBean (line 7) | @WsContext(contextRoot = WsContextAnnotatedEndpointBean.CTX_ROOT, urlPat...
FILE: components/jax-ws/cxf/src/test/java/com/kumuluz/ee/jaxws/cxf/processor/JaxWsAnnotationProcessorUtilTest.java
class JaxWsAnnotationProcessorUtilTest (line 16) | public class JaxWsAnnotationProcessorUtilTest {
method shouldReturnDefaultWsInfo (line 20) | @Test
method shouldReturnConfiguredWsInfo (line 47) | @Test
method prepareEndpointList (line 76) | private void prepareEndpointList(String... endpoints) {
FILE: components/jax-ws/cxf/src/test/java/com/kumuluz/ee/jaxws/cxf/ws/KumuluzWebServiceContextTest.java
class KumuluzWebServiceContextTest (line 8) | public class KumuluzWebServiceContextTest {
method shouldUseRightContext (line 10) | @Test
class WsThread (line 25) | public static class WsThread extends Thread {
method run (line 28) | public void run() {
method isSuccessful (line 40) | public boolean isSuccessful() {
FILE: components/jax-ws/metro/src/main/java/com/kumuluz/ee/jaxws/metro/JaxWsComponent.java
class JaxWsComponent (line 35) | @EeComponentDef(name = "Metro", type = EeComponentType.JAX_WS)
method init (line 40) | @Override
method load (line 44) | @Override
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/PersistenceSettings.java
type PersistenceSettings (line 29) | public interface PersistenceSettings {
method getPersistenceUnitProperties (line 31) | Map<String, String> getPersistenceUnitProperties();
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/PersistenceUnitHolder.java
class PersistenceUnitHolder (line 35) | public class PersistenceUnitHolder {
method PersistenceUnitHolder (line 45) | private PersistenceUnitHolder() {
method getInstance (line 50) | public static PersistenceUnitHolder getInstance() {
method getEntityManagerFactory (line 54) | public synchronized PersistenceWrapper getEntityManagerFactory(String ...
method getDefaultUnitName (line 77) | public String getDefaultUnitName() {
method setProviderProperties (line 81) | public void setProviderProperties(PersistenceSettings providerProperti...
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/PersistenceWrapper.java
class PersistenceWrapper (line 29) | public class PersistenceWrapper {
method PersistenceWrapper (line 34) | public PersistenceWrapper(EntityManagerFactory entityManagerFactory, T...
method getEntityManagerFactory (line 39) | public EntityManagerFactory getEntityManagerFactory() {
method getTransactionType (line 43) | public TransactionType getTransactionType() {
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/TransactionType.java
type TransactionType (line 27) | public enum TransactionType {
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/exceptions/NoDefaultPersistenceUnit.java
class NoDefaultPersistenceUnit (line 27) | public class NoDefaultPersistenceUnit extends RuntimeException {
method NoDefaultPersistenceUnit (line 29) | public NoDefaultPersistenceUnit() {
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/injection/EntityManagerWrapper.java
type EntityManagerWrapper (line 29) | public interface EntityManagerWrapper {
method getEntityManager (line 31) | EntityManager getEntityManager();
method close (line 33) | void close();
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/injection/JpaService.java
class JpaService (line 43) | @Priority(1)
method registerPersistenceContextInjectionPoint (line 48) | @Override
method registerPersistenceUnitInjectionPoint (line 103) | @Override
method cleanup (line 126) | @Override
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/injection/NonTxEntityManagerWrapper.java
class NonTxEntityManagerWrapper (line 9) | public class NonTxEntityManagerWrapper implements EntityManagerWrapper {
method NonTxEntityManagerWrapper (line 13) | public NonTxEntityManagerWrapper(EntityManager em) {
method getEntityManager (line 17) | @Override
method close (line 22) | @Override
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/injection/PersistenceContextResource.java
class PersistenceContextResource (line 31) | public class PersistenceContextResource implements ResourceReference<Ent...
method PersistenceContextResource (line 35) | public PersistenceContextResource(EntityManagerWrapper entityManagerWr...
method getInstance (line 40) | @Override
method release (line 46) | @Override
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/injection/PersistenceContextResourceFactory.java
class PersistenceContextResourceFactory (line 36) | public class PersistenceContextResourceFactory implements ResourceRefere...
method PersistenceContextResourceFactory (line 43) | public PersistenceContextResourceFactory(String unitName, EntityManage...
method createResource (line 50) | @Override
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/injection/PersistenceUnitResource.java
class PersistenceUnitResource (line 31) | public class PersistenceUnitResource implements ResourceReference<Entity...
method PersistenceUnitResource (line 35) | public PersistenceUnitResource(EntityManagerFactory emf) {
method getInstance (line 40) | @Override
method release (line 46) | @Override
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/injection/PersistenceUnitResourceFactory.java
class PersistenceUnitResourceFactory (line 32) | public class PersistenceUnitResourceFactory implements
method PersistenceUnitResourceFactory (line 37) | public PersistenceUnitResourceFactory(EntityManagerFactory emf) {
method createResource (line 42) | @Override
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/NonTxEntityManagerHolder.java
class NonTxEntityManagerHolder (line 29) | public class NonTxEntityManagerHolder {
method getEntityManager (line 33) | public EntityManager getEntityManager() {
method setEntityManager (line 37) | public void setEntityManager(EntityManager em) {
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/NonTxQueryWrapper.java
class NonTxQueryWrapper (line 30) | public class NonTxQueryWrapper implements Query {
method NonTxQueryWrapper (line 35) | public NonTxQueryWrapper(Query query, EntityManager em) {
method getResultList (line 40) | @Override
method getSingleResult (line 50) | @Override
method executeUpdate (line 60) | @Override
method setMaxResults (line 65) | @Override
method getMaxResults (line 71) | @Override
method setFirstResult (line 76) | @Override
method getFirstResult (line 82) | @Override
method setHint (line 87) | @Override
method getHints (line 93) | @Override
method setParameter (line 98) | @Override
method setParameter (line 104) | @Override
method setParameter (line 110) | @Override
method setParameter (line 116) | @Override
method setParameter (line 122) | @Override
method setParameter (line 128) | @Override
method setParameter (line 134) | @Override
method setParameter (line 140) | @Override
method setParameter (line 146) | @Override
method getParameters (line 152) | @Override
method getParameter (line 157) | @Override
method getParameter (line 162) | @Override
method getParameter (line 167) | @Override
method getParameter (line 172) | @Override
method isBound (line 177) | @Override
method getParameterValue (line 182) | @Override
method getParameterValue (line 187) | @Override
method getParameterValue (line 192) | @Override
method setFlushMode (line 197) | @Override
method getFlushMode (line 203) | @Override
method setLockMode (line 208) | @Override
method getLockMode (line 214) | @Override
method unwrap (line 219) | @Override
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/NonTxStoredProcedureQueryWrapper.java
class NonTxStoredProcedureQueryWrapper (line 30) | public class NonTxStoredProcedureQueryWrapper implements StoredProcedure...
method NonTxStoredProcedureQueryWrapper (line 35) | public NonTxStoredProcedureQueryWrapper(StoredProcedureQuery storedPro...
method setHint (line 40) | @Override
method getHints (line 46) | @Override
method setParameter (line 51) | @Override
method setParameter (line 57) | @Override
method setParameter (line 63) | @Override
method setParameter (line 69) | @Override
method setParameter (line 75) | @Override
method setParameter (line 81) | @Override
method setParameter (line 87) | @Override
method setParameter (line 93) | @Override
method setParameter (line 99) | @Override
method getParameters (line 105) | @Override
method getParameter (line 110) | @Override
method getParameter (line 115) | @Override
method getParameter (line 120) | @Override
method getParameter (line 125) | @Override
method isBound (line 130) | @Override
method getParameterValue (line 135) | @Override
method getParameterValue (line 140) | @Override
method getParameterValue (line 145) | @Override
method setFlushMode (line 150) | @Override
method getFlushMode (line 156) | @Override
method setLockMode (line 161) | @Override
method getLockMode (line 167) | @Override
method unwrap (line 172) | @Override
method registerStoredProcedureParameter (line 177) | @Override
method registerStoredProcedureParameter (line 183) | @Override
method getOutputParameterValue (line 189) | @Override
method getOutputParameterValue (line 194) | @Override
method execute (line 199) | @Override
method executeUpdate (line 204) | @Override
method setMaxResults (line 209) | @Override
method getMaxResults (line 215) | @Override
method setFirstResult (line 220) | @Override
method getFirstResult (line 226) | @Override
method getResultList (line 231) | @Override
method getSingleResult (line 241) | @Override
method hasMoreResults (line 251) | @Override
method getUpdateCount (line 256) | @Override
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/NonTxTypedQueryWrapper.java
class NonTxTypedQueryWrapper (line 30) | public class NonTxTypedQueryWrapper<X> implements TypedQuery<X> {
method NonTxTypedQueryWrapper (line 35) | public NonTxTypedQueryWrapper(TypedQuery<X> typedQuery, EntityManager ...
method getResultList (line 40) | @Override
method getSingleResult (line 50) | @Override
method executeUpdate (line 60) | @Override
method setMaxResults (line 65) | @Override
method getMaxResults (line 71) | @Override
method setFirstResult (line 76) | @Override
method getFirstResult (line 82) | @Override
method setHint (line 87) | @Override
method getHints (line 93) | @Override
method setParameter (line 98) | @Override
method setParameter (line 104) | @Override
method setParameter (line 110) | @Override
method setParameter (line 116) | @Override
method setParameter (line 122) | @Override
method setParameter (line 128) | @Override
method setParameter (line 134) | @Override
method setParameter (line 140) | @Override
method setParameter (line 146) | @Override
method getParameters (line 152) | @Override
method getParameter (line 157) | @Override
method getParameter (line 162) | @Override
method getParameter (line 167) | @Override
method getParameter (line 172) | @Override
method isBound (line 177) | @Override
method getParameterValue (line 182) | @Override
method getParameterValue (line 187) | @Override
method getParameterValue (line 192) | @Override
method setFlushMode (line 197) | @Override
method getFlushMode (line 203) | @Override
method setLockMode (line 208) | @Override
method getLockMode (line 214) | @Override
method unwrap (line 219) | @Override
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/SyncEntityManagerWrapper.java
class SyncEntityManagerWrapper (line 36) | public class SyncEntityManagerWrapper implements EntityManager {
method SyncEntityManagerWrapper (line 41) | public SyncEntityManagerWrapper(EntityManager em, SynchronizationType ...
method getSynchronizationType (line 46) | public SynchronizationType getSynchronizationType() {
method persist (line 50) | @Override
method merge (line 55) | @Override
method remove (line 60) | @Override
method find (line 65) | @Override
method find (line 70) | @Override
method find (line 75) | @Override
method find (line 80) | @Override
method getReference (line 85) | @Override
method flush (line 90) | @Override
method setFlushMode (line 95) | @Override
method getFlushMode (line 100) | @Override
method lock (line 105) | @Override
method lock (line 110) | @Override
method refresh (line 115) | @Override
method refresh (line 120) | @Override
method refresh (line 125) | @Override
method refresh (line 130) | @Override
method clear (line 135) | @Override
method detach (line 140) | @Override
method contains (line 145) | @Override
method getLockMode (line 150) | @Override
method setProperty (line 155) | @Override
method getProperties (line 160) | @Override
method createQuery (line 165) | @Override
method createQuery (line 170) | @Override
method createQuery (line 175) | @Override
method createQuery (line 180) | @Override
method createQuery (line 185) | @Override
method createNamedQuery (line 190) | @Override
method createNamedQuery (line 195) | @Override
method createNativeQuery (line 200) | @Override
method createNativeQuery (line 205) | @Override
method createNativeQuery (line 210) | @Override
method createNamedStoredProcedureQuery (line 215) | @Override
method createStoredProcedureQuery (line 220) | @Override
method createStoredProcedureQuery (line 225) | @Override
method createStoredProcedureQuery (line 230) | @Override
method joinTransaction (line 235) | @Override
method isJoinedToTransaction (line 240) | @Override
method unwrap (line 245) | @Override
method getDelegate (line 250) | @Override
method close (line 255) | @Override
method isOpen (line 260) | @Override
method getTransaction (line 265) | @Override
method getEntityManagerFactory (line 270) | @Override
method getCriteriaBuilder (line 275) | @Override
method getMetamodel (line 280) | @Override
method createEntityGraph (line 285) | @Override
method createEntityGraph (line 290) | @Override
method getEntityGraph (line 295) | @Override
method getEntityGraphs (line 300) | @Override
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/TxScopedEntityManager.java
class TxScopedEntityManager (line 40) | public class TxScopedEntityManager implements EntityManager {
method TxScopedEntityManager (line 49) | public TxScopedEntityManager(String unitName, EntityManagerFactory emf...
method persist (line 58) | @Override
method merge (line 66) | @Override
method remove (line 74) | @Override
method find (line 82) | @Override
method find (line 94) | @Override
method find (line 106) | @Override
method find (line 118) | @Override
method getReference (line 130) | @Override
method flush (line 142) | @Override
method setFlushMode (line 148) | @Override
method getFlushMode (line 154) | @Override
method lock (line 160) | @Override
method lock (line 166) | @Override
method refresh (line 172) | @Override
method refresh (line 180) | @Override
method refresh (line 188) | @Override
method refresh (line 196) | @Override
method clear (line 204) | @Override
method detach (line 210) | @Override
method contains (line 216) | @Override
method getLockMode (line 222) | @Override
method setProperty (line 228) | @Override
method getProperties (line 234) | @Override
method createQuery (line 240) | @Override
method createQuery (line 250) | @Override
method createQuery (line 260) | @Override
method createQuery (line 266) | @Override
method createQuery (line 272) | @Override
method createNamedQuery (line 282) | @Override
method createNamedQuery (line 292) | @Override
method createNativeQuery (line 302) | @Override
method createNativeQuery (line 312) | @Override
method createNativeQuery (line 322) | @Override
method createNamedStoredProcedureQuery (line 332) | @Override
method createStoredProcedureQuery (line 342) | @Override
method createStoredProcedureQuery (line 352) | @Override
method createStoredProcedureQuery (line 362) | @Override
method joinTransaction (line 372) | @Override
method isJoinedToTransaction (line 378) | @Override
method unwrap (line 384) | @Override
method getDelegate (line 390) | @Override
method close (line 396) | @Override
method isOpen (line 402) | @Override
method getTransaction (line 408) | @Override
method getEntityManagerFactory (line 414) | @Override
method getCriteriaBuilder (line 420) | @Override
method getMetamodel (line 426) | @Override
method createEntityGraph (line 432) | @Override
method createEntityGraph (line 438) | @Override
method getEntityGraph (line 444) | @Override
method getEntityGraphs (line 450) | @Override
method getEntityManager (line 458) | private EntityManager getEntityManager() {
method createEntityManager (line 491) | private EntityManager createEntityManager() {
method detachLoadedNonTxEntities (line 501) | private void detachLoadedNonTxEntities(EntityManager em) {
method detachLoadedNonTxQueryEntities (line 509) | private Query detachLoadedNonTxQueryEntities(Query query, EntityManage...
method detachLoadedNonTxTypedQueryEntities (line 519) | private <T> TypedQuery<T> detachLoadedNonTxTypedQueryEntities(TypedQue...
method detachLoadedNonTxStoredProcedureQueryEntities (line 529) | private StoredProcedureQuery detachLoadedNonTxStoredProcedureQueryEnti...
method validateActiveTransaction (line 539) | private void validateActiveTransaction() {
method validateCompatibleSyncTypes (line 547) | private void validateCompatibleSyncTypes(EntityManager existingEm) {
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/TxScopedEntityManagerFactory.java
class TxScopedEntityManagerFactory (line 36) | public class TxScopedEntityManagerFactory {
method buildEntityManagerWrapper (line 38) | public static EntityManagerWrapper buildEntityManagerWrapper(String un...
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/TxScopedEntityManagerWrapper.java
class TxScopedEntityManagerWrapper (line 32) | public class TxScopedEntityManagerWrapper implements EntityManagerWrapper {
method TxScopedEntityManagerWrapper (line 37) | public TxScopedEntityManagerWrapper(EntityManager em, NonTxEntityManag...
method getEntityManager (line 42) | @Override
method close (line 47) | @Override
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/TxSynchronization.java
class TxSynchronization (line 30) | public class TxSynchronization implements Synchronization {
method TxSynchronization (line 34) | public TxSynchronization(EntityManager em) {
method beforeCompletion (line 38) | @Override
method afterCompletion (line 42) | @Override
FILE: components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/utils/PersistenceUtils.java
class PersistenceUtils (line 42) | public class PersistenceUtils {
method getEntityManagerFactoryTransactionType (line 46) | public static TransactionType getEntityManagerFactoryTransactionType(E...
method getDefaultUnitName (line 70) | public static Optional<String> getDefaultUnitName() {
FILE: components/jpa/eclipselink/src/main/java/com/kumuluz/ee/jpa/eclipselink/EclipseLinkSettings.java
class EclipseLinkSettings (line 33) | public class EclipseLinkSettings implements PersistenceSettings {
method EclipseLinkSettings (line 39) | EclipseLinkSettings(Boolean jtaPresent) {
method getPersistenceUnitProperties (line 43) | @Override
FILE: components/jpa/eclipselink/src/main/java/com/kumuluz/ee/jpa/eclipselink/JpaComponent.java
class JpaComponent (line 37) | @EeComponentDef(name = "EclipseLink", type = EeComponentType.JPA)
method init (line 42) | @Override
method load (line 53) | @Override
FILE: components/jpa/eclipselink/src/main/java/com/kumuluz/ee/jpa/eclipselink/KumuluzPlatform.java
class KumuluzPlatform (line 30) | public class KumuluzPlatform extends ServerPlatformBase {
method KumuluzPlatform (line 32) | public KumuluzPlatform(DatabaseSession newDatabaseSession) {
method getExternalTransactionControllerClass (line 36) | @Override
FILE: components/jpa/eclipselink/src/main/java/com/kumuluz/ee/jpa/eclipselink/KumuluzTransactionController.java
class KumuluzTransactionController (line 32) | public class KumuluzTransactionController extends JTATransactionControll...
method acquireTransactionManager (line 34) | @Override
FILE: components/jpa/hibernate/src/main/java/com/kumuluz/ee/jpa/hibernate/JpaComponent.java
class JpaComponent (line 35) | @EeComponentDef(name = "Hibernate", type = EeComponentType.JPA)
method init (line 40) | @Override
method load (line 44) | @Override
FILE: components/jsf/mojarra/src/main/java/com/kumuluz/ee/jsf/mojarra/JsfComponent.java
class JsfComponent (line 36) | @EeComponentDef(name = "Mojarra", type = EeComponentType.JSF)
method init (line 44) | @Override
method load (line 48) | @Override
FILE: components/json-b/yasson/src/main/java/com/kumuluz/ee/jsonb/yasson/JsonBComponent.java
class JsonBComponent (line 16) | @EeComponentDef(name = "Yasson", type = EeComponentType.JSON_B)
method init (line 22) | @Override
method load (line 26) | @Override
FILE: components/json-p/jsonp/src/main/java/com/kumuluz/ee/jsonp/JsonPComponent.java
class JsonPComponent (line 35) | @EeComponentDef(name = "JSONP", type = EeComponentType.JSON_P)
method init (line 40) | @Override
method load (line 44) | @Override
FILE: components/json-p/jsonp/src/main/java/com/kumuluz/ee/jsonp/configuration/utils/JsonConfigurationUtil.java
class JsonConfigurationUtil (line 34) | public class JsonConfigurationUtil {
method initialize (line 38) | private static synchronized void initialize() {
method getInstance (line 44) | public static JsonConfigurationUtil getInstance() {
method getBuilder (line 52) | public static Builder getBuilder() {
method JsonConfigurationUtil (line 56) | private JsonConfigurationUtil() {
method getMappingIfAvailable (line 64) | private JsonValue getMappingIfAvailable(String s) {
method getJsonObject (line 78) | public Optional<JsonObject> getJsonObject(String key) {
method getJsonArray (line 130) | public Optional<JsonArray> getJsonArray(String key) {
class Builder (line 183) | public static final class Builder {
method Builder (line 188) | private Builder() {
method mapToNull (line 191) | public Builder mapToNull(String mapToNull) {
method mapToEmptyObject (line 196) | public Builder mapToEmptyObject(String mapToEmptyObject) {
method mapToEmptyArray (line 201) | public Builder mapToEmptyArray(String mapToEmptyArray) {
method build (line 206) | public JsonConfigurationUtil build() {
FILE: components/jsp/jetty/src/main/java/com/kumuluz/ee/jsp/JspComponent.java
class JspComponent (line 36) | @EeComponentDef(name = "Jetty", type = EeComponentType.JSP)
method init (line 43) | @Override
method load (line 47) | @Override
FILE: components/jsp/jetty/src/test/java/com/kumuluz/ee/jetty/jsp/test/JspTest.java
class JspTest (line 28) | public class JspTest {
method testJspServlet (line 30) | @Test
FILE: components/jsp/jetty/src/test/java/com/kumuluz/ee/jetty/jsp/test/beans/TimeBean.java
class TimeBean (line 28) | public class TimeBean {
method TimeBean (line 32) | public TimeBean() {
method getCurrentTime (line 37) | public Date getCurrentTime() {
method setCurrentTime (line 41) | public void setCurrentTime(Date currentTime) {
FILE: components/jsp/jetty/src/test/java/com/kumuluz/ee/jetty/jsp/test/beans/UserBean.java
class UserBean (line 30) | public class UserBean {
method UserBean (line 46) | public UserBean() {
method getUsername (line 61) | public String getUsername() {
method setUsername (line 65) | public void setUsername(String username) {
method getEmail (line 69) | public String getEmail() {
method setEmail (line 73) | public void setEmail(String email) {
method getFirstname (line 77) | public String getFirstname() {
method setFirstname (line 81) | public void setFirstname(String firstname) {
method getLastname (line 85) | public String getLastname() {
method setLastname (line 89) | public void setLastname(String lastname) {
method getAge (line 93) | public Integer getAge() {
method setAge (line 97) | public void setAge(Integer age) {
method getCountry (line 101) | public String getCountry() {
method setCountry (line 105) | public void setCountry(String country) {
method getCreated (line 109) | public Date getCreated() {
method setCreated (line 113) | public void setCreated(Date created) {
FILE: components/jta/common/src/main/java/com/kumuluz/ee/jta/common/JtaProvider.java
class JtaProvider (line 39) | public abstract class JtaProvider {
method getInstance (line 48) | public static JtaProvider getInstance() {
method getUserTransaction (line 61) | public abstract UserTransaction getUserTransaction();
method getTransactionManager (line 63) | public abstract TransactionManager getTransactionManager();
method getTransactionSynchronizationRegistry (line 65) | public abstract TransactionSynchronizationRegistry getTransactionSynch...
method getTransactionIntegration (line 67) | public abstract TransactionIntegration getTransactionIntegration(Strin...
FILE: components/jta/common/src/main/java/com/kumuluz/ee/jta/common/JtaTransactionServices.java
class JtaTransactionServices (line 33) | public class JtaTransactionServices implements TransactionServices {
method registerSynchronization (line 35) | @Override
method isTransactionActive (line 44) | @Override
method getUserTransaction (line 54) | @Override
method cleanup (line 59) | @Override
FILE: components/jta/common/src/main/java/com/kumuluz/ee/jta/common/datasources/JtaXAConnectionWrapper.java
class JtaXAConnectionWrapper (line 43) | @Deprecated
method JtaXAConnectionWrapper (line 58) | public JtaXAConnectionWrapper(XAConnection xaConnection) throws SQLExc...
method createStatement (line 64) | @Override
method prepareStatement (line 75) | @Override
method prepareCall (line 86) | @Override
method nativeSQL (line 97) | @Override
method getAutoCommit (line 105) | @Override
method setAutoCommit (line 114) | @Override
method commit (line 123) | @Override
method rollback (line 131) | @Override
method close (line 140) | @Override
method isClosed (line 156) | @Override
method getMetaData (line 166) | @Override
method isReadOnly (line 175) | @Override
method setReadOnly (line 184) | @Override
method getCatalog (line 193) | @Override
method setCatalog (line 202) | @Override
method getTransactionIsolation (line 211) | @Override
method setTransactionIsolation (line 220) | @Override
method getWarnings (line 229) | @Override
method clearWarnings (line 238) | @Override
method createStatement (line 247) | @Override
method prepareStatement (line 258) | @Override
method prepareCall (line 269) | @Override
method getTypeMap (line 280) | @Override
method setTypeMap (line 289) | @Override
method getHoldability (line 298) | @Override
method setHoldability (line 307) | @Override
method setSavepoint (line 316) | @Override
method setSavepoint (line 325) | @Override
method rollback (line 334) | @Override
method releaseSavepoint (line 343) | @Override
method createStatement (line 352) | @Override
method prepareStatement (line 363) | @Override
method prepareCall (line 374) | @Override
method prepareStatement (line 385) | @Override
method prepareStatement (line 396) | @Override
method prepareStatement (line 407) | @Override
method createClob (line 418) | @Override
method createBlob (line 427) | @Override
method createNClob (line 436) | @Override
method createSQLXML (line 445) | @Override
method isValid (line 454) | @Override
method setClientInfo (line 463) | @Override
method getClientInfo (line 476) | @Override
method getClientInfo (line 485) | @Override
method setClientInfo (line 494) | @Override
method createArrayOf (line 507) | @Override
method createStruct (line 516) | @Override
method getSchema (line 525) | @Override
method setSchema (line 534) | @Override
method abort (line 543) | @Override
method setNetworkTimeout (line 552) | @Override
method getNetworkTimeout (line 561) | @Override
method unwrap (line 570) | @Override
method isWrapperFor (line 579) | @Override
method checkIfValid (line 588) | private void checkIfValid() throws SQLException {
method jtaPreInvoke (line 594) | private void jtaPreInvoke() throws SQLException {
method closeConnections (line 639) | private static void closeConnections(JtaXAConnectionWrapper jtaXaConne...
FILE: components/jta/common/src/main/java/com/kumuluz/ee/jta/common/datasources/JtaXADataSourceWrapper.java
class JtaXADataSourceWrapper (line 34) | @Deprecated
method JtaXADataSourceWrapper (line 37) | public JtaXADataSourceWrapper(XADataSource xaDataSource) {
method getConnection (line 41) | @Override
method getConnection (line 51) | @Override
FILE: components/jta/common/src/main/java/com/kumuluz/ee/jta/common/datasources/XAStatementProxy.java
class XAStatementProxy (line 35) | @Deprecated
method XAStatementProxy (line 42) | private XAStatementProxy(Statement statement, JtaXAConnectionWrapper j...
method newInstance (line 47) | public static Object newInstance(Statement statement, JtaXAConnectionW...
method newInstance (line 51) | public static Object newInstance(PreparedStatement statement, JtaXACon...
method newInstance (line 55) | public static Object newInstance(CallableStatement statement, JtaXACon...
method invoke (line 59) | @Override
FILE: components/jta/common/src/main/java/com/kumuluz/ee/jta/common/exceptions/CannotRetrieveTxException.java
class CannotRetrieveTxException (line 27) | public class CannotRetrieveTxException extends IllegalStateException {
method CannotRetrieveTxException (line 29) | public CannotRetrieveTxException(Throwable cause) {
FILE: components/jta/common/src/main/java/com/kumuluz/ee/jta/common/utils/TxUtils.java
class TxUtils (line 34) | public class TxUtils {
method isActive (line 36) | public static Boolean isActive(TransactionManager transactionManager) {
FILE: components/jta/narayana/src/main/java/com/kumuluz/ee/jta/narayana/JtaComponent.java
class JtaComponent (line 42) | @EeComponentDef(name = "Narayana JTA", type = EeComponentType.JTA)
method init (line 48) | @Override
method load (line 55) | @Override
FILE: components/jta/narayana/src/main/java/com/kumuluz/ee/jta/narayana/NarayanaJtaProvider.java
class NarayanaJtaProvider (line 37) | public class NarayanaJtaProvider extends JtaProvider {
method NarayanaJtaProvider (line 42) | public NarayanaJtaProvider() {
method getUserTransaction (line 47) | @Override
method getTransactionManager (line 52) | @Override
method getTransactionSynchronizationRegistry (line 57) | @Override
method getTransactionIntegration (line 62) | @Override
FILE: components/websocket/jetty/src/main/java/com/kumuluz/ee/websocket/jetty/WebSocketComponent.java
class WebSocketComponent (line 34) | @EeComponentDef(name = "Jetty", type = EeComponentType.WEBSOCKET)
method init (line 40) | @Override
method load (line 44) | @Override
FILE: core/src/main/java/com/kumuluz/ee/EeApplication.java
class EeApplication (line 56) | public class EeApplication {
method EeApplication (line 64) | public EeApplication() {
method EeApplication (line 69) | public EeApplication(EeConfig eeConfig) {
method main (line 76) | public static void main(String args[]) {
method getServer (line 81) | public KumuluzServer getServer() {
method initialize (line 85) | private void initialize() {
method collectScanLibraries (line 333) | private List<String> collectScanLibraries(List<Extension> extensions) {
method processKumuluzServer (line 341) | private void processKumuluzServer(KumuluzServer kumuluzServer) {
method processEeComponents (line 348) | private List<EeComponentWrapper> processEeComponents(List<Component> c...
method processGroupEeExtensions (line 465) | private <E extends Extension> List<ExtensionWrapper<E>> processGroupEe...
method processSingleEeExtensions (line 506) | private <E extends Extension> List<ExtensionWrapper<E>> processSingleE...
method processEeExtensionDependencies (line 531) | private <E extends Extension> void processEeExtensionDependencies(List...
method checkRequirements (line 615) | private void checkRequirements() {
FILE: core/src/main/java/com/kumuluz/ee/factories/AgroalDataSourceFactory.java
class AgroalDataSourceFactory (line 33) | public class AgroalDataSourceFactory {
method createDataSource (line 37) | public static AgroalDataSource createDataSource(DataSourceConfig dsc, ...
method createXaDataSource (line 73) | public static AgroalDataSource createXaDataSource(XaDataSourceConfig x...
method setDatabaseCredentials (line 101) | private static void setDatabaseCredentials(AgroalConnectionFactoryConf...
method setConnectionPoolConfiguration (line 111) | private static void setConnectionPoolConfiguration(AgroalConnectionPoo...
method setJdbcTransactionIsolation (line 198) | private static void setJdbcTransactionIsolation(AgroalConnectionFactor...
method warnMessageAgroalFeature (line 224) | private static void warnMessageAgroalFeature(String propertyName, bool...
method warnMessageDepreciatedProperty (line 230) | private static void warnMessageDepreciatedProperty(String propertyName) {
FILE: core/src/main/java/com/kumuluz/ee/factories/EeConfigFactory.java
class EeConfigFactory (line 35) | public class EeConfigFactory {
method buildEeConfig (line 43) | public static EeConfig buildEeConfig() {
method isEeConfigValid (line 368) | public static Boolean isEeConfigValid(EeConfig eeConfig) {
method createServerConnectorConfigBuilder (line 405) | private static ServerConnectorConfig.Builder createServerConnectorConf...
method createMailServiceConfigBuilder (line 455) | private static MailServiceConfig.Builder createMailServiceConfigBuilde...
method createGzipConfigBuilder (line 482) | private static GzipConfig.Builder createGzipConfigBuilder(String prefi...
method getConfigList (line 509) | private static Optional<List<String>> getConfigList(String key) {
FILE: core/src/main/java/com/kumuluz/ee/factories/JtaXADataSourceFactory.java
class JtaXADataSourceFactory (line 32) | @Deprecated
method buildJtaXADataSourceWrapper (line 35) | public static NonJtaXADataSourceWrapper buildJtaXADataSourceWrapper(XA...
FILE: core/src/main/java/com/kumuluz/ee/loaders/ComponentLoader.java
class ComponentLoader (line 43) | public class ComponentLoader {
method loadComponents (line 49) | public static List<Component> loadComponents() {
method scanForAvailableComponents (line 78) | private static List<Component> scanForAvailableComponents() {
FILE: core/src/main/java/com/kumuluz/ee/loaders/ConfigExtensionLoader.java
class ConfigExtensionLoader (line 37) | public class ConfigExtensionLoader {
method loadExtensions (line 41) | public static List<ConfigExtension> loadExtensions() {
method scanForAvailableExtensions (line 79) | private static List<ConfigExtension> scanForAvailableExtensions() {
FILE: core/src/main/java/com/kumuluz/ee/loaders/ExtensionLoader.java
class ExtensionLoader (line 37) | public class ExtensionLoader {
method loadExtensions (line 41) | public static List<Extension> loadExtensions() {
method scanForAvailableExtensions (line 88) | private static List<Extension> scanForAvailableExtensions() {
FILE: core/src/main/java/com/kumuluz/ee/loaders/LogsExtensionLoader.java
class LogsExtensionLoader (line 38) | public class LogsExtensionLoader {
method loadExtension (line 40) | public static Optional<LogsExtension> loadExtension() {
method scanForAvailableExtensions (line 99) | private static List<LogsExtension> scanForAvailableExtensions() {
FILE: core/src/main/java/com/kumuluz/ee/loaders/ServerLoader.java
class ServerLoader (line 38) | public class ServerLoader {
method loadServletServer (line 42) | public static KumuluzServer loadServletServer() {
method scanForAvailableServers (line 90) | private static List<KumuluzServer> scanForAvailableServers() {
FILE: core/src/test/java/com/kumuluz/ee/test/ExampleTest.java
class ExampleTest (line 29) | public class ExampleTest {
method testAddition (line 31) | @Test
FILE: servlet/jetty/src/main/java/com/kumuluz/ee/jetty/JettyAttributes.java
class JettyAttributes (line 27) | public class JettyAttributes {
FILE: servlet/jetty/src/main/java/com/kumuluz/ee/jetty/JettyFactory.java
class JettyFactory (line 45) | public class JettyFactory {
method JettyFactory (line 51) | public JettyFactory(ServerConfig serverConfig) {
method create (line 56) | public Server create() {
method createThreadPool (line 66) | private ThreadPool createThreadPool() {
method createConnectors (line 79) | private Connector[] createConnectors(final Server server) {
FILE: servlet/jetty/src/main/java/com/kumuluz/ee/jetty/JettyJarClasspathUtil.java
class JettyJarClasspathUtil (line 34) | public class JettyJarClasspathUtil {
method getExtraClasspath (line 36) | public static String getExtraClasspath(List<String> scanLibraries) {
FILE: servlet/jetty/src/main/java/com/kumuluz/ee/jetty/JettyServletServer.java
class JettyServletServer (line 64) | @ServerDef(value = "Jetty", provides = {EeComponentType.SERVLET})
method initServer (line 75) | @Override
method startServer (line 81) | @Override
method stopServer (line 100) | @Override
method initWebContext (line 119) | @Override
method getServerConfig (line 238) | @Override
method setServerConfig (line 244) | @Override
method registerServlet (line 250) | @Override
method registerServlet (line 256) | @Override
method registerServlet (line 263) | @Override
method registerListener (line 286) | @Override
method registerFilter (line 298) | @Override
method registerFilter (line 304) | @Override
method registerFilter (line 310) | @Override
method registerFilter (line 316) | @Override
method registerDataSource (line 336) | @Override
method getRegisteredServlets (line 348) | @Override
method registerResource (line 359) | @Override
method registerTransactionManager (line 371) | @Override
method createJettyFactory (line 380) | private JettyFactory createJettyFactory() {
method createConfigurations (line 385) | private List<String> createConfigurations() {
FILE: tools/loader/src/main/java/com/kumuluz/ee/loader/EeBootLoader.java
class EeBootLoader (line 32) | public class EeBootLoader {
method main (line 34) | public static void main(String[] args) throws Throwable {
method launch (line 52) | private static void launch(String[] args, String mainClass) throws Thr...
FILE: tools/loader/src/main/java/com/kumuluz/ee/loader/EeClassLoader.java
class EeClassLoader (line 50) | public class EeClassLoader extends ClassLoader {
method EeClassLoader (line 69) | public EeClassLoader() {
method EeClassLoader (line 76) | public EeClassLoader(ClassLoader parent) {
method createTempDirectory (line 141) | private void createTempDirectory() throws URISyntaxException {
method createFile (line 172) | private File createFile(JarEntry jarEntry, InputStream is) throws EeCl...
method createJarFile (line 208) | private File createJarFile(JarEntryInfo jarEntryInfo) throws EeClassLo...
method extractMainJar (line 224) | private void extractMainJar(JarFileInfo jarFileInfo) throws URISyntaxE...
method loadJar (line 252) | private void loadJar(final JarFileInfo jarFileInfo) {
method findJarEntry (line 287) | private JarEntryInfo findJarEntry(String name) {
method findFile (line 298) | private URL findFile(String name) {
method findJarEntries (line 311) | private List<JarEntryInfo> findJarEntries(String name) {
method findFiles (line 327) | private List<URL> findFiles(String name) {
method findJarNativeEntry (line 356) | private JarEntryInfo findJarNativeEntry(String libraryName) {
method findJarClass (line 387) | private Class<?> findJarClass(String className) throws EeClassLoaderEx...
method isLaunchedFromJar (line 420) | private boolean isLaunchedFromJar() {
method invokeMain (line 427) | public void invokeMain(String className, String[] args) throws Throwab...
method loadClass (line 446) | @Override
method findClass (line 502) | @Override
method findResource (line 507) | @Override
method getResources (line 537) | @Override
method findResources (line 542) | @Override
method findLibrary (line 570) | @Override
method getJarFilesLocations (line 595) | public List<String> getJarFilesLocations(List<String> filenames) {
method definePackage (line 654) | private void definePackage(String className, JarEntryInfo jarEntryInfo...
method normalizeResourceName (line 676) | private String normalizeResourceName(String name) {
method chmod777 (line 680) | private void chmod777(File file) {
method getFilenameForLog (line 686) | private String getFilenameForLog(File file) {
method debug (line 696) | private void debug(String msg) {
FILE: tools/loader/src/main/java/com/kumuluz/ee/loader/exception/EeClassLoaderException.java
class EeClassLoaderException (line 27) | public class EeClassLoaderException extends RuntimeException {
method EeClassLoaderException (line 29) | public EeClassLoaderException(String message) {
method EeClassLoaderException (line 33) | public EeClassLoaderException(String message, Throwable cause) {
method getMessageAll (line 37) | public String getMessageAll() {
FILE: tools/loader/src/main/java/com/kumuluz/ee/loader/jar/FileInfo.java
class FileInfo (line 29) | public class FileInfo {
method FileInfo (line 34) | public FileInfo(File file, String simpleName) {
method getFile (line 43) | public File getFile() {
method setFile (line 47) | public void setFile(File file) {
method getSimpleName (line 51) | public String getSimpleName() {
method setSimpleName (line 55) | public void setSimpleName(String simpleName) {
FILE: tools/loader/src/main/java/com/kumuluz/ee/loader/jar/JarEntryInfo.java
class JarEntryInfo (line 41) | public class JarEntryInfo {
method JarEntryInfo (line 46) | public JarEntryInfo(JarFileInfo jarFileInfo, JarEntry jarEntry) {
method getJarFileInfo (line 51) | public JarFileInfo getJarFileInfo() {
method setJarFileInfo (line 55) | public void setJarFileInfo(JarFileInfo jarFileInfo) {
method getJarEntry (line 59) | public JarEntry getJarEntry() {
method setJarEntry (line 63) | public void setJarEntry(JarEntry jarEntry) {
method getURL (line 67) | public URL getURL() { // used in findResource() and findResources()
method getName (line 77) | public String getName() { // used in createTempFile() and loadJar()
method getJarBytes (line 84) | public byte[] getJarBytes() throws EeClassLoaderException {
method toString (line 114) | @Override
FILE: tools/loader/src/main/java/com/kumuluz/ee/loader/jar/JarFileInfo.java
class JarFileInfo (line 38) | public class JarFileInfo {
method JarFileInfo (line 57) | public JarFileInfo(JarFile jarFile, String simpleName, JarFileInfo jar...
method getSpecificationTitle (line 72) | public String getSpecificationTitle() {
method getSpecificationVersion (line 76) | public String getSpecificationVersion() {
method getSpecificationVendor (line 80) | public String getSpecificationVendor() {
method getImplementationTitle (line 84) | public String getImplementationTitle() {
method getImplementationVersion (line 88) | public String getImplementationVersion() {
method getImplementationVendor (line 92) | public String getImplementationVendor() {
method getSealURL (line 96) | public URL getSealURL() {
method getJarFile (line 108) | public JarFile getJarFile() {
method setJarFile (line 112) | public void setJarFile(JarFile jarFile) {
method getSimpleName (line 116) | public String getSimpleName() {
method setSimpleName (line 120) | public void setSimpleName(String simpleName) {
method getFileDeleteOnExit (line 124) | public File getFileDeleteOnExit() {
method setFileDeleteOnExit (line 128) | public void setFileDeleteOnExit(File fileDeleteOnExit) {
method getManifest (line 132) | public Manifest getManifest() {
method setManifest (line 136) | public void setManifest(Manifest manifest) {
method getProtectionDomain (line 140) | public ProtectionDomain getProtectionDomain() {
method setProtectionDomain (line 144) | public void setProtectionDomain(ProtectionDomain protectionDomain) {
FILE: tools/maven-plugin/src/main/java/com/kumuluz/ee/maven/plugin/AbstractCopyDependenciesMojo.java
class AbstractCopyDependenciesMojo (line 42) | public abstract class AbstractCopyDependenciesMojo extends AbstractMojo {
method copyDependencies (line 57) | protected void copyDependencies()
method copyDependencies (line 67) | protected void copyDependencies(String outputSubdirectory)
method copyOrCreateWebapp (line 96) | private void copyOrCreateWebapp() throws MojoExecutionException {
FILE: tools/maven-plugin/src/main/java/com/kumuluz/ee/maven/plugin/AbstractPackageMojo.java
class AbstractPackageMojo (line 45) | public abstract class AbstractPackageMojo extends AbstractCopyDependenci...
method repackage (line 58) | protected void repackage() throws MojoExecutionException {
method checkPrecoditions (line 70) | private void checkPrecoditions() throws MojoExecutionException {
method unpackDependencies (line 79) | private void unpackDependencies() throws MojoExecutionException {
method getPluginJarPath (line 143) | private URI getPluginJarPath() throws MojoExecutionException {
method packageJar (line 158) | private void packageJar() throws MojoExecutionException {
method renameJars (line 189) | private void renameJars() throws MojoExecutionException {
FILE: tools/maven-plugin/src/main/java/com/kumuluz/ee/maven/plugin/CopyDependenciesMojo.java
class CopyDependenciesMojo (line 35) | @Mojo(
method execute (line 43) | @Override
FILE: tools/maven-plugin/src/main/java/com/kumuluz/ee/maven/plugin/MojoConstants.java
class MojoConstants (line 29) | public class MojoConstants {
FILE: tools/maven-plugin/src/main/java/com/kumuluz/ee/maven/plugin/RepackageMojo.java
class RepackageMojo (line 35) | @Mojo(
method execute (line 44) | @Override
FILE: tools/maven-plugin/src/main/java/com/kumuluz/ee/maven/plugin/RunExplodedMojo.java
class RunExplodedMojo (line 39) | @Mojo(
method execute (line 47) | @Override
FILE: tools/maven-plugin/src/main/java/com/kumuluz/ee/maven/plugin/RunJarMojo.java
class RunJarMojo (line 45) | public class RunJarMojo extends AbstractPackageMojo {
method execute (line 53) | @Override
Condensed preview — 261 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (845K chars).
[
{
"path": ".github/workflows/kumuluzee-ci.yml",
"chars": 2033,
"preview": "name: KumuluzEE CI\n\non: [push, pull_request]\n\njobs:\n test:\n name: Build and test\n runs-on: 'ubuntu-latest'\n\n s"
},
{
"path": "CONTRIBUTING.md",
"chars": 3952,
"preview": "# Contributing to KumuluzEE\n\n♥ [KumuluzEE](https://github.com/kumuluz/KumuluzEE) and want to get involved?\nThanks! There"
},
{
"path": "LICENSE",
"chars": 1098,
"preview": "The MIT License (MIT)\n\nCopyright (c) 2015 Sunesis d.o.o. and Tilen Faganel\n\nPermission is hereby granted, free of charge"
},
{
"path": "README.md",
"chars": 18393,
"preview": "# KumuluzEE\n\n\n> Lightweight open"
},
{
"path": "bom/pom.xml",
"chars": 7387,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "common/pom.xml",
"chars": 2170,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/Component.java",
"chars": 1260,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/ConfigExtension.java",
"chars": 1507,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/Extension.java",
"chars": 1466,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/KumuluzServer.java",
"chars": 1377,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/LogsExtension.java",
"chars": 1314,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/ServletServer.java",
"chars": 2466,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/attributes/ClasspathAttributes.java",
"chars": 1366,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/config/DataSourceConfig.java",
"chars": 4140,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/config/DataSourcePoolConfig.java",
"chars": 9718,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/config/DevConfig.java",
"chars": 2328,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/config/EeConfig.java",
"chars": 5592,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/config/EnvConfig.java",
"chars": 1536,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/config/GzipConfig.java",
"chars": 4997,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/config/MailServiceConfig.java",
"chars": 2750,
"preview": "package com.kumuluz.ee.common.config;\n\npublic class MailServiceConfig {\n\n public static class Builder {\n\n priv"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/config/MailSessionConfig.java",
"chars": 2141,
"preview": "package com.kumuluz.ee.common.config;\n\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.Map;\n\npu"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/config/ServerConfig.java",
"chars": 5432,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/config/ServerConnectorConfig.java",
"chars": 6446,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/config/XaDataSourceConfig.java",
"chars": 3500,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/datasources/NonJtaXAConnectionWrapper.java",
"chars": 12229,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/datasources/NonJtaXADataSourceWrapper.java",
"chars": 4062,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/datasources/XADataSourceBuilder.java",
"chars": 4287,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/datasources/XADataSourceWrapper.java",
"chars": 1155,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentDef.java",
"chars": 1366,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentDependencies.java",
"chars": 1364,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentDependency.java",
"chars": 1311,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentOptional.java",
"chars": 1306,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentOptionals.java",
"chars": 1359,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/dependencies/EeComponentType.java",
"chars": 1592,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/dependencies/EeExtensionDef.java",
"chars": 1358,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/dependencies/EeExtensionGroup.java",
"chars": 769,
"preview": "package com.kumuluz.ee.common.dependencies;\n\npublic class EeExtensionGroup {\n\n public final static String CONFIG = \"c"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/dependencies/ServerDef.java",
"chars": 1379,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/exceptions/ComponentsException.java",
"chars": 1284,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/exceptions/KumuluzServerException.java",
"chars": 1293,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/filters/PoweredByFilter.java",
"chars": 1694,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/runtime/EeRuntime.java",
"chars": 2206,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/runtime/EeRuntimeComponent.java",
"chars": 1540,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/runtime/EeRuntimeExtension.java",
"chars": 1458,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/runtime/EeRuntimeInternal.java",
"chars": 2320,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/servlet/ServletWrapper.java",
"chars": 1401,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/utils/ClassUtils.java",
"chars": 1376,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/utils/EnvUtils.java",
"chars": 1828,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/utils/ResourceUtils.java",
"chars": 4069,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/utils/StringUtils.java",
"chars": 2778,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/wrapper/ComponentWrapper.java",
"chars": 2553,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/wrapper/EeComponentWrapper.java",
"chars": 2161,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/wrapper/ExtensionWrapper.java",
"chars": 1680,
"preview": "package com.kumuluz.ee.common.wrapper;\n\nimport com.kumuluz.ee.common.Extension;\nimport com.kumuluz.ee.common.dependencie"
},
{
"path": "common/src/main/java/com/kumuluz/ee/common/wrapper/KumuluzServerWrapper.java",
"chars": 2092,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/configuration/ConfigurationDecoder.java",
"chars": 1726,
"preview": "/*\n * Copyright (c) 2014-2019 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/configuration/ConfigurationListener.java",
"chars": 1158,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/configuration/ConfigurationSource.java",
"chars": 3578,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/configuration/enums/ConfigurationValueType.java",
"chars": 1181,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/configuration/sources/EnvironmentConfigurationSource.java",
"chars": 8294,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/configuration/sources/FileConfigurationSource.java",
"chars": 14695,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/configuration/sources/SystemPropertyConfigurationSource.java",
"chars": 2478,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/configuration/utils/ConfigurationDecoderUtils.java",
"chars": 1596,
"preview": "/*\n * Copyright (c) 2014-2019 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/configuration/utils/ConfigurationDispatcher.java",
"chars": 1739,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/configuration/utils/ConfigurationImpl.java",
"chars": 3111,
"preview": "/*\n * Copyright (c) 2014-2019 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/configuration/utils/ConfigurationInterpolationUtil.java",
"chars": 3092,
"preview": "package com.kumuluz.ee.configuration.utils;\n\nimport java.util.NoSuchElementException;\nimport java.util.Optional;\nimport "
},
{
"path": "common/src/main/java/com/kumuluz/ee/configuration/utils/ConfigurationSourceUtils.java",
"chars": 3041,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/configuration/utils/ConfigurationUtil.java",
"chars": 9197,
"preview": "/*\n * Copyright (c) 2014-2019 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "common/src/main/java/com/kumuluz/ee/logs/LogDeferrer.java",
"chars": 1028,
"preview": "package com.kumuluz.ee.logs;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.function.Consumer;\nimp"
},
{
"path": "common/src/main/java/com/kumuluz/ee/logs/impl/JavaUtilConsoleHandler.java",
"chars": 1235,
"preview": "package com.kumuluz.ee.logs.impl;\n\nimport java.io.UnsupportedEncodingException;\nimport java.util.logging.*;\n\npublic clas"
},
{
"path": "common/src/main/java/com/kumuluz/ee/logs/impl/JavaUtilDefaultLogConfigurator.java",
"chars": 1224,
"preview": "package com.kumuluz.ee.logs.impl;\n\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.util.logging.*;\n\n"
},
{
"path": "common/src/main/java/com/kumuluz/ee/logs/impl/JavaUtilFormatter.java",
"chars": 1349,
"preview": "package com.kumuluz.ee.logs.impl;\n\nimport java.io.PrintWriter;\nimport java.io.StringWriter;\nimport java.time.Instant;\nim"
},
{
"path": "common/src/main/resources/META-INF/kumuluzee/versions.properties",
"chars": 26,
"preview": "version=${project.version}"
},
{
"path": "common/src/main/resources/META-INF/services/com.kumuluz.ee.configuration.ConfigurationSource",
"chars": 201,
"preview": "com.kumuluz.ee.configuration.sources.EnvironmentConfigurationSource\ncom.kumuluz.ee.configuration.sources.FileConfigurati"
},
{
"path": "common/src/test/java/com/kumuluz/ee/configuration/utils/ConfigurationInterpolationUtilTest.java",
"chars": 6106,
"preview": "package com.kumuluz.ee.configuration.utils;\n\nimport org.junit.Test;\n\nimport java.util.Map;\nimport java.util.Optional;\nim"
},
{
"path": "components/bean-validation/hibernate-validator/pom.xml",
"chars": 4241,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/bean-validation/hibernate-validator/src/main/java/com/kumuluz/ee/beanvalidation/BeanValidationComponent.java",
"chars": 1892,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/bean-validation/hibernate-validator/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component",
"chars": 53,
"preview": "com.kumuluz.ee.beanvalidation.BeanValidationComponent"
},
{
"path": "components/bean-validation/hibernate-validator/src/test/java/com/kumuluz/ee/beanvalidation/test/HibernateValidatorTest.java",
"chars": 3188,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/bean-validation/hibernate-validator/src/test/java/com/kumuluz/ee/beanvalidation/test/beans/Project.java",
"chars": 1746,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/bean-validation/hibernate-validator/src/test/java/com/kumuluz/ee/beanvalidation/test/beans/User.java",
"chars": 2939,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/bean-validation/pom.xml",
"chars": 750,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/cdi/pom.xml",
"chars": 699,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/cdi/weld/pom.xml",
"chars": 3066,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/cdi/weld/src/main/java/com/kumuluz/ee/cdi/CdiComponent.java",
"chars": 1701,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/cdi/weld/src/main/java/com/kumuluz/ee/configuration/cdi/ConfigBundle.java",
"chars": 1510,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/cdi/weld/src/main/java/com/kumuluz/ee/configuration/cdi/ConfigValue.java",
"chars": 1630,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/cdi/weld/src/main/java/com/kumuluz/ee/configuration/cdi/interceptors/ConfigBundleInterceptor.java",
"chars": 16310,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/cdi/weld/src/main/java/com/kumuluz/ee/configuration/cdi/producers/ConfigurationUtilProducer.java",
"chars": 1406,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/cdi/weld/src/main/java/com/kumuluz/ee/configuration/cdi/producers/EeConfigProducer.java",
"chars": 1364,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/cdi/weld/src/main/java/com/kumuluz/ee/runtime/cdi/producers/EeRuntimeProducer.java",
"chars": 1363,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/cdi/weld/src/main/resources/META-INF/beans.xml",
"chars": 303,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<beans xmlns=\"http://xmlns.jcp.org/xml/ns/javaee\" xmlns:xsi=\"http://www.w3.org/20"
},
{
"path": "components/cdi/weld/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component",
"chars": 31,
"preview": "com.kumuluz.ee.cdi.CdiComponent"
},
{
"path": "components/el/pom.xml",
"chars": 695,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/el/uel/pom.xml",
"chars": 990,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/el/uel/src/main/java/com/kumuluz/ee/el/ElComponent.java",
"chars": 1695,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/el/uel/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component",
"chars": 29,
"preview": "com.kumuluz.ee.el.ElComponent"
},
{
"path": "components/javamail/pom.xml",
"chars": 712,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/javamail/ri/pom.xml",
"chars": 1024,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/javamail/ri/src/main/java/com/kumuluz/ee/javamail/ri/JavaMailComponent.java",
"chars": 1372,
"preview": "package com.kumuluz.ee.javamail.ri;\n\nimport com.kumuluz.ee.common.Component;\nimport com.kumuluz.ee.common.ServletServer;"
},
{
"path": "components/javamail/ri/src/main/java/com/kumuluz/ee/javamail/ri/MailSessionFactory.java",
"chars": 3208,
"preview": "package com.kumuluz.ee.javamail.ri;\n\nimport com.kumuluz.ee.common.config.MailServiceConfig;\nimport com.kumuluz.ee.common"
},
{
"path": "components/javamail/ri/src/main/java/com/kumuluz/ee/javamail/ri/ManagedPasswordAuthenticator.java",
"chars": 1274,
"preview": "package com.kumuluz.ee.javamail.ri;\n\nimport com.kumuluz.ee.common.config.MailServiceConfig;\nimport com.kumuluz.ee.common"
},
{
"path": "components/javamail/ri/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component",
"chars": 44,
"preview": "com.kumuluz.ee.javamail.ri.JavaMailComponent"
},
{
"path": "components/jax-rs/jersey/pom.xml",
"chars": 4772,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jax-rs/jersey/src/main/java/com/kumuluz/ee/jaxrs/JaxRsComponent.java",
"chars": 1835,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jax-rs/jersey/src/main/java/com/kumuluz/ee/jaxrs/Jetty10ConnectorProvider.java",
"chars": 1562,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jax-rs/jersey/src/main/java/org/glassfish/jersey/jetty/connector/Jetty10Connector.java",
"chars": 22613,
"preview": "/*\n * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.\n *\n * This program and the accompanyin"
},
{
"path": "components/jax-rs/jersey/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component",
"chars": 35,
"preview": "com.kumuluz.ee.jaxrs.JaxRsComponent"
},
{
"path": "components/jax-rs/jersey/src/main/resources/META-INF/services/org.glassfish.jersey.client.spi.ConnectorProvider",
"chars": 46,
"preview": "com.kumuluz.ee.jaxrs.Jetty10ConnectorProvider\n"
},
{
"path": "components/jax-rs/pom.xml",
"chars": 710,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jax-ws/cxf/pom.xml",
"chars": 3395,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/JaxWsComponent.java",
"chars": 3075,
"preview": "/*\n * Copyright (c) 2014-2018 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/KumuluzCXFServlet.java",
"chars": 2148,
"preview": "/*\n * Copyright (c) 2014-2018 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/annotations/WsContext.java",
"chars": 1546,
"preview": "/*\n * Copyright (c) 2014-2018 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/processor/AnnotationProcessorUtil.java",
"chars": 3280,
"preview": "/*\n * Copyright (c) 2014-2018 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/processor/JaxWsAnnotationProcessor.java",
"chars": 3083,
"preview": "/*\n * Copyright (c) 2014-2018 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/processor/JaxWsAnnotationProcessorUtil.java",
"chars": 4521,
"preview": "/*\n * Copyright (c) 2014-2018 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/ws/CXFWebservicePublisher.java",
"chars": 5598,
"preview": "/*\n * Copyright (c) 2014-2018 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/ws/Endpoint.java",
"chars": 2368,
"preview": "/*\n * Copyright (c) 2014-2018 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/ws/InjectionHelper.java",
"chars": 2328,
"preview": "/*\n * Copyright (c) 2014-2018 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/ws/KumuluzWSInvoker.java",
"chars": 3132,
"preview": "/*\n * Copyright (c) 2014-2018 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/ws/KumuluzWebServiceContext.java",
"chars": 2803,
"preview": "/*\n * Copyright (c) 2014-2018 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jax-ws/cxf/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component",
"chars": 39,
"preview": "com.kumuluz.ee.jaxws.cxf.JaxWsComponent"
},
{
"path": "components/jax-ws/cxf/src/main/resources/META-INF/services/javax.annotation.processing.Processor",
"chars": 59,
"preview": "com.kumuluz.ee.jaxws.cxf.processor.JaxWsAnnotationProcessor"
},
{
"path": "components/jax-ws/cxf/src/test/java/com/kumuluz/ee/jaxws/cxf/impl/NoWsContextAnnotatedEndpointBean.java",
"chars": 132,
"preview": "package com.kumuluz.ee.jaxws.cxf.impl;\n\nimport javax.jws.WebService;\n\n@WebService\npublic class NoWsContextAnnotatedEndpo"
},
{
"path": "components/jax-ws/cxf/src/test/java/com/kumuluz/ee/jaxws/cxf/impl/WebServiceContextBean.java",
"chars": 1197,
"preview": "package com.kumuluz.ee.jaxws.cxf.impl;\n\nimport org.apache.cxf.jaxws.handler.logical.LogicalMessageContextImpl;\nimport or"
},
{
"path": "components/jax-ws/cxf/src/test/java/com/kumuluz/ee/jaxws/cxf/impl/WsContextAnnotatedEndpoint.java",
"chars": 88,
"preview": "package com.kumuluz.ee.jaxws.cxf.impl;\n\npublic interface WsContextAnnotatedEndpoint {\n}\n"
},
{
"path": "components/jax-ws/cxf/src/test/java/com/kumuluz/ee/jaxws/cxf/impl/WsContextAnnotatedEndpointBean.java",
"chars": 973,
"preview": "package com.kumuluz.ee.jaxws.cxf.impl;\n\nimport com.kumuluz.ee.jaxws.cxf.annotations.WsContext;\n\nimport javax.jws.WebServ"
},
{
"path": "components/jax-ws/cxf/src/test/java/com/kumuluz/ee/jaxws/cxf/processor/JaxWsAnnotationProcessorUtilTest.java",
"chars": 3925,
"preview": "package com.kumuluz.ee.jaxws.cxf.processor;\n\nimport com.kumuluz.ee.jaxws.cxf.impl.NoWsContextAnnotatedEndpointBean;\nimpo"
},
{
"path": "components/jax-ws/cxf/src/test/java/com/kumuluz/ee/jaxws/cxf/ws/KumuluzWebServiceContextTest.java",
"chars": 1279,
"preview": "package com.kumuluz.ee.jaxws.cxf.ws;\n\nimport com.kumuluz.ee.jaxws.cxf.impl.WebServiceContextBean;\nimport org.junit.Test;"
},
{
"path": "components/jax-ws/cxf/src/test/resources/META-INF/ws/java.lang.Object",
"chars": 0,
"preview": ""
},
{
"path": "components/jax-ws/metro/pom.xml",
"chars": 1414,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jax-ws/metro/src/main/java/com/kumuluz/ee/jaxws/metro/JaxWsComponent.java",
"chars": 1718,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jax-ws/metro/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component",
"chars": 41,
"preview": "com.kumuluz.ee.jaxws.metro.JaxWsComponent"
},
{
"path": "components/jax-ws/pom.xml",
"chars": 738,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jpa/common/pom.xml",
"chars": 1396,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/PersistenceSettings.java",
"chars": 1166,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/PersistenceUnitHolder.java",
"chars": 2812,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/PersistenceWrapper.java",
"chars": 1644,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/TransactionType.java",
"chars": 1106,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/exceptions/NoDefaultPersistenceUnit.java",
"chars": 1353,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/injection/EntityManagerWrapper.java",
"chars": 1196,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/injection/JpaService.java",
"chars": 5076,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/injection/NonTxEntityManagerWrapper.java",
"chars": 523,
"preview": "package com.kumuluz.ee.jpa.common.injection;\n\nimport javax.persistence.EntityManager;\n\n/**\n * @author Tilen Faganel\n * @"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/injection/PersistenceContextResource.java",
"chars": 1652,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/injection/PersistenceContextResourceFactory.java",
"chars": 2414,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/injection/PersistenceUnitResource.java",
"chars": 1525,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/injection/PersistenceUnitResourceFactory.java",
"chars": 1617,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/NonTxEntityManagerHolder.java",
"chars": 1317,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/NonTxQueryWrapper.java",
"chars": 5661,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/NonTxStoredProcedureQueryWrapper.java",
"chars": 7568,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/NonTxTypedQueryWrapper.java",
"chars": 5986,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/SyncEntityManagerWrapper.java",
"chars": 8141,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/TxScopedEntityManager.java",
"chars": 14872,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/TxScopedEntityManagerFactory.java",
"chars": 2154,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/TxScopedEntityManagerWrapper.java",
"chars": 1896,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/jta/TxSynchronization.java",
"chars": 1505,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/java/com/kumuluz/ee/jpa/common/utils/PersistenceUtils.java",
"chars": 4265,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/common/src/main/resources/META-INF/services/org.jboss.weld.bootstrap.api.Service",
"chars": 46,
"preview": "com.kumuluz.ee.jpa.common.injection.JpaService"
},
{
"path": "components/jpa/eclipselink/pom.xml",
"chars": 1797,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jpa/eclipselink/src/main/java/com/kumuluz/ee/jpa/eclipselink/EclipseLinkSettings.java",
"chars": 1726,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/eclipselink/src/main/java/com/kumuluz/ee/jpa/eclipselink/JpaComponent.java",
"chars": 2171,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/eclipselink/src/main/java/com/kumuluz/ee/jpa/eclipselink/KumuluzPlatform.java",
"chars": 1484,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/eclipselink/src/main/java/com/kumuluz/ee/jpa/eclipselink/KumuluzTransactionController.java",
"chars": 1465,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/eclipselink/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component",
"chars": 43,
"preview": "com.kumuluz.ee.jpa.eclipselink.JpaComponent"
},
{
"path": "components/jpa/hibernate/pom.xml",
"chars": 2827,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jpa/hibernate/src/main/java/com/kumuluz/ee/jpa/hibernate/JpaComponent.java",
"chars": 1727,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jpa/hibernate/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component",
"chars": 41,
"preview": "com.kumuluz.ee.jpa.hibernate.JpaComponent"
},
{
"path": "components/jpa/pom.xml",
"chars": 773,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jsf/mojarra/pom.xml",
"chars": 1323,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jsf/mojarra/src/main/java/com/kumuluz/ee/jsf/mojarra/JsfComponent.java",
"chars": 1939,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jsf/mojarra/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component",
"chars": 39,
"preview": "com.kumuluz.ee.jsf.mojarra.JsfComponent"
},
{
"path": "components/jsf/pom.xml",
"chars": 702,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/json-b/pom.xml",
"chars": 709,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/json-b/yasson/pom.xml",
"chars": 2345,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/json-b/yasson/src/main/java/com/kumuluz/ee/jsonb/yasson/JsonBComponent.java",
"chars": 881,
"preview": "package com.kumuluz.ee.jsonb.yasson;\n\nimport com.kumuluz.ee.common.Component;\nimport com.kumuluz.ee.common.config.EeConf"
},
{
"path": "components/json-b/yasson/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component",
"chars": 42,
"preview": "com.kumuluz.ee.jsonb.yasson.JsonBComponent"
},
{
"path": "components/json-p/jsonp/pom.xml",
"chars": 1803,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/json-p/jsonp/src/main/java/com/kumuluz/ee/jsonp/JsonPComponent.java",
"chars": 1712,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/json-p/jsonp/src/main/java/com/kumuluz/ee/jsonp/configuration/utils/JsonConfigurationUtil.java",
"chars": 7869,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/json-p/jsonp/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component",
"chars": 35,
"preview": "com.kumuluz.ee.jsonp.JsonPComponent"
},
{
"path": "components/json-p/pom.xml",
"chars": 709,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jsp/jetty/pom.xml",
"chars": 1572,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jsp/jetty/src/main/java/com/kumuluz/ee/jsp/JspComponent.java",
"chars": 1918,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jsp/jetty/src/main/resources/META-INF/services/com.kumuluz.ee.common.Component",
"chars": 31,
"preview": "com.kumuluz.ee.jsp.JspComponent"
},
{
"path": "components/jsp/jetty/src/test/java/com/kumuluz/ee/jetty/jsp/test/JspTest.java",
"chars": 1127,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jsp/jetty/src/test/java/com/kumuluz/ee/jetty/jsp/test/beans/TimeBean.java",
"chars": 1346,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jsp/jetty/src/test/java/com/kumuluz/ee/jetty/jsp/test/beans/UserBean.java",
"chars": 2753,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jsp/jetty/src/test/resources/webapp/index.jsp",
"chars": 908,
"preview": "<jsp:useBean id=\"user\" class=\"com.kumuluz.ee.jetty.jsp.test.beans.UserBean\" scope=\"session\"/>\n<jsp:useBean id=\"time\" cla"
},
{
"path": "components/jsp/pom.xml",
"chars": 700,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jta/common/pom.xml",
"chars": 2685,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jta/common/src/main/java/com/kumuluz/ee/jta/common/JtaProvider.java",
"chars": 2494,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jta/common/src/main/java/com/kumuluz/ee/jta/common/JtaTransactionServices.java",
"chars": 2219,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jta/common/src/main/java/com/kumuluz/ee/jta/common/datasources/JtaXAConnectionWrapper.java",
"chars": 16898,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jta/common/src/main/java/com/kumuluz/ee/jta/common/datasources/JtaXADataSourceWrapper.java",
"chars": 1948,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jta/common/src/main/java/com/kumuluz/ee/jta/common/datasources/XAStatementProxy.java",
"chars": 2857,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jta/common/src/main/java/com/kumuluz/ee/jta/common/exceptions/CannotRetrieveTxException.java",
"chars": 1280,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jta/common/src/main/java/com/kumuluz/ee/jta/common/utils/TxUtils.java",
"chars": 1682,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jta/common/src/main/resources/META-INF/services/org.jboss.weld.bootstrap.api.Service",
"chars": 48,
"preview": "com.kumuluz.ee.jta.common.JtaTransactionServices"
},
{
"path": "components/jta/narayana/pom.xml",
"chars": 2302,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www"
},
{
"path": "components/jta/narayana/src/main/java/com/kumuluz/ee/jta/narayana/JtaComponent.java",
"chars": 2564,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
},
{
"path": "components/jta/narayana/src/main/java/com/kumuluz/ee/jta/narayana/NarayanaJtaProvider.java",
"chars": 2606,
"preview": "/*\n * Copyright (c) 2014-2017 Kumuluz and/or its affiliates\n * and other contributors as indicated by the @author tags"
}
]
// ... and 61 more files (download for full content)
About this extraction
This page contains the full source code of the kumuluz/kumuluzee GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 261 files (774.1 KB), approximately 187.7k tokens, and a symbol index with 1360 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.