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

Make PartitionManager injectable in EJB jars #PLINK-346 #15

Open
wants to merge 1 commit into
base: WFLY_8
Choose a base branch
from
Open
Changes from all commits
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
Expand Up @@ -35,7 +35,9 @@
import javax.enterprise.inject.spi.BeanManager;
import javax.enterprise.inject.spi.InjectionPoint;
import javax.enterprise.inject.spi.InjectionTarget;
import javax.enterprise.inject.spi.PassivationCapable;
import javax.enterprise.util.AnnotationLiteral;

import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.ArrayList;
Expand All @@ -52,7 +54,7 @@
*
* @author <a href="mailto:[email protected]">Pedro Silva</a>
*/
public class PartitionManagerBeanDefinition implements Bean<PartitionManager> {
public class PartitionManagerBeanDefinition implements Bean<PartitionManager>, PassivationCapable {

private BeanManager beanManager;
private InjectionTarget<PartitionManager> injectionTarget;
Expand Down Expand Up @@ -221,4 +223,10 @@ private List<IdentityConfiguration> resolveIdentityConfiguration() {
return configurations;
}

@Override
public String getId() {

return PartitionManagerBeanDefinition.class.getName();
}

}