Revision 670

View differences:

org.gvsig.animation3d/trunk/org.gvsig.animation3d/org.gvsig.animation3d.swing/org.gvsig.animation3d.swing.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
1
org.gvsig.animation3d.swing.impl.DefaultAnimation3DSwingLibrary
org.gvsig.animation3d/trunk/org.gvsig.animation3d/org.gvsig.animation3d.swing/org.gvsig.animation3d.swing.impl/src/main/java/org/gvsig/animation3d/swing/impl/DefaultAnimation3DSwingLibrary.java
1
package org.gvsig.animation3d.swing.impl;
2

  
3
import org.gvsig.animation3d.swing.api.Animation3DSwingLibrary;
4
import org.gvsig.animation3d.swing.api.Animation3DSwingLocator;
5
import org.gvsig.tools.library.AbstractLibrary;
6
import org.gvsig.tools.library.LibraryException;
7

  
8
/**
9
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
10
 *
11
 */
12
public class DefaultAnimation3DSwingLibrary extends AbstractLibrary {
13

  
14
    @Override
15
    public void doRegistration() {
16
        registerAsImplementationOf(Animation3DSwingLibrary.class);
17
    }
18

  
19
    @Override
20
    protected void doInitialize() throws LibraryException {
21
        Animation3DSwingLocator.registerDefaultManager(DefaultAnimation3DSwingManager.class);
22
    }
23

  
24
    @Override
25
    protected void doPostInitialize() throws LibraryException {
26

  
27
    }
28

  
29
}
org.gvsig.animation3d/trunk/org.gvsig.animation3d/org.gvsig.animation3d.swing/org.gvsig.animation3d.swing.impl/src/main/java/org/gvsig/animation3d/swing/impl/DefaultAnimation3DSwingManager.java
1
package org.gvsig.animation3d.swing.impl;
2

  
3
import org.gvsig.animation3d.swing.api.Animation3DSwingManager;
4

  
5

  
6
/**
7
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
8
 *
9
 */
10
public class DefaultAnimation3DSwingManager implements Animation3DSwingManager{
11

  
12
}
org.gvsig.animation3d/trunk/org.gvsig.animation3d/org.gvsig.animation3d.swing/org.gvsig.animation3d.swing.impl/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
  <parent>
4
    <groupId>org.gvsig</groupId>
5
    <artifactId>org.gvsig.animation3d.swing</artifactId>
6
    <version>1.0.0-SNAPSHOT</version>
7
  </parent>
8
  <artifactId>org.gvsig.animation3d.swing.impl</artifactId>
9
  <name>org.gvsig.animation3d.swing.impl</name>
10
  
11
  <dependencies>
12
  	<dependency>
13
  		<groupId>org.gvsig</groupId>
14
  		<artifactId>org.gvsig.animation3d.swing.api</artifactId>
15
  	</dependency>
16
  </dependencies>
17
</project>
org.gvsig.animation3d/trunk/org.gvsig.animation3d/org.gvsig.animation3d.swing/org.gvsig.animation3d.swing.api/src/main/java/org/gvsig/animation3d/swing/api/Animation3DSwingLocator.java
1
package org.gvsig.animation3d.swing.api;
2

  
3
import org.gvsig.tools.locator.BaseLocator;
4
import org.gvsig.tools.locator.Locator;
5
import org.gvsig.tools.locator.LocatorException;
6

  
7
/**
8
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
9
 *
10
 */
