Mirror of Apache Deltaspike

Overview

Apache DeltaSpike

Apache DeltaSpike is a suite of portable CDI Extensions intended to make application development easier when working with CDI and Java EE.

Contexts and Dependency Injection is a specification, published as:

Apache DeltaSpike is compatible with all those specification versions. Note that Apache DeltaSpike is not a CDI container itself, but a set of portable Extensions for it!

Some of the key features of Apache DeltaSpike include:

  • A core module that supports component configuration, type safe messaging and internationalization, and exception handling.
  • A suite of utilities to make programmatic bean lookup easier.
  • A plugin for Java SE to bootstrap both JBoss Weld, Apache OpenWebBeans and other CDI containers outside of a JavaEE server.
  • JSF integration, including backporting of JSF 2.2 features for Java EE 6.
  • JPA integration and transaction support.
  • A Data module, to create an easy to use repository pattern on top of JPA.
  • Scheduler integration

Testing support is also provided, to allow you to do low level unit testing of your CDI enabled projects.

Getting Started

The easiest way to get started with DeltaSpike is to use Maven or Gradle as a build tool, as described in configuring in your project

Requirements to Build

  • Git
  • JDK 8
  • Maven

Just run mvn clean install from the top level directory, deltaspike to build the source code.

Comments
  • [DELTASPIKE-1160] Enable other Entity types as return from native repository queries

    [DELTASPIKE-1160] Enable other Entity types as return from native repository queries

    At the moment native queries can only return the same entity type as of the repository.

    A special flag exist on the @Query annotation to disable mapping, this enables the possibility to return unmapped types as String, Date or Integer.

    This change uses the return type of the method with the @Query annotation. If the type is java.util.List, it uses the generic type.

    It should be checked if this behaviour is correct for all JPA providers and if some special logging is needed.

    This change also removes the flag from @Query, I don't know if you want to retain it for backward compatibility reasons and mark it as deprecated.

    opened by Danny02 9
  • add logout button in secured/home.xhtml

    add logout button in secured/home.xhtml

    add logout button in secured/home.xhtml page and logout action in AuthenticationListener.java move @Secured annotation of Pages.java to folder,in order to protected the whole folder

    opened by subaochen 7
  • DELTASPIKE-1091 created separate profiles for Weld versions, changed…

    DELTASPIKE-1091 created separate profiles for Weld versions, changed…

    … docs accordingly.

    I created 3 separate profiles for Weld 1/2/3 respectively. As all three profiles have part of their build management/dependencies in common, I took those out and put them into a separate profile (Weld-common-setup).

    Weld-common-setup is automatically triggered when you use -Dweld.version=... when executing tests (which you do like...all the time? :) ). I couldn't really come up with other solution which would allow to avoid copying this setup into all three profiles. The downside of this is that once you run the tests without -Dweld.version, it will not work.

    Last but not least, I modified docs (build.adoc to be more precise) to reflect these changes.

    Ideas/comments are welcome!

    opened by manovotn 7
  • Test and Bugfix for null entitymanager when first usage is concurrent…

    Test and Bugfix for null entitymanager when first usage is concurrent…

    We discovered entity manager can be null when after startup of application, multiple threads are accessing entitymanager at same time.

    Adding a synchronized will fix this.

    See changes for fix AND test.

    opened by rdomingonl 6
  • Fixes for Payara mnaged profile

    Fixes for Payara mnaged profile

    I identified 3 issues when running mvn clean install -Ppayara-build-managed-4:

    • missing configuration for Payara in data module projects
    • wrong assertion in Java8Test test (correct me if I'm wrong, but the lists should contain the same elements, but not necessarily in the same order)
    • failing tests in ContainerCtrlTckTest

    I'm sending PR for the 1st and 2nd issue. The 3rd issue remains - it seems that there is a problem with Jersey integration. Jersey cannot find a context for JNDI lookup, I will need to investigate further what is the reason. The following commit would fi the issue, but it effectively disables all the tests, as Payara Server 162 uses Weld 2.3.2.Final, which is out of specified range: https://github.com/apache/deltaspike/commit/8166155a3cbdd039b0a2b4bf2a95db3da008e1bf

    opened by OndroMih 5
  • DELTASPIKE-1434 - Further refining relocation patterns

    DELTASPIKE-1434 - Further refining relocation patterns

    Adds additional patterns for

    • javax.el
    • javax.faces
    • javax.servlet
    • javax.decorator

    Example in TomEE looks basically good now... should be mostly complete now, I guess...

    FYI @struberg

    opened by rzo1 4
  • DELTASPIKE-1426: Improve ProxyFactory performance on start

    DELTASPIKE-1426: Improve ProxyFactory performance on start

    Class.getMethond(name, args) is expensive operation, that is used intensively on start, when DeltaspikeProxyFactory generates new proxies. It was used even for checks of public abstract methods of proxy's base class, but this methods cannot be overridden. This patch collects all leave methods and skips them in the check.

    opened by skybber 4
  • Fix an issue which causes

    Fix an issue which causes "Argument bean must not be null". When lazy…

    …Init() is called concurrently, the first thread should be the only one to initialize it; however, deltaSpikeProxyInvocationHandler has been assigned before all initialization jobs are completed, which sometimes causes issue.

    opened by jw941 4
  • DELTASPIKE-767 Comprehensive review of javadoc: core/api

    DELTASPIKE-767 Comprehensive review of javadoc: core/api

    A non-comprehensive overview of changes (some may be from other commits):

    • the term page-bean is rarely used, not used in doc at all, use view-controllers instead
    • meta-data -> metadata
    • English doesn't use that many dash-separated word compounds, rephrased/undashed/split as necessary
    • replace occurrences of vague "the entry" or "current entry" with more descriptive ones like "this view-config"
    • replace occ. of PageBean.class with ViewControllerRef.class
    • make clear what's an example, e.g. SomePage.class instead of PageConfig.class which sounds like an API class
    • page -> view
    • "X allows to [infinitive verb]" is a non-existent construct in English syntax. Corrected all occurrences. It's meaningless in an API documentation (javadoc), since every single method "allows" the user to do something.
    • Moved TODOs from javadocs to comments
    • formatting (120 char line length)
    • reorganized ConfigProperty
    • less of "we", more passive forms
    • refactored BeanProvider's javadoc, warnings about dependent, etc.
    • ConversationSubGroup shouldn't only mention conversation closing
    • added some links (@see) to enable discovery of features in javadoc
    • removed some defensive-sounding design decision arguments ("this class exists because..."), reformulated to convey purpose
    • configuration.ordinal -> deltaspike_ordinal
    • (Solder) Catch -> Exception Control
    opened by rsmeral 4
  • DELTASPIKE-1365: Support extra JPQL comparators in method expressions

    DELTASPIKE-1365: Support extra JPQL comparators in method expressions

    opened by moghaddam 3
  • DELTASPIKE-1207: fix exception handling in DynamicMBeanWrapper.invoke()

    DELTASPIKE-1207: fix exception handling in DynamicMBeanWrapper.invoke()

    Ok, this fix enables the transfer of a exception thrown by the MBean method to the client. Tomorrow I'm going to update the JIRA ticket with some output examples.

    Not sure about the logging removal, though. In my project we have a logging interceptor for MBeans which logs exceptions anyway so another log entry from DynamicMBeanWrapper just "pollutes" the logfile. Exceptions aren't swallowed either, so ...

    opened by famod 3
  • [pom] Add jakarta.el at 3.0.4 for jdk9+ needed for hibernate-validator

    [pom] Add jakarta.el at 3.0.4 for jdk9+ needed for hibernate-validator

    Tested this was required at jdk 17. Was not at jdk 8. Assuming its jdk9+ issue but didn't further confirm. Was originally part of #124 with further information there.

    opened by hazendaz 1
  • Bump tomcat-embed-core from 7.0.54 to 7.0.107 in /deltaspike/cdictrl/servlet

    Bump tomcat-embed-core from 7.0.54 to 7.0.107 in /deltaspike/cdictrl/servlet

    Bumps tomcat-embed-core from 7.0.54 to 7.0.107.

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Bump jetty-server from 8.1.9.v20130131 to 10.0.10 in /deltaspike/cdictrl/servlet

    Bump jetty-server from 8.1.9.v20130131 to 10.0.10 in /deltaspike/cdictrl/servlet

    Bumps jetty-server from 8.1.9.v20130131 to 10.0.10.

    Release notes

    Sourced from jetty-server's releases.

    10.0.10

    Special Thanks to the following Eclipse Jetty community members

    Changelog

    • #8136 - Cherry-pick of Improvements to PathSpec for Jetty 10.0.x
    • #8134 - Improve cleanup of deflater/inflater pools for PerMessageDeflateExtension
    • #8088 - Add option to configure exitVm on ShutdownMonitor from System properties
    • #8067 - Wall time usage in DoSFilter RateTracker results in false positive alert
    • #8057 - Support Http Response 103 (Early Hints)
    • #8014 - Review HttpRequest URI construction
    • #8008 - Add compliance mode for LEGACY multipart parser in Jetty 10+
    • #7994 - Ability to construct a detached client Request
    • #7981 - Add TRANSFER_ENCODING violation for MultiPart RFC7578 parser. (#7976)
    • #7977 - UpgradeHttpServletRequest.setAttribute & UpgradeHttpServletRequest.removeAttribute can throw NullPointerException
    • #7975 - ForwardedRequestCustomizer setters do not clear existing handlers
    • #7953 - Fix StatisticsHandler in the case a Handler throws exception.
    • #7935 - Review HTTP/2 error handling
    • #7929 - Correct requestlog formatString commented default (@​prenagha)
    • #7924 - Fix a typo in Javadoc (@​jianglai)
    • #7918 - PathMappings.asPathSpec does not allow root ServletPathSpec
    • #7891 - Better Servlet PathMappings for Regex
    • #7880 - DefaultServlet should not overwrite programmatically configured precompressed formats with defaults (@​markslater)
    • #7863 - Default servlet drops first accept-encoding header if there is more than one. (@​markslater)
    • #7858 - GZipHandler does not play nice with other handlers in HandlerCollection
    • #7818 - Modifying of HTTP headers in HttpChannel.Listener#onResponseBegin is no longer possible with Jetty 10
    • #7808 - Jetty 10.0.x 7801 duplicate set session cookie
    • #7802 - HTTP/3 QPACK - do not expect section ack for zero required insert count
    • #7754 - jetty.sh ignores JAVA_OPTIONS environment variable
    • #7748 - Allow overriding of url-pattern mapping in ServletContextHandler to allow for regex or uri-template matching
    • #7635 - QPACK decoder should fail connection if the encoder blocks more than SETTINGS_QPACK_BLOCKED_STREAMS
    • #4414 - GZipHandler not excluding inflation for specified paths
    • #1771 - Add module for SecuredRedirect support

    Dependencies

    • #8083 - Bump asciidoctorj to 2.5.4
    • #8077 - Bump asciidoctorj-diagram to 2.2.3
    • #7839 - Bump asm.version to 9.3
    • #8142 - Bump biz.aQute.bndlib to 6.3.1
    • #8075 - Bump checkstyle to 10.3
    • #8056 - Bump error_prone_annotations to 2.14.0
    • #8109 - Bump google-cloud-datastore to 2.7.0
    • #8100 - Bump grpc-core to 1.47.0
    • #7987 - Bump hawtio-default to 2.15.0

    ... (truncated)

    Commits
    • de73e94 Updating to version 10.0.10
    • 1b4f941 RegexPathSpec documentation and MatchedPath improvements (#8163)
    • 1f902f6 Disable H3 tests by default with a system property to explicitly enable them ...
    • 7cc461b Fixing javadoc build errors (#8173)
    • d63569d Migrate code from jetty-util Logger to slf4j Logger (#8162)
    • 66de7ba Improve ssl buffers handling (#8165)
    • 0699bc5 Use static exceptions for closing websocket flushers and in ContentProducer (...
    • b1c19c0 Merge pull request #8134 from eclipse/jetty-10.0.x-websocketPermessageDeflate...
    • 23948f1 no more profile IT tests runs per default (#8138)
    • 0d13cbe change-dependabot-interval-to-monthly (#8140)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • DELTASPIKE-1435 Add SameSite=Strict to windowhandler.js

    DELTASPIKE-1435 Add SameSite=Strict to windowhandler.js

    Firefox complains about the missing flag, and announces, that the Cookie "will be soon rejected". Enforcing SameSite=Strict in JavaScript (as already done on server side makes Firefox happy, and hence the warning go away.

    https://issues.apache.org/jira/browse/DELTASPIKE-1435

    opened by j-be 0
  • Added Support for YAML Configuration

    Added Support for YAML Configuration

    This adds a new module under org.apache.deltaspike.modules:deltaspike-yaml-module-impl, which includes an implementation of ConfigSource for YAML support, and depends on snakeyaml.

    opened by SethFalco 6
  • Support for Additional Converters by Default

    Support for Additional Converters by Default

    Adds default converts for the following types:

    • java.awt.Color
    • java.awt.Dimension
    • java.awt.Point
    • java.io.File
    • java.net.InetAddress
    • java.net.URI
    • java.net.URL
    • java.time.Duration
    • java.time.Instant
    • java.time.Period
    • java.util.Locale
    • java.util.UUID
    • java.util.regex.Pattern
    opened by SethFalco 10
Owner
The Apache Software Foundation
The Apache Software Foundation
Mirror of Apache Kafka

Apache Kafka See our web site for details on the project. You need to have Java installed. We build and test Apache Kafka with Java 8, 11 and 15. We s

The Apache Software Foundation 23.9k Jan 5, 2023
Mirror of Apache RocketMQ

Apache RocketMQ Apache RocketMQ is a distributed messaging and streaming platform with low latency, high performance and reliability, trillion-level c

The Apache Software Foundation 18.5k Dec 28, 2022
Mirror of Apache ActiveMQ

Welcome to Apache ActiveMQ Apache ActiveMQ is a high performance Apache 2.0 licensed Message Broker and JMS 1.1 implementation. Getting Started To hel

The Apache Software Foundation 2.1k Jan 2, 2023
Mirror of Apache ActiveMQ Artemis

ActiveMQ Artemis This file describes some minimum 'stuff one needs to know' to get started coding in this project. Source For details about the modify

The Apache Software Foundation 824 Dec 26, 2022
Mirror of Apache Storm

Master Branch: Storm is a distributed realtime computation system. Similar to how Hadoop provides a set of general primitives for doing batch processi

The Apache Software Foundation 6.4k Dec 26, 2022
Mirror of Apache SIS

============================================= Welcome to Apache SIS <http://sis.apache.org> ============================================= SIS is a Ja

The Apache Software Foundation 81 Dec 26, 2022
Mirror of Apache Cassandra

Apache Cassandra Apache Cassandra is a highly-scalable partitioned row store. Rows are organized into tables with a required primary key. Partitioning

The Apache Software Foundation 7.7k Jan 1, 2023
Mirror of Apache SystemML

Apache SystemDS Overview: SystemDS is a versatile system for the end-to-end data science lifecycle from data integration, cleaning, and feature engine

The Apache Software Foundation 940 Dec 25, 2022
Mirror of Apache SystemML

Apache SystemDS Overview: SystemDS is a versatile system for the end-to-end data science lifecycle from data integration, cleaning, and feature engine

The Apache Software Foundation 940 Dec 25, 2022
Mirror of Apache Storm

Master Branch: Storm is a distributed realtime computation system. Similar to how Hadoop provides a set of general primitives for doing batch processi

The Apache Software Foundation 6.4k Jan 3, 2023
Real-time Query for Hadoop; mirror of Apache Impala

Welcome to Impala Lightning-fast, distributed SQL queries for petabytes of data stored in Apache Hadoop clusters. Impala is a modern, massively-distri

Cloudera 27 Dec 28, 2022
Mirror of Apache Qpid

We have moved to using individual Git repositories for the Apache Qpid components and you should look to those for new development. This Subversion re

The Apache Software Foundation 125 Dec 29, 2022
Mirror of Apache Velocity Engine

Title: Apache Velocity Engine Apache Velocity Welcome to Apache Velocity Engine! Apache Velocity is a general purpose template engine written in Java.

The Apache Software Foundation 298 Dec 22, 2022
Now redundant weka mirror. Visit https://github.com/Waikato/weka-trunk for the real deal

weka (mirror) Computing and Mathematical Sciences at the University of Waikato now has an official github organization including a read-only git mirro

Benjamin Petersen 313 Dec 16, 2022
Bouncy Castle Java Distribution (Mirror)

The Bouncy Castle Crypto Package For Java The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms, it was developed by t

Legion of the Bouncy Castle Inc 1.8k Dec 30, 2022
I had too much coffee and decided to mirror my actions by writing too many programs in Java.

Raging Coffee Table of Contents Description Running the Programs Extra Dependencies Roadmap Further Reading Known Issues Resources Contributions Descr

Thoroughfare by the Brooks 20 Dec 15, 2022
Oryx 2: Lambda architecture on Apache Spark, Apache Kafka for real-time large scale machine learning

Oryx 2 is a realization of the lambda architecture built on Apache Spark and Apache Kafka, but with specialization for real-time large scale machine l

Oryx Project 1.8k Dec 28, 2022
Oryx 2: Lambda architecture on Apache Spark, Apache Kafka for real-time large scale machine learning

Oryx 2 is a realization of the lambda architecture built on Apache Spark and Apache Kafka, but with specialization for real-time large scale machine l

Oryx Project 1.7k Mar 12, 2021
Oryx 2: Lambda architecture on Apache Spark, Apache Kafka for real-time large scale machine learning

Oryx 2 is a realization of the lambda architecture built on Apache Spark and Apache Kafka, but with specialization for real-time large scale machine l

Oryx Project 1.8k Dec 28, 2022