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

java.lang.Object
  extended by org.overlord.commons.dev.server.discovery.AbstractModuleDiscoveryStrategy
      extended by org.overlord.commons.dev.server.discovery.WebAppModuleFromMavenDiscoveryStrategy
All Implemented Interfaces:
IModuleDiscoveryStrategy
Direct Known Subclasses:
ErraiWebAppModuleFromMavenDiscoveryStrategy

public class WebAppModuleFromMavenDiscoveryStrategy
extends AbstractModuleDiscoveryStrategy

Discovers the module when presumably running from maven. Basically this strategy tries to find the module by looking for a class on the classpath and assuming that it's in a JAR.

Author:
eric.wittmann@redhat.com

Constructor Summary
WebAppModuleFromMavenDiscoveryStrategy(Class<?> someClass)
          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

WebAppModuleFromMavenDiscoveryStrategy

public WebAppModuleFromMavenDiscoveryStrategy(Class<?> someClass)
Constructor.

Parameters:
someClass -
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.