Skip to content

Commit

Permalink
Version 1.3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
xdcrafts committed Jan 24, 2017
1 parent d616c6e commit e97f70d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 16 deletions.
4 changes: 2 additions & 2 deletions flower-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
<groupId>com.github.xdcrafts</groupId>
<artifactId>flower</artifactId>
<relativePath>..</relativePath>
<version>1.3.9</version>
<version>1.3.10</version>
</parent>

<dependencies>
<dependency>
<groupId>com.github.xdcrafts</groupId>
<artifactId>flower-tools</artifactId>
<version>1.3.9</version>
<version>1.3.10</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
4 changes: 2 additions & 2 deletions flower-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
<groupId>com.github.xdcrafts</groupId>
<artifactId>flower</artifactId>
<relativePath>..</relativePath>
<version>1.3.9</version>
<version>1.3.10</version>
</parent>

<dependencies>
<dependency>
<groupId>com.github.xdcrafts</groupId>
<artifactId>flower-core</artifactId>
<version>1.3.9</version>
<version>1.3.10</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
import com.github.xdcrafts.flower.core.Middleware;
import com.github.xdcrafts.flower.core.impl.actions.DefaultAction;
import com.github.xdcrafts.flower.core.impl.extensions.DefaultExtension;
import com.github.xdcrafts.flower.tools.ClassApi;
import org.springframework.beans.factory.annotation.Required;

import java.lang.invoke.MethodHandles;
import java.security.SecureRandom;
import java.util.Collections;
import java.util.List;
Expand Down Expand Up @@ -77,10 +77,9 @@ private Action toAction(Object item) {
String name;
List<Middleware> middleware;
try {
name = (String) MethodHandles
.lookup()
.findGetter(item.getClass(), "name", String.class)
.invoke();
name = (String) ClassApi
.findMethod(item.getClass(), "getName")
.invoke(item);
middleware = getMiddleware(name);
} catch (Throwable t) {
name = item.getClass().getName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import com.github.xdcrafts.flower.core.Middleware;
import com.github.xdcrafts.flower.core.impl.actions.DefaultAction;
import com.github.xdcrafts.flower.spring.impl.AbstractActionFactoryBean;
import com.github.xdcrafts.flower.tools.ClassApi;

import java.lang.invoke.MethodHandles;
import java.security.SecureRandom;
import java.util.Collections;
import java.util.List;
Expand Down Expand Up @@ -51,10 +51,9 @@ protected Action toAction(Object item) {
String name;
List<Middleware> middleware;
try {
name = (String) MethodHandles
.lookup()
.findGetter(item.getClass(), "name", String.class)
.invoke();
name = (String) ClassApi
.findMethod(item.getClass(), "getName")
.invoke(item);
middleware = getMiddleware(name);
} catch (Throwable t) {
name = item.getClass().getName();
Expand Down
2 changes: 1 addition & 1 deletion flower-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<groupId>com.github.xdcrafts</groupId>
<artifactId>flower</artifactId>
<relativePath>..</relativePath>
<version>1.3.9</version>
<version>1.3.10</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>com.github.xdcrafts</groupId>
<artifactId>flower</artifactId>
<packaging>pom</packaging>
<version>1.3.9</version>
<version>1.3.10</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>Data-driven workflows with Java.</description>
<url>https://github.com/xdcrafts/flower</url>
Expand Down

0 comments on commit e97f70d

Please sign in to comment.