Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWITCHYARD-2397: Upgrade Drools/jBPM to 6.2.0.BetaX and RuntimeEngine refactoring #673

Merged
merged 1 commit into from Dec 3, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -13,12 +13,14 @@
*/
package org.switchyard.config.model;

import java.io.Serializable;

/**
* Represents config model namespace.
*
* @author David Ward &lt;<a href="mailto:dward@jboss.org">dward@jboss.org</a>&gt; &copy; 2013 Red Hat Inc.
*/
public interface Namespace {
public interface Namespace extends Serializable {

/**
* The namespace section.
Expand Down Expand Up @@ -61,6 +63,7 @@ public interface Namespace {
/**
* A utility class for Namespace enums, since enums can't have extend base classes.
*/
@SuppressWarnings("serial")
public static abstract class Util implements Namespace {

private final String _section;
Expand Down
Expand Up @@ -95,6 +95,7 @@ public static SCANamespace fromUri(String uri) {
return Util.fromUri(SCANamespace.class, uri);
}

@SuppressWarnings("serial")
private static final class Util extends Namespace.Util {
// static final since we only want to do the somewhat expensive work of instantiating this once!
private static final Descriptor DESCRIPTOR = new Descriptor(SCANamespace.class);
Expand Down
Expand Up @@ -99,6 +99,7 @@ public static SwitchYardNamespace fromUri(String uri) {
return Util.fromUri(SwitchYardNamespace.class, uri);
}

@SuppressWarnings("serial")
private static final class Util extends Namespace.Util {
// static final since we only want to do the somewhat expensive work of instantiating this once!
private static final Descriptor DESCRIPTOR = new Descriptor(SwitchYardNamespace.class);
Expand Down
Expand Up @@ -28,6 +28,7 @@
import javax.security.auth.login.LoginException;

import org.switchyard.common.io.pull.PropertiesPuller;
import org.switchyard.common.io.pull.PropertiesPuller.PropertiesType;
import org.switchyard.common.io.pull.Puller.PathType;
import org.switchyard.common.lang.Strings;
import org.switchyard.security.BaseSecurityMessages;
Expand Down Expand Up @@ -158,7 +159,8 @@ private KeyStore getKeyStore() throws LoginException {
private Properties getRolesProperties() {
String rolesPropertiesFile = getOption("rolesProperties", false);
if (rolesPropertiesFile != null) {
return new PropertiesPuller().pullPath(rolesPropertiesFile, getClass(), PathType.values());
PropertiesType propertiesType = rolesPropertiesFile.endsWith(".xml") ? PropertiesType.XML : PropertiesType.PROPERTIES;
return new PropertiesPuller(propertiesType).pullPath(rolesPropertiesFile, getClass(), PathType.values());
}
return null;
}
Expand Down
Expand Up @@ -99,6 +99,7 @@ public static TransformNamespace fromUri(String uri) {
return Util.fromUri(TransformNamespace.class, uri);
}

@SuppressWarnings("serial")
private static final class Util extends Namespace.Util {
// static final since we only want to do the somewhat expensive work of instantiating this once!
private static final Descriptor DESCRIPTOR = new Descriptor(TransformNamespace.class);
Expand Down
Expand Up @@ -99,6 +99,7 @@ public static ValidateNamespace fromUri(String uri) {
return Util.fromUri(ValidateNamespace.class, uri);
}

@SuppressWarnings("serial")
private static final class Util extends Namespace.Util {
// static final since we only want to do the somewhat expensive work of instantiating this once!
private static final Descriptor DESCRIPTOR = new Descriptor(ValidateNamespace.class);
Expand Down