Skip to content

Commit

Permalink
Merge pull request #9 from support-project/develop
Browse files Browse the repository at this point in the history
Release v1.4.0
  • Loading branch information
koda-masaru committed May 23, 2016
2 parents 01d2a9f + d515903 commit cf5632e
Show file tree
Hide file tree
Showing 156 changed files with 18,158 additions and 17,073 deletions.
4 changes: 2 additions & 2 deletions config/code_format_on_eclipse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_imports" value="1"/>
Expand Down Expand Up @@ -202,7 +202,7 @@
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration" value="do not insert"/>
Expand Down
24 changes: 20 additions & 4 deletions config/stylecheck.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,25 @@ Slightly modified version of Sun Checks that better matches the default code for
<module name="TreeWalker">
<property name="tabWidth" value="4"/>
<module name="JavadocMethod">
<property name="severity" value="ignore"/>
<property name="allowMissingParamTags" value="true"/>
<property name="allowMissingThrowsTags" value="true"/>
<property name="allowMissingReturnTag" value="true"/>
<property name="suppressLoadErrors" value="true"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="JavadocType">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="JavadocVariable">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="JavadocType"/>
<module name="JavadocVariable"/>
<module name="JavadocStyle">
<property name="severity" value="ignore"/>
<property name="checkEmptyJavadoc" value="true"/>
<property name="checkFirstSentence" value="false"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="ConstantName"/>
Expand All @@ -37,7 +47,10 @@ Slightly modified version of Sun Checks that better matches the default code for
<module name="ParameterName"/>
<module name="StaticVariableName"/>
<module name="TypeName"/>
<module name="AvoidStarImport"/>
<module name="AvoidStarImport">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="IllegalImport"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
Expand Down Expand Up @@ -77,7 +90,9 @@ Slightly modified version of Sun Checks that better matches the default code for
<module name="AvoidNestedBlocks"/>
<module name="EmptyBlock"/>
<module name="LeftCurly"/>
<module name="NeedBraces"/>
<module name="NeedBraces">
<property name="tokens" value="LITERAL_DO,LITERAL_FOR,LITERAL_WHILE"/>
</module>
<module name="RightCurly"/>
<module name="AvoidInlineConditionals"/>
<module name="EmptyStatement"/>
Expand Down Expand Up @@ -131,6 +146,7 @@ Slightly modified version of Sun Checks that better matches the default code for
<module name="OperatorWrap">
<property name="tokens" value="BAND,BOR,BSR,BXOR,COLON,DIV,EQUAL,GE,GT,LAND,LE,LITERAL_INSTANCEOF,LOR,LT,MINUS,MOD,NOT_EQUAL,PLUS,SL,SR,STAR"/>
</module>
<module name="Indentation"/>
</module>
<module name="JavadocPackage">
<property name="severity" value="ignore"/>
Expand Down
3 changes: 2 additions & 1 deletion deploy.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#! /bin/bash
mvn clean deploy -DperformRelease=true -Dmaven.javadoc.skip=true -e
# mvn clean deploy -DperformRelease=true -Dmaven.javadoc.skip=true -e
mvn clean deploy -DperformRelease=true -e
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.support-project</groupId>
<artifactId>common</artifactId>
<version>1.3.0</version>
<version>1.4.0</version>
<packaging>jar</packaging>

<name>common</name>
Expand Down Expand Up @@ -106,6 +106,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.8</source>
Expand All @@ -128,6 +129,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.8</source>
Expand Down
20 changes: 9 additions & 11 deletions src/main/java/org/support/project/aop/Aspect.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,18 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
* AOP(メソッドへ)
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target( {ElementType.METHOD, ElementType.TYPE})
@Target({ ElementType.METHOD, ElementType.TYPE })
public @interface Aspect {
/**
* 実行するアドバイス
* @return
*/
Class<? extends Advice> advice();

/**
* 実行するアドバイス
*
* @return Advice
*/
Class<? extends Advice> advice();

}
24 changes: 14 additions & 10 deletions src/main/java/org/support/project/aop/GenericProxyFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@
* インスタンスのプロクシー
*/
public class GenericProxyFactory {
/**
* プロクシでラップしたオブジェクトを取得
* @param intf
* @param obj
* @return
*/
public static <T> T getProxy(Class<? extends T> intf, final T obj) {
return (T) Proxy.newProxyInstance(obj.getClass().getClassLoader(),
new Class[] { intf }, new Intercepter(intf, obj));
}
/**
* プロクシでラップしたオブジェクトを取得
*
* @param intf
* type
* @param obj
* object
* @param <T>
* type
* @return proxy object
*/
public static <T> T getProxy(Class<? extends T> intf, final T obj) {
return (T) Proxy.newProxyInstance(obj.getClass().getClassLoader(), new Class[] { intf }, new Intercepter(intf, obj));
}
}
Loading

0 comments on commit cf5632e

Please sign in to comment.