Package speculoos.jndi.mappers

Examples of speculoos.jndi.mappers.AddMapperImpl


  public class AddHandler implements TagHandler {

    public void startElement(String uri, String localName, String qName,
        Attributes attributes) throws SAXException {
      AddMapperImpl ami = new AddMapperImpl(attributes.getValue("name"));
      ami.setTypeHelper(typeHelper);
      /* defined output map ? */
      Object input = maps.get(attributes.getValue("input"));
      Object output = maps.get(attributes.getValue("output"));
      if (output != null)
        try {
          ami.setOutput((Class) input, (Map) output);
        } catch (ClassCastException e) {
          throw new SAXException(
              "Incorrect types for input/output attributes in search map. Output should be a map and input a bean.");
        }
      push(ami);
View Full Code Here


      push(ami);
    }

    public void endElement(String uri, String localName, String qName) {
      // add mapper to source
      AddMapperImpl ami = (AddMapperImpl) pop();
      add(ami.getName(), ami);
      ((JNDISource) current).add(ami.getName(), ami);
      link(ami.getName(), ((JNDISource) current).getName());

    }
View Full Code Here

TOP

Related Classes of speculoos.jndi.mappers.AddMapperImpl

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.