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

org.n0pe.mojo.examples.ExampleBean Maven / Gradle / Ivy

package org.n0pe.mojo.examples;

import javax.ejb.Stateless;

@Stateless
public class ExampleBean
        implements ExampleLocal
{

    public String sayHelloTo( String givenName )
    {
        return "Hello " + ( isEmpty( givenName )
                ? "null"
                : givenName ) + "!";
    }

    private boolean isEmpty( String s )
    {
        return s == null || s.length() <= 0;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy