Package com.opensymphony.xwork2.util.location

Examples of com.opensymphony.xwork2.util.location.LocationImpl


            }
            settings = new LocatableProperties();
            return;
        }
       
        settings = new LocatableProperties(new LocationImpl(null, settingsUrl.toString()));

        // Load settings
        InputStream in = null;
        try {
            in = settingsUrl.openStream();
View Full Code Here


            }
            settings = new LocatableProperties();
            return;
        }
       
        settings = new LocatableProperties(new LocationImpl(null, settingsUrl.toString()));

        // Load settings
        InputStream in = null;
        try {
            in = settingsUrl.openStream();
View Full Code Here

            LOG.debug(name + ".properties missing");
            settings = new LocatableProperties();
            return;
        }
       
        settings = new LocatableProperties(new LocationImpl(null, settingsUrl.toString()));

        // Load settings
        InputStream in = null;
        try {
            in = settingsUrl.openStream();
View Full Code Here

            LOG.debug(name + ".properties missing");
            settings = new LocatableProperties();
            return;
        }
       
        settings = new LocatableProperties(new LocationImpl(null, settingsUrl.toString()));

        // Load settings
        InputStream in = null;
        try {
            in = settingsUrl.openStream();
View Full Code Here

            LOG.debug(name + ".properties missing");
            settings = new LocatableProperties();
            return;
        }
       
        settings = new LocatableProperties(new LocationImpl(null, settingsUrl.toString()));

        // Load settings
        InputStream in = null;
        try {
            in = settingsUrl.openStream();
View Full Code Here

public class ActionConfigTest extends XWorkTestCase {

    public void testToString() {
        ActionConfig cfg = new ActionConfig.Builder("", "bob", "foo.Bar")
                .methodName("execute")
                .location(new LocationImpl(null, "foo/xwork.xml", 10, 12))
                .build();

        assertTrue("Wrong toString(): "+cfg.toString(),
            "{ActionConfig bob (foo.Bar.execute()) - foo/xwork.xml:10:12}".equals(cfg.toString()));
    }
View Full Code Here

            "{ActionConfig bob (foo.Bar.execute()) - foo/xwork.xml:10:12}".equals(cfg.toString()));
    }
   
    public void testToStringWithNoMethod() {
        ActionConfig cfg = new ActionConfig.Builder("", "bob", "foo.Bar")
                .location(new LocationImpl(null, "foo/xwork.xml", 10, 12))
                .build();
       
        assertTrue("Wrong toString(): "+cfg.toString(),
            "{ActionConfig bob (foo.Bar) - foo/xwork.xml:10:12}".equals(cfg.toString()));
    }
View Full Code Here

            }
            settings = new LocatableProperties();
            return;
        }
       
        settings = new LocatableProperties(new LocationImpl(null, settingsUrl.toString()));

        // Load settings
        InputStream in = null;
        try {
            in = settingsUrl.openStream();
View Full Code Here

            }
            settings = new LocatableProperties();
            return;
        }
       
        settings = new LocatableProperties(new LocationImpl(null, settingsUrl.toString()));

        // Load settings
        InputStream in = null;
        try {
            in = settingsUrl.openStream();
View Full Code Here

        // happen
        // This is a critical exception, so we better throw a
        // ValidationException
        // no need to continue
        logger.error(e);
        throw new ValidationException("Could not open inputstream for "
            + i);
      }
      imageSize = (int) i.length();
    } else {
      // it's .. uhm, something else. A football ? A hot blonde's address
      // ? Fourty Two ? We'll never know ..
      throw new ValidationException(
          "Invalid object. Expect either a String or File object. Object is "
              + image.getClass().getName());
    }
    if (!ii.check()) {
      setMessageKey(getMessageKey() + ".invalid");
View Full Code Here

TOP

Related Classes of com.opensymphony.xwork2.util.location.LocationImpl

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.