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

com.example.opendj.ExamplePluginMessages Maven / Gradle / Ivy

Go to download

An example OpenDJ Server plugin illustrating how custom components may be developed for OpenDJ.

There is a newer version: 4.8.0
Show newest version
package com.example.opendj;

import org.forgerock.i18n.LocalizableMessageDescriptor;

/**
 * This file contains localizable message descriptors having the resource
 * name {@code com.example.opendj.example_plugin}. This file was generated
 * automatically by the {@code i18n-maven-plugin} from the property file
 * {@code com/example/opendj/example_plugin.properties} and it should not be manually edited.
 */
public final class ExamplePluginMessages {
    // The name of the resource bundle.
    private static final String RESOURCE = "com.example.opendj.example_plugin";

    // Prevent instantiation.
    private ExamplePluginMessages() {
        // Do nothing.
    }

    /**
     * Returns the name of the resource associated with the messages contained
     * in this class. The resource name may be used for obtaining named loggers,
     * e.g. using SLF4J's {@code org.slf4j.LoggerFactory#getLogger(String name)}.
     *
     * @return The name of the resource associated with the messages contained
     *         in this class.
     */
    public static String resourceName() {
        return RESOURCE;
    }

    /**
     * "Invalid plugin type %s for the example plugin.
     */
    public static final LocalizableMessageDescriptor.Arg1 ERR_INITIALIZE_PLUGIN =
                    new LocalizableMessageDescriptor.Arg1(ExamplePluginMessages.class, RESOURCE, "ERR_INITIALIZE_PLUGIN_1", 1);

    /**
     * Example plugin message '%s'.
     */
    public static final LocalizableMessageDescriptor.Arg1 NOTE_DO_STARTUP =
                    new LocalizableMessageDescriptor.Arg1(ExamplePluginMessages.class, RESOURCE, "NOTE_DO_STARTUP_2", 2);

    /**
     * "Example plugin message has been changed from '%s' to '%s'.
     */
    public static final LocalizableMessageDescriptor.Arg2 NOTE_APPLY_CONFIGURATION_CHANGE =
                    new LocalizableMessageDescriptor.Arg2(ExamplePluginMessages.class, RESOURCE, "NOTE_APPLY_CONFIGURATION_CHANGE_3", 3);

}