All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.stevesouza.helloworld.HelloWorld Maven / Gradle / Ivy

Go to download

This pom simply has an unwoven HelloWorld class. The resulting jar can be used to test AspectJ load time weaving.

The newest version!
package com.stevesouza.helloworld;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Date;

/**
 * Program used as basis for simple Automon example programs
 */
public class HelloWorld {

    private static Logger LOGGER = LoggerFactory.getLogger(HelloWorld.class.getName());

    public String getFirstName() {
        return "Steve";
    }

    public String getLastName() {
        return "Souza";
    }

    private String getMiddleName() {
        return "Thomas";
    }

    private void iMessedUp_RuntimeException(String firstName, String lastName) {
        throw new RuntimeException("I really did it this time!");
    }

    private static void iMessedUp_CheckedException(String message) throws MyCheckedException {
        throw new MyCheckedException(message);
    }

    public void iMessedUp(String firstName, String lastName) {
       iMessedUp_RuntimeException(firstName, lastName);
    }


    public void run(String[] args) throws InterruptedException {
        int loops = (args==null || args.length==0) ? 1 : Integer.valueOf(args[0]);
        System.out.println("start: "+new Date());
        for (int i=0;i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy