public EJBViewDescription(final ComponentDescription componentDescription, final String viewClassName, final MethodIntf methodIntf, final boolean ejb2xView) { //only add the default configurator if an ejb 3.x business view super(componentDescription, viewClassName, !ejb2xView && methodIntf != MethodIntf.HOME && methodIntf != MethodIntf.LOCAL_HOME ); this.methodIntf = methodIntf; this.ejb2xView = ejb2xView; hasJNDIBindings = initHasJNDIBindings(methodIntf); //add a configurator to attach the MethodIntf for this view getConfigurators().add(new ViewConfigurator() { @Override public void configure(final DeploymentPhaseContext context, final ComponentConfiguration componentConfiguration, final ViewDescription description, final ViewConfiguration configuration) throws DeploymentUnitProcessingException { configuration.putPrivateData(MethodIntf.class, getMethodIntf()); } }); // add a view configurator for setting up application specific container interceptors for the EJB view getConfigurators().add(EJBContainerInterceptorsViewConfigurator.INSTANCE); }
public EJBViewDescription(final ComponentDescription componentDescription, final String viewClassName, final MethodIntf methodIntf, final boolean ejb2xView) { //only add the default configurator if an 3jb 3.x business view super(componentDescription, viewClassName, !ejb2xView && methodIntf != MethodIntf.HOME && methodIntf != MethodIntf.LOCAL_HOME ); this.methodIntf = methodIntf; this.ejb2xView = ejb2xView; hasJNDIBindings = initHasJNDIBindings(methodIntf); //add a configurator to attach the MethodIntf for this view getConfigurators().add(new ViewConfigurator() { @Override public void configure(final DeploymentPhaseContext context, final ComponentConfiguration componentConfiguration, final ViewDescription description, final ViewConfiguration configuration) throws DeploymentUnitProcessingException { configuration.putPrivateData(MethodIntf.class, getMethodIntf()); } }); // add a view configurator for setting up application specific container interceptors for the EJB view getConfigurators().add(EJBContainerInterceptorsViewConfigurator.INSTANCE); }