Revision 212 trunk/org.gvsig.scripting/org.gvsig.scripting.lib/org.gvsig.scripting.lib.api/src/main/java/org/gvsig/scripting/ScriptingLocator.java

View differences:

ScriptingLocator.java
31 31
	 *
32 32
	 * @return a String with the Locator's name
33 33
	 */
34
	public String getLocatorName() {
34
	@Override
35
    public String getLocatorName() {
35 36
		return LOCATOR_NAME;
36 37
	}
37 38

  
38
	/**
39
	 * Return a reference to PersistenceManager.
40
	 *
41
	 * @return a reference to PersistenceManager
42
	 * @throws LocatorException
43
	 *             if there is no access to the class or the class cannot be
44
	 *             instantiated
45
	 * @see Locator#get(String)
46
	 */
39
    /**
40
     * Return a reference to ScriptManager.
41
     * 
42
     * @return a reference to ScriptManager
43
     * @throws LocatorException
44
     *             if there is no access to the class or the class cannot be
45
     *             instantiated
46
     * @see Locator#get(String)
47
     */
47 48
	public static ScriptingManager getManager() throws LocatorException {
48 49
		return (ScriptingManager) getInstance().get(MANAGER_NAME);
49 50
	}
50 51

  
51
	/**
52
	 * Registers the Class implementing the PersistenceManager interface.
53
	 *
54
	 * @param clazz
55
	 *            implementing the PersistenceManager interface
56
	 */
57
	public static void registerManager(Class clazz) {
52
    /**
53
     * Registers the Class implementing the ScriptManager interface.
54
     * 
55
     * @param clazz
56
     *            implementing the ScriptManager interface
57
     */
58
    public static void registerManager(Class<? extends ScriptingManager> clazz) {
58 59
		getInstance().register(MANAGER_NAME, MANAGER_DESCRIPTION, clazz);
59 60
	}
60 61
	

Also available in: Unified diff