/*
       Licensed to the Apache Software Foundation (ASF) under one
       or more contributor license agreements.  See the NOTICE file
       distributed with this work for additional information
       regarding copyright ownership.  The ASF licenses this file
       to you under the Apache License, Version 2.0 (the
       "License"); you may not use this file except in compliance
       with the License.  You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

       Unless required by applicable law or agreed to in writing,
       software distributed under the License is distributed on an
       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
       KIND, either express or implied.  See the License for the
       specific language governing permissions and limitations
       under the License.
 */
package org.apache.cordova;

import org.apache.cordova.CordovaPlugin;

/**
 * This class represents a service entry object.
 */
public class PluginEntry {

    /**
     * The name of the service that this plugin implements
     */
    public String service;

    /**
     * The plugin class name that implements the service.
     */
    public String pluginClass;

    /**
     * The pre-instantiated plugin to use for this entry.
     */
    public CordovaPlugin plugin;

    /**
     * Flag that indicates the plugin object should be created when PluginManager is initialized.
     */
    public boolean onload;

    /**
     * Constructs with a CordovaPlugin already instantiated.
     */
    public PluginEntry(String service, CordovaPlugin plugin) {
        this(service, plugin.getClass().getName(), true, plugin);
    }

    /**
     * @param service               The name of the service
     * @param pluginClass           The plugin class name
     * @param onload                Create plugin object when HTML page is loaded
     */
    public PluginEntry(String service, String pluginClass, boolean onload) {
        this(service, pluginClass, onload, null);
    }

    private PluginEntry(String service, String pluginClass, boolean onload, CordovaPlugin plugin) {
        this.service = service;
        this.pluginClass = pluginClass;
        this.onload = onload;
        this.plugin = plugin;
    }
}

@@ -988,16 +988,22 @@
 %0Apublic 
+final 
 class Pl
@@ -1014,16 +1014,16 @@
 Entry %7B%0A
-
 %0A    /**
@@ -1097,24 +1097,30 @@
 %0A    public 
+final 
 String servi
@@ -1209,16 +1209,22 @@
  public 
+final 
 String p
@@ -1321,16 +1321,22 @@
  public 
+final 
 CordovaP
@@ -1456,32 +1456,32 @@
 alized.%0A     */%0A
-
     public boole
@@ -1475,16 +1475,22 @@
  public 
+final 
 boolean 

Mark PluginEntry fields as final