Package org.smslib.smsserver.gateways

Examples of org.smslib.smsserver.gateways.AGateway.create()


          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)
        {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.