Revision 21070 trunk/libraries/libMetadata/src/org/gvsig/metadata/MDLocator.java

View differences:

MDLocator.java
37 37
	
38 38
	private static MDManager manager = null;
39 39
	
40
	/**
41
	 * MDLocator constructor. Invokes the install(Class) function with a SimpleMDManager class as a parameter
42
	 */
40 43
	public MDLocator() {
41 44
		install(SimpleMDManager.class);
42 45
	}
43 46
	
47
	/**
48
	 * Creates an instance of the class passed as a parameter and stores it in the variable 'manager'
49
	 * @param mdManager	the function creates an instance from this class
50
	 */
44 51
	public void install(Class mdManager) {
45 52
		try {
46 53
			manager = (MDManager) mdManager.newInstance();
......
53 60
		}
54 61
	}
55 62
	
63
	/**
64
	 * Retrieves an object which implements the MDManager interface
65
	 * @return	a SimpleMDManager instance
66
	 */
56 67
	public static MDManager getManager() {
57 68
		return manager;
58 69
	}

Also available in: Unified diff