org.overlord.commons.dev.server.discovery
Class WebAppModuleFromMavenGAVStrategy

java.lang.Object
  extended by org.overlord.commons.dev.server.discovery.AbstractModuleDiscoveryStrategy
      extended by org.overlord.commons.dev.server.discovery.WebAppModuleFromMavenGAVStrategy
All Implemented Interfaces:
IModuleDiscoveryStrategy

public class WebAppModuleFromMavenGAVStrategy
extends AbstractModuleDiscoveryStrategy

Finds a web app from GAV information. Must be on the current classpath. This strategy is used when the web app doesn't have any actual classes in it. In those cases, the -classes.jar of the web app *still* needs to be on the classpath, but we search for the jar itself rather than a class in the jar.

Author:
eric.wittmann@redhat.com

Constructor Summary
WebAppModuleFromMavenGAVStrategy(String groupId, String artifactId)
          Constructor.
 
Method Summary
 DevServerModule discover(ModuleDiscoveryContext context)
           
 String getName()
           
 
Methods inherited from class org.overlord.commons.dev.server.discovery.AbstractModuleDiscoveryStrategy
debug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebAppModuleFromMavenGAVStrategy

public WebAppModuleFromMavenGAVStrategy(String groupId,
                                        String artifactId)
Constructor.

Parameters:
groupId -
artifactId -
Method Detail

getName

public String getName()
Returns:
the name of the strategy
See Also:
IModuleDiscoveryStrategy.getName()

discover

public DevServerModule discover(ModuleDiscoveryContext context)
Returns:
the discovered module or null if not found
See Also:
IModuleDiscoveryStrategy.discover(org.overlord.commons.dev.server.discovery.ModuleDiscoveryContext)


Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.