Package org.smslib.smsserver.gateways

Examples of org.smslib.smsserver.gateways.AGateway


          String gtwClass = tokens.nextToken().trim();
          Object[] args = new Object[] { gtwId, getProperties(), this };
          Class<?>[] argsClass = new Class[] { String.class, Properties.class, SMSServer.class };
          Class<?> c = Class.forName((gtwClass.indexOf('.') == -1 ? "org.smslib.smsserver.gateways." : "") + gtwClass);
          Constructor<?> constructor = c.getConstructor(argsClass);
          AGateway gtw = (AGateway) constructor.newInstance(args);
          gtw.create();
          Service.getInstance().addGateway(gtw.getGateway());
          Logger.getInstance().logInfo("SMSServer: added gateway " + gtwId + " / " + gtw.getDescription(), null, null);
        }
        catch (Exception e)
        {
          Logger.getInstance().logError("SMSServer: Unknown Gateway in configuration file!", null, null);
        }
View Full Code Here

TOP

Related Classes of org.smslib.smsserver.gateways.AGateway

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.