Author: thomas.diesler(a)jboss.com
Date: 2007-07-26 05:14:44 -0400 (Thu, 26 Jul 2007)
New Revision: 3997
Modified:
trunk/build/eclipse/JBossWSCodeStyle.xml
trunk/integration/spi/src/main/java/org/jboss/wsf/framework/DefaultSPIProviderResolver.java
Log:
layout code
Modified: trunk/build/eclipse/JBossWSCodeStyle.xml
===================================================================
--- trunk/build/eclipse/JBossWSCodeStyle.xml 2007-07-26 09:07:09 UTC (rev 3996)
+++ trunk/build/eclipse/JBossWSCodeStyle.xml 2007-07-26 09:14:44 UTC (rev 3997)
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
-<profiles version="8">
-<profile name="JBossWSCodeStyle" version="8">
+<profiles version="10">
+<profile name="JBossWSCodeStyle" version="10">
<setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns"
value="false"/>
<setting
id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression"
value="16"/>
<setting
id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant"
value="16"/>
<setting
id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call"
value="16"/>
<setting
id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation"
value="16"/>
<setting
id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression"
value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment"
value="0"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression"
value="16"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_if"
value="16"/>
<setting
id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression"
value="80"/>
@@ -56,10 +57,12 @@
<setting id="org.eclipse.jdt.core.formatter.continuation_indentation"
value="2"/>
<setting
id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer"
value="2"/>
<setting
id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line"
value="false"/>
+<setting
id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header"
value="true"/>
<setting
id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header"
value="true"/>
<setting
id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header"
value="true"/>
<setting
id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header"
value="true"/>
<setting id="org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases"
value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_empty_lines"
value="false"/>
<setting
id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_block"
value="true"/>
<setting
id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_body"
value="true"/>
<setting
id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases"
value="true"/>
@@ -73,6 +76,7 @@
<setting
id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement"
value="insert"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement"
value="insert"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement"
value="insert"/>
+<setting
id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration"
value="insert"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration"
value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block"
value="insert"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant"
value="insert"/>
@@ -216,6 +220,7 @@
<setting
id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch"
value="insert"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized"
value="insert"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while"
value="insert"/>
+<setting
id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return"
value="insert"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator"
value="do not insert"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator"
value="do not insert"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional"
value="insert"/>
@@ -231,7 +236,7 @@
<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.insert_space_between_empty_parens_in_method_declaration"
value="do not insert"/>
<setting
id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation"
value="do not insert"/>
-<setting
id="org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line"
value="true"/>
+<setting
id="org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line"
value="false"/>
<setting
id="org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line"
value="false"/>
<setting id="org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line"
value="false"/>
<setting
id="org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line"
value="false"/>
Modified:
trunk/integration/spi/src/main/java/org/jboss/wsf/framework/DefaultSPIProviderResolver.java
===================================================================
---
trunk/integration/spi/src/main/java/org/jboss/wsf/framework/DefaultSPIProviderResolver.java 2007-07-26
09:07:09 UTC (rev 3996)
+++
trunk/integration/spi/src/main/java/org/jboss/wsf/framework/DefaultSPIProviderResolver.java 2007-07-26
09:14:44 UTC (rev 3997)
@@ -113,17 +113,13 @@
// help debugging
if (null == returnType)
throw new WSFException("Failed to provide SPI '" + spiType +
"'");
- else log.debug(spiType + " Implementation: " + returnType);
+ log.debug(spiType + " Implementation: " + returnType);
+
return returnType;
}
- /**
- * Load SPI implementation through ServiceLoader
- * @param spiType
- * @param defaultImpl
- * @return the spiType implementation
- */
+ // Load SPI implementation through ServiceLoader
private <T> T loadService(Class<T> spiType, String defaultImpl)
{
return (T)ServiceLoader.loadService(spiType.getName(), defaultImpl);
Show replies by date