Package com.globant.google.mendoza.malbec.schema._2

Examples of com.globant.google.mendoza.malbec.schema._2.ObjectFactory


  /** Sets the notifications that belongs to a specific order number.
   */
  private void updateNotifications() {
    log.trace("Entering setNotifications");
    NewOrderNotification non =
      proxyMessages.getNewOrderNotification(serverState.getGoogleOrderNumber());
    if (non != null) {
      setNewOrderNotification(non);
    }
    RiskInformationNotification risk =
View Full Code Here


   * @param cart The cart as generated by jaxb. It cannot be null.
   *
   * @return Returns a xml string.
   */
  public static String toXml(final CheckoutShoppingCart cart) {
    ObjectFactory factory = new ObjectFactory();
    return marshal(factory.createCheckoutShoppingCart(cart));
  }
View Full Code Here

    Object result = calculationListener.calculate(
        getBuyerId(), getShoppingCart(), getBuyerLanguage(), this);

    if (result instanceof MerchantCalculationResults) {
      MerchantCalculationResults results = (MerchantCalculationResults) result;
      ObjectFactory factory = new ObjectFactory();
      return factory.createMerchantCalculationResults(results);
    } else if (result instanceof String) {
      String stringResult = (String) result;
      return stringResult;
    } else {
      throw new RuntimeException(
View Full Code Here

  private void setNewOrderNotification(
      final NewOrderNotification theNewOrderNotification) {
    log.trace("Entering setNewOrderNotification");
    String marshaled = "";
    try {
      ObjectFactory objectFactory = new ObjectFactory();
      marshaled = CartUtils.marshal(
          objectFactory.createNewOrderNotification(theNewOrderNotification),
          true);
      marshaled = marshaled.trim();
    } catch (Exception e) {
      log.trace("Leaving setMerchantCalculation");
      throw new RuntimeException(e);
View Full Code Here

  private void setRiskInformationNotification(
      final RiskInformationNotification riskInformation) {
    log.trace("Entering setRiskInformationNotification");
    String marshaled = "";
    try {
      ObjectFactory objectFactory = new ObjectFactory();
      marshaled = CartUtils.marshal(
          objectFactory.createRiskInformationNotification(riskInformation),
          true);
      marshaled = marshaled.trim();
    } catch (Exception e) {
      log.trace("Leaving setRiskInformationNotification");
      throw new RuntimeException(e);
View Full Code Here

    NewOrderNotification non =
      proxyMessages.getNewOrderNotification(serverState.getGoogleOrderNumber());
    if (non != null) {
      setNewOrderNotification(non);
    }
    RiskInformationNotification risk =
      proxyMessages.getRiskInformationNotification(
          serverState.getGoogleOrderNumber());
    if (risk != null) {
      setRiskInformationNotification(risk);
    }
View Full Code Here

   */
  private static Logger _logger
    = Logger.getLogger(AbstractProtocolBuilder.class.getName());
 
  protected AbstractProtocolBuilder() throws JAXBException, ProtocolException {
    _objectFact = new ObjectFactory();
    _xmlMarshaller = createXmlMarshaller();
    _xmlUnMarshaller = createXmlUnMashaller();
    _domBuilder = createDomBuilder();
  }
View Full Code Here

   */
  private static Logger _logger
    = Logger.getLogger(AbstractProtocolBuilder.class.getName());
 
  protected AbstractProtocolBuilder() throws JAXBException, ProtocolException {
    _objectFact = new ObjectFactory();
    _xmlMarshaller = createXmlMarshaller();
    _xmlUnMarshaller = createXmlUnMashaller();
    _domBuilder = createDomBuilder();
  }
View Full Code Here

  public void test21() {
    ActionBuilder actionNameBuilder = new DefaultActionBuilder();
    ProfileService profileService = new ProfileServiceImpl();
    actionNameBuilder.setProfileService(profileService);

    ObjectFactory of = new ObjectFactory();
    final DummyContainer mockContainer = new DummyContainer();
    Configuration configuration = new DefaultConfiguration() {
      @Override
      public Container getContainer() {
        return mockContainer;
View Full Code Here

            this.name = name;
            this.type = type;
        }

        public Object create(Context context) throws Exception {
            ObjectFactory objFactory = context.getContainer().getInstance(ObjectFactory.class);
            try {
                return objFactory.buildBean(name, null, true);
            } catch (ClassNotFoundException ex) {
                throw new ConfigurationException("Unable to load bean "+type.getName()+" ("+name+")");
            }
        }
View Full Code Here

TOP

Related Classes of com.globant.google.mendoza.malbec.schema._2.ObjectFactory

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.