public void init()

in modules/sms/src/main/java/org/apache/axis2/transport/sms/SMSManager.java [98:132]


    public void init(TransportOutDescription transportOutDescription , ConfigurationContext configurationContext) throws
            AxisFault {
        if(!inited) {
            basicInit(transportOutDescription , configurationContext);
        }

        Parameter formatterClass = transportOutDescription.getParameter(SMSTransportConstents.FORMATTER_CLASS);

        if(formatterClass == null) {
            messageFormatter = new DefaultSMSMessageFormatterImpl();
        }else {
            try {
                messageFormatter = (SMSMessageFormatter)Class.forName((String)formatterClass.getValue()).newInstance();
            } catch (Exception e) {
                throw new AxisFault("Error while instentiating the Class: " +formatterClass.getValue() ,e);
            }
        }
        currentImplimentation.setTransportOutDetails(transportOutDescription);

        Parameter invertS_n_D = transportOutDescription.getParameter(
                SMSTransportConstents.INVERT_SOURCE_AND_DESTINATION);
        if(invertS_n_D != null) {
            String val = (String)invertS_n_D.getValue();
            if("false".equals(val)) {
                invertSourceAndDestination = false;
            } else if("true".equals(val)) {
                invertSourceAndDestination = true;
            } else {
                log.warn("Invalid parameter value set to the parameter invert_source_and_destination," +
                        "setting the default value :true ");
                invertSourceAndDestination = true;
            }
        }
        inited = true;
    }