Search in sources :

Example 1 with SMPPImplManager

use of org.apache.axis2.transport.sms.smpp.SMPPImplManager in project wso2-axis2-transports by wso2.

the class SMSManager method basicInit.

private void basicInit(ParameterInclude transportDescription, ConfigurationContext configurationContext) throws AxisFault {
    this.configurationContext = configurationContext;
    Parameter p = transportDescription.getParameter(SMSTransportConstents.IMPLIMENTAION_CLASS);
    if (p == null) {
        currentImplimentation = new SMPPImplManager();
    } else {
        String implClass = (String) p.getValue();
        try {
            currentImplimentation = (SMSImplManager) Class.forName(implClass).newInstance();
        } catch (Exception e) {
            throw new AxisFault("Error while instentiating class " + implClass, e);
        }
    }
    currentImplimentation.setSMSInManager(this);
}
Also used : AxisFault(org.apache.axis2.AxisFault) Parameter(org.apache.axis2.description.Parameter) SMPPImplManager(org.apache.axis2.transport.sms.smpp.SMPPImplManager)

Aggregations

AxisFault (org.apache.axis2.AxisFault)1 Parameter (org.apache.axis2.description.Parameter)1 SMPPImplManager (org.apache.axis2.transport.sms.smpp.SMPPImplManager)1