org.overlord.commons.dev.server.discovery
Class WebAppModuleFromMavenDiscoveryStrategy
java.lang.Object
org.overlord.commons.dev.server.discovery.AbstractModuleDiscoveryStrategy
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebAppModuleFromMavenDiscoveryStrategy
public WebAppModuleFromMavenDiscoveryStrategy(Class<?> someClass)
- Constructor.
- Parameters:
someClass -
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.