This file is indexed.

/usr/share/doc/libjpfcodegen-java/resources/templates/Plugin.vm is in libjpfcodegen-java 0.4+dfsg1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
package $packageName;

import ${packageName}.generated._$className;

import org.java.plugin.PluginLifecycleException;
import org.java.plugin.PluginManager;

#if ($doPlugin)
/**
 * Plug-in class for plug-in $id.
 * 
 * Feel free to modify this file, since only the class _$className 
 * (in the subpackage ${packageName}.generated)
 * will be overwritten, when you re-run the code generator.
 */
public class $className extends _$className {

    public void doStart(){
        // TODO: Will be called when plug-in is started.
    }

    public void doStop(){
        // TODO: Will be called when plug-in is stopped.
    }

    /**
	 * Retrieve the Plug-in instance from the given manager.
	 * 
	 * @param manager
	 *            The manager from which to retrieve the plug-in instance
	 * 
	 * @return The requested plug-in or null if not found.
	 */
	public static $className getInstance(PluginManager manager) {
		try {
			return ($className) manager
					.getPlugin(${className}.getId());
		} catch (PluginLifecycleException e) {
			return null;
		} catch (IllegalArgumentException e) {
		    return null;
		}
	}
}
#else
/**
 * Helper class for plug-in $id.
 * 
 * Feel free to modify this file, since only the class _$className 
 * (in the subpackage ${packageName}.generated)
 * will be overwritten, when you re-run the code generator.
 */
public class $className extends _$className {

    /**
     * Private constructor for singleton pattern.
     * 
     * Use getInstance instead.
     */
    $className(PluginManager manager){
        super(manager);
    }
    
    static $className singleton;

    /**
	 * Retrieve the helper class instance for the given plug-in $id
	 * 
	 * @param manager
	 *            The manager which manages the plug-in.
	 * 
	 * @return The requested helper or null if not found.
	 */
	public static $className getInstance(PluginManager manager) {
		if (singleton == null){
		    singleton = new $className(manager);
		}
		return singleton;
	}
}
#end