ExamplePlugin.java revision 1008
1008N/A * The contents of this file are subject to the terms of the 1008N/A * Common Development and Distribution License, Version 1.0 only 1008N/A * (the "License"). You may not use this file except in compliance 1008N/A * You can obtain a copy of the license at 1008N/A * See the License for the specific language governing permissions 1008N/A * and limitations under the License. 1008N/A * When distributing Covered Code, include this CDDL HEADER in each 1008N/A * file and include the License file at 1008N/A * add the following below this CDDL HEADER, with the fields enclosed 1008N/A * by brackets "[]" replaced with your own identifying information: 1008N/A * Portions Copyright [yyyy] [name of copyright owner] 1008N/A * Portions Copyright 2006-2007 Sun Microsystems, Inc. 1008N/A * The example plugin implementation class. This plugin will output 1008N/A * the configured message to the error log during server start up. 1008N/A // The current configuration. 1008N/A // This plugin may only be used as a server startup plugin. 1008N/A +
" for the example plugin.");
1008N/A // Register change listeners. These are not really necessary for 1008N/A // this plugin since it is only used during server start-up. 1008N/A // Log the provided message. 1008N/A // The new configuration has already been validated. 1008N/A // Log a message to say that the configuration has changed. This 1008N/A // isn't necessary, but we'll do it just to show that the change 1008N/A "Example plugin message has been changed from '" 1008N/A // Update the configuration. 1008N/A // Update was successfull, no restart required. 1008N/A // The only thing that can be validated here is the plugin's 1008N/A // message. However, it is always going to be valid, so let's