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
SimpleEventForwardTest.java: | |
... | |
@Deployment | |
public static JavaArchive createTestDeployment() | |
{ | |
JavaArchive archive = Archives.create("test.jar", JavaArchive.class); | |
archive.addPackages(false, Seam3JmsExtension.class.getPackage(), SimpleEventForwardTest.class.getPackage(), Destination.class.getPackage()); | |
archive.addManifestResource(new ByteArrayAsset("<beans/>".getBytes()), ArchivePaths.create("beans.xml")); |
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.jboss.seam.jms.impl.inject; | |
import javax.enterprise.context.RequestScoped; | |
import javax.enterprise.inject.Any; | |
import javax.enterprise.inject.Instance; | |
import javax.enterprise.inject.Produces; | |
import javax.enterprise.inject.spi.InjectionPoint; | |
import javax.inject.Inject; | |
import javax.jms.JMSException; | |
import javax.jms.Queue; |
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.jboss.seam.examples.booking.booking; | |
import javax.enterprise.event.Observes; | |
import javax.enterprise.event.TransactionPhase; | |
import javax.inject.Inject; | |
import org.jboss.seam.examples.booking.model.Booking; | |
import org.slf4j.Logger; | |
public class ReservationNotifierBean implements ReservationNotifier | |
{ |
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
public interface Report<T extends ReportDataSource, I extends ReportInstance> { | |
I fill(T dataSource, Map<String, Object> parameters) throws ReportException; | |
} |
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.pentaho.hadoop.mapreduce.converter; | |
import org.pentaho.di.core.row.ValueMetaInterface; | |
/** | |
* Provides conversion between types | |
* | |
* @param <F> Type this converter can convert from | |
* @param <T> Type this converter can convert to | |
*/ |
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
puts "Happy Birthday, mojavelinux!" |
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
// Create a test hadoop configuration "a" | |
FileObject ramRoot = VFS.getManager().resolveFile(HADOOP_CONFIGURATIONS_PATH); | |
FileObject aConfigFolder = ramRoot.resolveFile("hadoop-configurations/a"); | |
aConfigFolder.createFolder(); | |
assertEquals(FileType.FOLDER, aConfigFolder.getType()); | |
// Create the properties file for the configuration as hadoop-configurations/a/config.properties | |
FileObject configFile = aConfigFolder.resolveFile("config.properties"); | |
Properties p = new Properties(); | |
p.setProperty("name", "Test Configuration A"); |
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
private boolean closeETLTabs(boolean save) throws KettleException { | |
Spoon spoonInstance = Spoon.getInstance(); | |
int numTabs = spoonInstance.delegates.tabs.getTabs().size(); | |
for (int i = numTabs - 1; i >= 0; i--) { | |
spoonInstance.tabfolder.setSelected(i); | |
// Logic copied directly out of SpoonTabsDelegate.tabClose(). That needs to be refactored badly. | |
Object control = spoonInstance.tabfolder.getSelected().getControl(); | |
// Save the changes if we're requested to and the control object is a tab item | |
if (save && control instanceof TabItemInterface) { | |
TabItemInterface tabItem = (TabItemInterface) control; |
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
<assembly> | |
<id>for-remote-topology</id> | |
<formats> | |
<format>jar</format> | |
</formats> | |
<includeBaseDirectory>false</includeBaseDirectory> | |
<dependencySets> | |
<dependencySet> | |
<unpack>true</unpack> | |
<scope>runtime</scope> |
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
# Clone PebbleJS' repo. This is the basis for all PebbleJS apps and includes | |
# libraries such as 'ajax', and 'ui'. | |
git clone git@github.com:pebble/pebblejs.git | |
# Tell Node where to find the PebbleJS modules | |
export NODE_PATH=$NODE_PATH:$(pwd)/pebblejs/js:$(pwd)/pebblejs/js/lib | |
# Pull down the XMLHttpRequest module into the current working directory. | |
# The 'ajax' module requires this. | |
npm install xmlhttprequest | |
OlderNewer