11
public class Animation3DSwingLocator extends BaseLocator {
12

  
13
    private static final String LOCATOR_NAME = "Animation3DSwingLocator";
14

  
15
    public static final String MANAGER_NAME = "Animation3D.SwingManager";
16

  
17
    private static final String MANAGER_DESCRIPTION = "Animation 3D Swing Manager";
18

  
19
    private static final Animation3DSwingLocator instance = new Animation3DSwingLocator();
20

  
21
    /**
22
     * Return the singleton instances.
23
     * 
24
     * @return the singleton instance
25
     */
26
    public static Animation3DSwingLocator getInstance() {
27
        return instance;
28
    }
29

  
30
    public String getLocatorName() {
31
        return LOCATOR_NAME;
32
    }
33

  
34
    /**
35
     * Return a reference to Animation3DSwingManager.
36
     * 
37
     * @return a reference to Animation3DSwingManager
38
     * @throws LocatorException
39
     *             if there is no access to the class or the class
40
     *             cannot be instantiated
41
     * @see Locator#get(String) Animation3DSwingManager
42
     */
43
    public static Animation3DSwingManager getManager() throws LocatorException {
44
        return (Animation3DSwingManager) getInstance().get(MANAGER_NAME);
45
    }
46

  
47
    /**
48
     * Registers the Class implementing the Animation3DSwingManager interface.
49
     * 
50
     * @param clazz
51
     *            implementing the Animation3DSwingManager interface
52
     */
53
    public static void registerManager(Class clazz) {
54
        getInstance().register(MANAGER_NAME, MANAGER_DESCRIPTION, clazz);
55
    }
56

  
57
    public static void registerDefaultManager(Class clazz) {
58
        getInstance().registerDefault(MANAGER_NAME, MANAGER_DESCRIPTION, clazz);
59
    }
60

  
61
}
org.gvsig.animation3d/trunk/org.gvsig.animation3d/org.gvsig.animation3d.swing/org.gvsig.animation3d.swing.api/src/main/java/org/gvsig/animation3d/swing/api/Animation3DSwingLibrary.java
1
package org.gvsig.animation3d.swing.api;
2

  
3
import org.gvsig.tools.library.AbstractLibrary;
4
import org.gvsig.tools.library.LibraryException;
5
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
6
import org.gvsig.view3d.swing.api.View3DSwingLibrary;
7

  
8

  
9
/**
10
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
11
 *
12
 */
13
public class Animation3DSwingLibrary extends AbstractLibrary {
14
    
15
    @Override
16
    public void doRegistration() {
17
        registerAsAPI(Animation3DSwingLibrary.class);
18
        require(View3DSwingLibrary.class);
19
    }
20

  
21
    @Override
22
    protected void doInitialize() throws LibraryException {
23

  
24
    }
25

  
26
    @Override
27
    protected void doPostInitialize() throws LibraryException {
28
        Animation3DSwingManager manager = Animation3DSwingLocator.getManager();
29
        if (manager == null) {
30
            throw new ReferenceNotRegisteredException(
31
                Animation3DSwingLocator.MANAGER_NAME, Animation3DSwingLocator.getInstance());
32
        }
33
    }
34

  
35
}
org.gvsig.animation3d/trunk/org.gvsig.animation3d/org.gvsig.animation3d.swing/org.gvsig.animation3d.swing.api/src/main/java/org/gvsig/animation3d/swing/api/Animation3DSwingManager.java
1
package org.gvsig.animation3d.swing.api;
2

  
3
/**
4
 * 
5
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
6
 *
7
 */
8
public interface Animation3DSwingManager {
9

  
10
}
org.gvsig.animation3d/trunk/org.gvsig.animation3d/org.gvsig.animation3d.swing/org.gvsig.animation3d.swing.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
1
org.gvsig.animation3d.swing.api.Animation3DSwingLibrary
org.gvsig.animation3d/trunk/org.gvsig.animation3d/org.gvsig.animation3d.swing/org.gvsig.animation3d.swing.api/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
  <parent>
4
    <groupId>org.gvsig</groupId>
5
    <artifactId>org.gvsig.animation3d.swing</artifactId>
6
    <version>1.0.0-SNAPSHOT</version>
7
  </parent>
8
  <artifactId>org.gvsig.animation3d.swing.api</artifactId>
9
  <name>org.gvsig.animation3d.swing.api</name>
10
  
11
  <dependencies>
12
  	<dependency>
13
        <groupId>org.gvsig</groupId>
14
        <artifactId>org.gvsig.tools.lib</artifactId>
15
    </dependency>
