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);
}
Aggregations