import java.text.MessageFormat;
import java.util.List;
import java.util.Objects;
-import javax.annotation.PostConstruct;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;
-import javax.inject.Inject;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
-import org.mxchange.addressbook.beans.country.CountryWebApplicationController;
import org.mxchange.jcoreeelogger.beans.local.logger.Log;
import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal;
+import org.mxchange.jcountry.data.AddressbookCountrySingletonBeanRemote;
import org.mxchange.jcountry.data.Country;
/**
/**
* Country bean
*/
- @Inject
- private CountryWebApplicationController countryController;
+ private AddressbookCountrySingletonBeanRemote countryController;
/**
* Logger instance
/**
* Initialization of this converter
*/
- @PostConstruct
- public void init () {
+ public CountryConverter () {
// Try to get it
try {
// Get initial context
// Lookup logger
this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
+
+ // ... and country controller
+ this.countryController = (AddressbookCountrySingletonBeanRemote) context.lookup("java:global/addressbook-ejb/country!org.mxchange.jcountry.data.AddressbookCountrySingletonBeanRemote"); //NOI18N
} catch (final NamingException ex) {
// Continue to throw it
throw new RuntimeException("context.lookup() failed.", ex); //NOI18N
import java.text.MessageFormat;
import java.util.List;
import java.util.Objects;
-import javax.annotation.PostConstruct;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;
-import javax.inject.Inject;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
-import org.mxchange.addressbook.beans.smsprovider.SmsProviderWebApplicationController;
import org.mxchange.jcoreeelogger.beans.local.logger.Log;
import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal;
+import org.mxchange.jphone.phonenumbers.smsprovider.AddressbookSmsProviderSingletonBeanRemote;
import org.mxchange.jphone.phonenumbers.smsprovider.SmsProvider;
/**
/**
* SMS provider bean
*/
- @Inject
- private SmsProviderWebApplicationController providerController;
+ private AddressbookSmsProviderSingletonBeanRemote providerController;
@Override
public Object getAsObject (final FacesContext context, final UIComponent component, final String submittedValue) {
/**
* Initialization of this converter
*/
- @PostConstruct
- public void init () {
+ public SmsProviderConverter () {
// Try to get it
try {
// Get initial context
// Lookup logger
this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
+
+ /// and SMS provider controller
+ this.providerController = (AddressbookSmsProviderSingletonBeanRemote) context.lookup("java:global/addressbook-ejb/smsprovider!org.mxchange.jphone.phonenumbers.smsprovider.AddressbookSmsProviderSingletonBeanRemote"); //NOI18N
} catch (final NamingException ex) {
// Continue to throw it
throw new RuntimeException("context.lookup() failed.", ex); //NOI18N
package org.mxchange.addressbook.converter.user;
import java.text.MessageFormat;
-import javax.annotation.PostConstruct;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;
import javax.faces.convert.FacesConverter;
-import javax.inject.Inject;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
/**
* User bean
*/
- @Inject
private UserWebSessionController userController;
@Override
/**
* Initialization of this converter
*/
- @PostConstruct
- public void init () {
+ public UserConverter () {
// Try to get it
try {
// Get initial context
// Lookup logger
this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
+
+ // ... and user controller
+ this.userController = (UserWebSessionController) context.lookup("java:global/juser-ejb/user!org.mxchange.jusercore.model.user.UserSessionBeanRemote"); //NOI18N
} catch (final NamingException ex) {
// Continue to throw it
throw new RuntimeException("context.lookup() failed.", ex); //NOI18N