16
    <dependency>
17
    	<groupId>org.gvsig</groupId>
18
    	<artifactId>org.gvsig.view3d.swing.api</artifactId>
19
    </dependency>
20
  </dependencies>
21
</project>
org.gvsig.animation3d/trunk/org.gvsig.animation3d/org.gvsig.animation3d.swing/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
  <parent>
4
    <groupId>org.gvsig</groupId>
5
    <artifactId>org.gvsig.animation3d</artifactId>
6
    <version>1.0.0-SNAPSHOT</version>
7
  </parent>
8
  <artifactId>org.gvsig.animation3d.swing</artifactId>
9
  <packaging>pom</packaging>
10
  <name>org.gvsig.animation3d.swing</name>
11
  <modules>
12
  	<module>org.gvsig.animation3d.swing.api</module>
13
  	<module>org.gvsig.animation3d.swing.impl</module>
14
  </modules>
15
</project>
org.gvsig.animation3d/trunk/org.gvsig.animation3d/org.gvsig.animation3d.app/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
  <parent>
4
    <groupId>org.gvsig</groupId>
5
    <artifactId>org.gvsig.animation3d</artifactId>
6
    <version>1.0.0-SNAPSHOT</version>
7
  </parent>
8
  <artifactId>org.gvsig.animation3d.app</artifactId>
9
  <packaging>pom</packaging>
10
  <name>org.gvsig.animation3d</name>
11
  <modules>
12
  	<module>org.gvsig.animation3d.app.mainplugin</module>
13
  </modules>
14
</project>
org.gvsig.animation3d/trunk/org.gvsig.animation3d/org.gvsig.animation3d.app/org.gvsig.animation3d.app.mainplugin/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
  <parent>
4
    <groupId>org.gvsig</groupId>
5
    <artifactId>org.gvsig.animation3d.app</artifactId>
6
    <version>1.0.0-SNAPSHOT</version>
7
  </parent>
8
  <artifactId>org.gvsig.animation3d.app.mainplugin</artifactId>
9
  <name>org.gvsig.animation3d.app.mainplugin</name>
10
</project>
org.gvsig.animation3d/trunk/org.gvsig.animation3d/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2
  <modelVersion>4.0.0</modelVersion>
3
  <parent>
4
    <groupId>org.gvsig</groupId>
5
    <artifactId>org.gvsig.desktop</artifactId>
6
    <version>2.0.143-SNAPSHOT</version>
7
  </parent>
8
  <groupId>org.gvsig</groupId>
9
  <artifactId>org.gvsig.animation3d</artifactId>
10
  <version>1.0.0-SNAPSHOT</version>
11
  <packaging>pom</packaging>
12
  <name>org.gvsig.animation3d</name>
13
  <modules>
14
  	<module>org.gvsig.animation3d.app</module>
15
  	<module>org.gvsig.animation3d.swing</module>
16
  </modules>
17
  
18
  <properties>
19
  	<org.gvsig.view3d.version>1.0.19-SNAPSHOT</org.gvsig.view3d.version>
20
  </properties>
21
  
22
  <dependencyManagement>
23
  	<dependencies>
24
		<dependency>
25
			<groupId>org.gvsig</groupId>
26
			<artifactId>org.gvsig.view3d</artifactId>
27
			<scope>import</scope>
28
			<type>pom</type>
29
			<version>${org.gvsig.view3d.version}</version>
30
		</dependency>
31
		<dependency>
32
			<groupId>org.gvsig</groupId>
33
			<artifactId>org.gvsig.animation3d.swing.api</artifactId>
34
			<version>1.0.0-SNAPSHOT</version>
35
		</dependency>
36
		<dependency>
37
			<groupId>org.gvsig</groupId>
38
			<artifactId>org.gvsig.animation3d.swing.impl</artifactId>
39
			<version>1.0.0-SNAPSHOT</version>
40
		</dependency>  	
41
  	</dependencies>
42
  </dependencyManagement>
43
</project>

Also available in: Unified diff