-
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.
Implemented the Faces scaffold provider
Removed Seam Render since it was resulting in WELD-1453/SOLDER-339. Switched the Seam Render templates to Freemarker. Unported APIs/classes are currently not used/commented out with TODOs.
- Loading branch information
1 parent
8ef6fe7
commit 399ee71
Showing
52 changed files
with
10,442 additions
and
15 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
46 changes: 46 additions & 0 deletions
46
scaffold/faces/src/main/java/org/jboss/forge/addon/scaffold/faces/FacesAccessStrategy.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,46 @@ | ||
/* | ||
* 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.addon.scaffold.faces; | ||
|
||
import java.util.List; | ||
|
||
import org.jboss.forge.addon.projects.Project; | ||
import org.jboss.forge.addon.resource.Resource; | ||
import org.jboss.forge.addon.scaffold.spi.AccessStrategy; | ||
import org.jboss.forge.addon.javaee.faces.FacesFacet; | ||
|
||
/** | ||
* Faces Scaffold Access Strategy | ||
* | ||
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a> | ||
*/ | ||
public class FacesAccessStrategy implements AccessStrategy | ||
{ | ||
final FacesFacet faces; | ||
|
||
public FacesAccessStrategy(final Project project) | ||
{ | ||
this.faces = project.getFacet(FacesFacet.class); | ||
} | ||
|
||
@Override | ||
public List<String> getWebPaths(final Resource<?> resource) | ||
{ | ||
//TODO Fix FacesFacet | ||
//return this.faces.getWebPaths(resource); | ||
return null; | ||
} | ||
|
||
@Override | ||
public Resource<?> fromWebPath(final String path) | ||
{ | ||
//TODO: Fix FacesFacet | ||
//return this.faces.getResourceForWebPath(path); | ||
return null; | ||
} | ||
|
||
} |
Oops, something went wrong.