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

ch.obermuhlner.scriptengine.java.name.FixNameStrategy Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package ch.obermuhlner.scriptengine.java.name;

/**
 * A {@link NameStrategy} implementation that returns a fixed name.
 */
public class FixNameStrategy implements NameStrategy {
    private final String fullName;

    /**
     * Constructs a {@link FixNameStrategy} with the specified fully qualified name.
     * @param fullName the fully qualified class name to return
     */
    public FixNameStrategy(String fullName) {
        this.fullName = fullName;
    }

    @Override
    public String getFullName(String script) {
        return fullName;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy