Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WELD-2780 Introduce WeldProcessManagedBean and WeldInvokerFactory #191

Merged
merged 2 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.jboss.weld.bootstrap.event;

import jakarta.enterprise.inject.spi.AnnotatedMethod;
import jakarta.enterprise.inject.spi.ProcessManagedBean;
import jakarta.enterprise.invoke.Invoker;

import org.jboss.weld.invoke.WeldInvokerBuilder;

/**
* Represents an enhanced version of {@link ProcessManagedBean}.
*
* Allows access to {@link WeldInvokerBuilder} without the need to manually type cast.
*/
public interface WeldProcessManagedBean<X> extends ProcessManagedBean<X> {

@Override
WeldInvokerBuilder<Invoker<X, ?>> createInvoker(AnnotatedMethod<? super X> method);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package org.jboss.weld.invoke;

import jakarta.enterprise.inject.build.compatible.spi.BeanInfo;
import jakarta.enterprise.inject.build.compatible.spi.InvokerFactory;
import jakarta.enterprise.inject.build.compatible.spi.InvokerInfo;
import jakarta.enterprise.lang.model.declarations.MethodInfo;

/**
* Weld specific version of {@link InvokerFactory}.
* Allows access to {@link WeldInvokerBuilder} without the need to manually type cast.
*/
public interface WeldInvokerFactory extends InvokerFactory {

@Override
WeldInvokerBuilder<InvokerInfo> createInvoker(BeanInfo bean, MethodInfo method);

}