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
@PostConstruct | |
private void init() { | |
final HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest(); | |
// This basically makes the state parameter the conversation id | |
final String state = request.getParameter("state"); | |
httpConversationContext.deactivate(); | |
httpConversationContext.activate(state); | |
} |
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
export PATH="/opt/local/bin:/opt/local/sbin:/opt/local/Library/Frameworks/Python.framework/Versions/3.3/bin:$PATH" |
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
sudo -H pip install hovercraft |
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
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 |
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
sudo port install python33 py33-pip |
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
[PROCESS] org.coffeecrew.tutorials.simplepluginmechanism.ProcessPlugin | |
[PROCESS] org.coffeecrew.tutorials.simplepluginmechanism.MoreProcessPlugin | |
[POST_PROCESS] org.coffeecrew.tutorials.simplepluginmechanism.PostProcessPlugin |
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
[PRE_PROCESS] org.coffeecrew.tutorials.simplepluginmechanism.PreProcessPlugin | |
[PROCESS] org.coffeecrew.tutorials.simplepluginmechanism.ProcessPlugin | |
[PROCESS] org.coffeecrew.tutorials.simplepluginmechanism.MoreProcessPlugin | |
[POST_PROCESS] org.coffeecrew.tutorials.simplepluginmechanism.PostProcessPlugin |
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
package org.coffeecrew.tutorials.simplepluginmechanism; | |
import java.util.Collection; | |
import org.openide.util.Lookup; | |
public class SimplePhaseExecutor { | |
public static void main(String[] args) { | |
String processingToken = ""; |
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
package org.coffeecrew.tutorials.simplepluginmechanism; | |
public enum Phase { | |
PRE_PROCESS(PreProcessable.class), | |
PROCESS(Processable.class), | |
POST_PROCESS(PostProcessable.class); | |
private final Class<? extends Plugin> plugin; | |
private Phase(Class<? extends Plugin> plugin) { |
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
[PRE_PROCESS] org.coffeecrew.tutorials.simplepluginmechanism.PreProcessPlugin | |
[PROCESS] org.coffeecrew.tutorials.simplepluginmechanism.MoreProcessPlugin | |
[PROCESS] org.coffeecrew.tutorials.simplepluginmechanism.ProcessPlugin | |
[POST_PROCESS] org.coffeecrew.tutorials.simplepluginmechanism.PostProcessPlugin |