Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdi-dev] About parsing beans.xml files in Lite

Hi,

On Tue, Jan 26, 2021 at 3:49 PM Edward Moore <edward.moore39@xxxxxxxxx> wrote:
> Given that we've now repeated many times that what we're trying to build is a subset of CDI, I have to assume that you're talking exclusively about extensions. So here's a thing: portable extensions can't be made to work under the set of constraints I've outlined previously

I don't understand. Why can the new extension API not be a subset of the existing API? Why can it not use the same names?

Keeping the names consistent would be a good idea. Tons of developers are already using CDI, and different names are a huge source of confusion. We've seen that in security, where "identity store" is known under a dozen of different names, causing endless amounts of confusion.

Kind regards,
Arjan

 

A quick glance

Your API

Discovery

Existing API

BeforeBeanDiscovery

Purpose

Add classes



Your API

Enhancement

Existing API

ProcessBean

Purpose

Add and remove annotations


Your API

Synthesis

Existing API

AfterBeanDiscovery

Purpose

Adding synthetic beans



Your API

Validation

Existing API

AfterDeploymentValidation

Purpose

Add error



If we look at the names, we see "Synthesis" vs "AfterBeanDiscovery". Why are those names so different? Why not use the same name? Make it easier for your users, and don't have us remember multiple names for the same thing.

If we look at the interfaces, let's look at:


public interface AfterDeploymentValidation {

    /**
     * Registers a deployment problem with the container, causing the container to abort deployment after all observers have
     * been notified.
     *
     * @param t The deployment problem as a {@link java.lang.Throwable}
     * @throws IllegalStateException if called outside of the observer method invocation
     */
    public void addDeploymentProblem(Throwable t);

}

Why can't you use this for the build-time extension?






_______________________________________________
cdi-dev mailing list
cdi-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdi-dev

Back to the top