-
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.
Added EJBFacet and renamed BaseJavaEEFacet to AbstractJavaEEFacet
- Loading branch information
Showing
4 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
javaee/api/src/main/java/org/jboss/forge/javaee/spec/EJBFacet.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,19 @@ | ||
/* | ||
* Copyright 2012 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.javaee.spec; | ||
|
||
import org.jboss.forge.projects.Project; | ||
import org.jboss.forge.projects.ProjectFacet; | ||
|
||
/** | ||
* If installed, this {@link Project} supports features from the EJB specification. | ||
* | ||
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a> | ||
*/ | ||
public interface EJBFacet extends ProjectFacet | ||
{ | ||
} |
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
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
38 changes: 38 additions & 0 deletions
38
javaee/impl/src/main/java/org/jboss/forge/javaee/ejb/EJBFacetImpl.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,38 @@ | ||
/* | ||
* Copyright 2012 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.javaee.ejb; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import javax.inject.Inject; | ||
|
||
import org.jboss.forge.dependencies.Dependency; | ||
import org.jboss.forge.dependencies.builder.DependencyBuilder; | ||
import org.jboss.forge.javaee.AbstractJavaEEFacet; | ||
import org.jboss.forge.javaee.spec.EJBFacet; | ||
import org.jboss.forge.projects.dependencies.DependencyInstaller; | ||
|
||
/** | ||
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a> | ||
*/ | ||
public class EJBFacetImpl extends AbstractJavaEEFacet implements EJBFacet | ||
{ | ||
@Inject | ||
public EJBFacetImpl(final DependencyInstaller installer) | ||
{ | ||
super(installer); | ||
} | ||
|
||
@Override | ||
protected List<Dependency> getRequiredDependencies() | ||
{ | ||
return Arrays.asList( | ||
(Dependency) DependencyBuilder.create("org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec") | ||
); | ||
} | ||
} |