protected <T> T createViewInstanceProxy(final Class<T> viewInterface, final Map<Object, Object> contextData) { if (viewInterface == null) throw EjbLogger.ROOT_LOGGER.viewInterfaceCannotBeNull(); if (viewServices.containsKey(viewInterface.getName())) { final ServiceName serviceName = viewServices.get(viewInterface.getName()); return createViewInstanceProxy(viewInterface, contextData, serviceName); } else { throw EjbLogger.ROOT_LOGGER.viewNotFound(viewInterface.getName(), this.getComponentName()); } }
public EJBLocalHome getEJBLocalHome() throws IllegalStateException { if (ejbLocalHomeViewServiceName == null) { throw EjbLogger.ROOT_LOGGER.beanLocalHomeInterfaceIsNull(getComponentName()); } return createViewInstanceProxy(EJBLocalHome.class, Collections.emptyMap(), ejbLocalHomeViewServiceName); }
protected <T> T createViewInstanceProxy(final Class<T> viewInterface, final Map<Object, Object> contextData) { if (viewInterface == null) throw MESSAGES.viewInterfaceCannotBeNull(); if (viewServices.containsKey(viewInterface.getName())) { final ServiceName serviceName = viewServices.get(viewInterface.getName()); return createViewInstanceProxy(viewInterface, contextData, serviceName); } else { throw MESSAGES.viewNotFound(viewInterface.getName(), this.getComponentName()); } }
public EJBLocalHome getEJBLocalHome() throws IllegalStateException { if (ejbLocalHomeViewServiceName == null) { throw MESSAGES.beanLocalHomeInterfaceIsNull(getComponentName()); } return createViewInstanceProxy(EJBLocalHome.class, Collections.emptyMap(), ejbLocalHomeViewServiceName); }