Object readResolve() { return new EJBHomeLocator<T>(viewType, appName, moduleName, beanName, distinctName, affinity); } }
/** * Construct a new instance. * * @param viewType the view type (must not be {@code null}) * @param identifier the EJB identifier (must not be {@code null}) * @param affinity the affinity * @param <T> the remote view type * @return the new instance (not {@code null}) */ public static <T extends EJBHome> EJBHomeLocator<T> create(final Class<T> viewType, final EJBIdentifier identifier, final Affinity affinity) { return new EJBHomeLocator<T>(viewType, identifier, affinity); }
private static <T extends EJBHome> EJBHomeLocator<T> createHomeLocator(Class<T> viewClass, String appName, String moduleName, String beanName, String distinctName) { return new EJBHomeLocator<T>(viewClass, appName, moduleName, beanName, distinctName, Affinity.LOCAL); }
public EJBHomeLocator<T> withNewAffinity(final Affinity affinity) { Assert.checkNotNullParam("affinity", affinity); return getAffinity().equals(affinity) ? this : new EJBHomeLocator<T>(this, affinity); }
@Override public ManagedReference createViewInstance(final ComponentView componentView, final Map<Object, Object> contextData) { Object value = EJBClient.createProxy(new EJBHomeLocator(componentView.getViewClass(), applicationName, moduleName, beanName, distinctName, Affinity.LOCAL)); return new ValueManagedReference(new ImmediateValue(value)); }
Object readResolve() { return new EJBHomeLocator<T>(viewType, appName, moduleName, beanName, distinctName, affinity); } }
/** * Construct a new instance. * * @param viewType the view type (must not be {@code null}) * @param identifier the EJB identifier (must not be {@code null}) * @param affinity the affinity * @param <T> the remote view type * @return the new instance (not {@code null}) */ public static <T extends EJBHome> EJBHomeLocator<T> create(final Class<T> viewType, final EJBIdentifier identifier, final Affinity affinity) { return new EJBHomeLocator<T>(viewType, identifier, affinity); }
Object readResolve() { return new EJBHomeLocator<T>(viewType, appName, moduleName, beanName, distinctName, affinity); } }
/** * Construct a new instance. * * @param viewType the view type (must not be {@code null}) * @param identifier the EJB identifier (must not be {@code null}) * @param affinity the affinity * @param <T> the remote view type * @return the new instance (not {@code null}) */ public static <T extends EJBHome> EJBHomeLocator<T> create(final Class<T> viewType, final EJBIdentifier identifier, final Affinity affinity) { return new EJBHomeLocator<T>(viewType, identifier, affinity); }
public EJBHomeLocator<T> withNewAffinity(final Affinity affinity) { Assert.checkNotNullParam("affinity", affinity); return getAffinity().equals(affinity) ? this : new EJBHomeLocator<T>(this, affinity); }
public EJBHomeLocator<T> withNewAffinity(final Affinity affinity) { Assert.checkNotNullParam("affinity", affinity); return getAffinity().equals(affinity) ? this : new EJBHomeLocator<T>(this, affinity); }
@Override public ManagedReference createViewInstance(final ComponentView componentView, final Map<Object, Object> contextData) { Object value = EJBClient.createProxy(new EJBHomeLocator(componentView.getViewClass(), applicationName, moduleName, beanName, distinctName)); return new ValueManagedReference(new ImmediateValue(value)); }
ejbLocator = new EJBHomeLocator(viewClass, appName, moduleName, beanName, distinctName); } else if (stateful) { try {
public EJBHome getEJBHome() throws IllegalStateException { if (ejbHomeViewServiceName == null) { throw MESSAGES.beanHomeInterfaceIsNull(getComponentName()); } final ServiceController<?> serviceController = currentServiceContainer().getRequiredService(ejbHomeViewServiceName); final ComponentView view = (ComponentView) serviceController.getValue(); final String locatorAppName = earApplicationName == null ? "" : earApplicationName; return EJBClient.createProxy(new EJBHomeLocator<EJBHome>((Class<EJBHome>) view.getViewClass(), locatorAppName, moduleName, getComponentName(), distinctName)); }