-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FORGE-2558: Created AbstractGenericProjectType
- Loading branch information
Showing
3 changed files
with
43 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
.../api/src/main/java/org/jboss/forge/addon/projects/generic/AbstractGenericProjectType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2015 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
|
||
package org.jboss.forge.addon.projects.generic; | ||
|
||
import java.util.Arrays; | ||
|
||
import org.jboss.forge.addon.projects.AbstractProjectType; | ||
import org.jboss.forge.addon.projects.ProjectFacet; | ||
import org.jboss.forge.addon.projects.ProjectType; | ||
import org.jboss.forge.addon.projects.facets.generic.GenericMetadataFacet; | ||
import org.jboss.forge.addon.projects.facets.generic.GenericProjectFacet; | ||
|
||
/** | ||
* A skeleton class for generic {@link ProjectType} implementations | ||
* | ||
* @author <a href="mailto:ggastald@redhat.com">George Gastaldi</a> | ||
*/ | ||
public abstract class AbstractGenericProjectType extends AbstractProjectType | ||
{ | ||
@Override | ||
public Iterable<Class<? extends ProjectFacet>> getRequiredFacets() | ||
{ | ||
return Arrays.<Class<? extends ProjectFacet>> asList(GenericProjectFacet.class, GenericMetadataFacet.class); | ||
} | ||
|
||
@Override | ||
public int priority() | ||
{ | ||
return Integer.MAX_VALUE; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters