You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ps...@apache.org on 2007/03/30 00:42:17 UTC

svn commit: r523861 - in /logging/sandbox/LoggingDomains: .settings/ generic-src/org/apache/loggingdomains/ generic-test/org/apache/loggingdomains/ log4j-src/org/apache/log4j/loggingdomains/ log4j-src/org/apache/log4j/loggingdomains/jmx/ log4j-src/org/...

Author: psmith
Date: Thu Mar 29 15:42:14 2007
New Revision: 523861

URL: http://svn.apache.org/viewvc?view=rev&rev=523861
Log:
Purely code formatting and license addition changes.



Added:
    logging/sandbox/LoggingDomains/.settings/
    logging/sandbox/LoggingDomains/.settings/org.eclipse.jdt.core.prefs
    logging/sandbox/LoggingDomains/.settings/org.eclipse.jdt.ui.prefs
Modified:
    logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomain.java
    logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainListener.java
    logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainRegistry.java
    logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainUtils.java
    logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomains.java
    logging/sandbox/LoggingDomains/generic-test/org/apache/loggingdomains/LoggingDomainUtilsTest.java
    logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggerRepositoryPoller.java
    logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainConstants.java
    logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainExtractor.java
    logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainRegistry.java
    logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/AutomaticLog4jLoggingDomainJMXRegistator.java
    logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManager.java
    logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManagerMBean.java
    logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/spi/LoggerListener.java
    logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/Log4jLoggerDomainExtractorTest.java
    logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/Log4jLoggerRepositoryPollerTest.java
    logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManagerTestHarness.java

Added: logging/sandbox/LoggingDomains/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/.settings/org.eclipse.jdt.core.prefs?view=auto&rev=523861
==============================================================================
--- logging/sandbox/LoggingDomains/.settings/org.eclipse.jdt.core.prefs (added)
+++ logging/sandbox/LoggingDomains/.settings/org.eclipse.jdt.core.prefs Thu Mar 29 15:42:14 2007
@@ -0,0 +1,256 @@
+#Fri Mar 30 08:34:47 EST 2007
+eclipse.preferences.version=1
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=true
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=80
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=80
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=space
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=false

Added: logging/sandbox/LoggingDomains/.settings/org.eclipse.jdt.ui.prefs
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/.settings/org.eclipse.jdt.ui.prefs?view=auto&rev=523861
==============================================================================
--- logging/sandbox/LoggingDomains/.settings/org.eclipse.jdt.ui.prefs (added)
+++ logging/sandbox/LoggingDomains/.settings/org.eclipse.jdt.ui.prefs Thu Mar 29 15:42:14 2007
@@ -0,0 +1,53 @@
+#Fri Mar 30 08:34:47 EST 2007
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_Apache
+formatter_settings_version=11
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted
 \="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*\n * Copyright 2006 The Apache Software Foundation.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http\://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typ
 ecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.ecli
 pse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="
 true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" descriptio
 n\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.format_source_code=true
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true

Modified: logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomain.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomain.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomain.java (original)
+++ logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomain.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.loggingdomains;
 
 import java.util.ArrayList;
@@ -9,9 +24,10 @@
  * 'Loggers' of an unspecified type (generics).
  * 
  * @author psmith
- *
- * @param <T> Could be anything, but really only makes sense to be an org.apache.log4j.Logger or java.util.logging.Logger 
- * or equivalent
+ * 
+ * @param <T>
+ *            Could be anything, but really only makes sense to be an
+ *            org.apache.log4j.Logger or java.util.logging.Logger or equivalent
  */
 public class LoggingDomain<T> {
     private Collection<T> loggers = new ArrayList<T>();
@@ -28,19 +44,17 @@
     public Collection<T> getLoggers() {
         return Collections.<T> unmodifiableCollection(loggers);
     }
-    
+
     public String getDomainName() {
         return domainName;
     }
-    
+
     @Override
     public String toString() {
         StringBuilder buf = new StringBuilder();
-        buf.append(this.getClass().getSimpleName()).
-        append(System.identityHashCode(this)).
-        append("[domainName='").append(domainName).append("', ").
-        append("loggers=").append(loggers)
-        ;
+        buf.append(this.getClass().getSimpleName()).append(
+                System.identityHashCode(this)).append("[domainName='").append(
+                domainName).append("', ").append("loggers=").append(loggers);
         return buf.toString();
     }
 }

Modified: logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainListener.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainListener.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainListener.java (original)
+++ logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainListener.java Thu Mar 29 15:42:14 2007
@@ -1,13 +1,28 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.loggingdomains;
 
 /**
  * Listeners are interested when new LoggingDomain instances are located
  * 
  * @author psmith
- *
+ * 
  * @param <T>
  */
 public interface LoggingDomainListener<T> {
 
-        public void loggingDomainAdded(LoggingDomain<T> domain);
+    public void loggingDomainAdded(LoggingDomain<T> domain);
 }

Modified: logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainRegistry.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainRegistry.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainRegistry.java (original)
+++ logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainRegistry.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.loggingdomains;
 
 import java.util.ArrayList;
@@ -9,17 +24,17 @@
 /**
  * Central Registry for all observed LoggingDomain instances.
  * 
- * Other classes register here to notify that a Logger has been observed to be bound
- * to a specific LoggingDomain (by domain name)
+ * Other classes register here to notify that a Logger has been observed to be
+ * bound to a specific LoggingDomain (by domain name)
  * 
  * This class uses synchronization during new LoggingDomains being registered
- * and notifying listeners, which may delay new registrations, but does guarantee that no
- * registrations get missed.
+ * and notifying listeners, which may delay new registrations, but does
+ * guarantee that no registrations get missed.
  * 
  * TODO remove need for such coarse-grained synchronization
  * 
  * @author psmith
- *
+ * 
  * @param <T>
  */
 public class LoggingDomainRegistry<T> {
@@ -27,11 +42,10 @@
     private Map<String, LoggingDomain<T>> registeredDomains = Collections
             .synchronizedMap(new HashMap<String, LoggingDomain<T>>());
 
-    
     private Collection<LoggingDomainListener<T>> listeners = new ArrayList<LoggingDomainListener<T>>();
 
     private synchronized void addLoggingDomain(LoggingDomain<T> domain) {
-        registeredDomains.put(domain.getDomainName(),domain);
+        registeredDomains.put(domain.getDomainName(), domain);
         notifyOfNewLoggingDomain(domain);
     }
 
@@ -39,20 +53,23 @@
         listeners.add(listener);
     }
 
-    Collection<LoggingDomain<T>> observedDomains(){
+    Collection<LoggingDomain<T>> observedDomains() {
         return Collections.unmodifiableCollection(registeredDomains.values());
     }
-    
-    public synchronized void registerLoggerForDomains(T logger, Collection<LoggingDomain<T>> domains) {
-        if(domains.size() ==0) {
+
+    public synchronized void registerLoggerForDomains(T logger,
+            Collection<LoggingDomain<T>> domains) {
+        if (domains.size() == 0) {
             return;
         }
         synchronized (domains) {
             for (LoggingDomain<T> loggingDomain : domains) {
-                if (!registeredDomains.containsKey(loggingDomain.getDomainName())) {
+                if (!registeredDomains.containsKey(loggingDomain
+                        .getDomainName())) {
                     addLoggingDomain(loggingDomain);
                 }
-                LoggingDomain<T> domain = registeredDomains.get(loggingDomain.getDomainName());
+                LoggingDomain<T> domain = registeredDomains.get(loggingDomain
+                        .getDomainName());
                 domain.addLogger(logger);
             }
         }

Modified: logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainUtils.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainUtils.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainUtils.java (original)
+++ logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomainUtils.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.loggingdomains;
 
 import java.util.ArrayList;
@@ -5,26 +20,29 @@
 import java.util.Collections;
 
 public class LoggingDomainUtils {
-    
+
     /**
-     * Given a class, returns the set of LoggingDomains that the class has been marked with
-     * via the LoggingDomains annotations.
+     * Given a class, returns the set of LoggingDomains that the class has been
+     * marked with via the LoggingDomains annotations.
      * 
      * @param clazz
-     * @return {@link Collections} of LoggingDomain objects that the Class appears to have been
-     * marked as belonging to, or an Empty list is returned
+     * @return {@link Collections} of LoggingDomain objects that the Class
+     *         appears to have been marked as belonging to, or an Empty list is
+     *         returned
      */
-    public static <T> Collection<LoggingDomain<T>> extractLoggingDomains(Class<?> clazz){
-        if(clazz.isAnnotationPresent(LoggingDomains.class)) {
-            LoggingDomains domainsAnnotation = (LoggingDomains) clazz.getAnnotation(LoggingDomains.class);
+    public static <T> Collection<LoggingDomain<T>> extractLoggingDomains(
+            Class<?> clazz) {
+        if (clazz.isAnnotationPresent(LoggingDomains.class)) {
+            LoggingDomains domainsAnnotation = (LoggingDomains) clazz
+                    .getAnnotation(LoggingDomains.class);
             Collection<LoggingDomain<T>> loggingDomains = new ArrayList<LoggingDomain<T>>();
             String[] domains = domainsAnnotation.domains();
             for (String domain : domains) {
                 loggingDomains.add(new LoggingDomain<T>(domain));
             }
             return loggingDomains;
-        }else {
-            return Collections.<LoggingDomain<T>>emptyList();
+        } else {
+            return Collections.<LoggingDomain<T>> emptyList();
         }
     }
 }

Modified: logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomains.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomains.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomains.java (original)
+++ logging/sandbox/LoggingDomains/generic-src/org/apache/loggingdomains/LoggingDomains.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.loggingdomains;
 
 import java.lang.annotation.ElementType;
@@ -6,14 +21,14 @@
 import java.lang.annotation.Target;
 
 /**
- * One can annotate any class and specify a set of domain names that this classes' Logger
- * belongs to.
+ * One can annotate any class and specify a set of domain names that this
+ * classes' Logger belongs to.
  * 
  * TODO I'm really not happy with this name and it's semi-conflict/confusion
  * with LoggingDomain
  * 
  * @author psmith
- *
+ * 
  */
 @Retention(RetentionPolicy.RUNTIME)
 @Target( { ElementType.TYPE })

Modified: logging/sandbox/LoggingDomains/generic-test/org/apache/loggingdomains/LoggingDomainUtilsTest.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/generic-test/org/apache/loggingdomains/LoggingDomainUtilsTest.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/generic-test/org/apache/loggingdomains/LoggingDomainUtilsTest.java (original)
+++ logging/sandbox/LoggingDomains/generic-test/org/apache/loggingdomains/LoggingDomainUtilsTest.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.loggingdomains;
 
 import java.util.Collection;
@@ -6,18 +21,16 @@
 
 public class LoggingDomainUtilsTest extends TestCase {
 
-    
     public void testExtraction() {
 
-        Collection<LoggingDomain<Object>> domains = LoggingDomainUtils.extractLoggingDomains(TestAnnotatedClass.class);
-        
-        assertEquals("Should have located 2 domains",2, domains.size());
+        Collection<LoggingDomain<Object>> domains = LoggingDomainUtils
+                .extractLoggingDomains(TestAnnotatedClass.class);
+
+        assertEquals("Should have located 2 domains", 2, domains.size());
     }
-    
-    @LoggingDomains(
-            domains = {"Foo", "Bar"}
-    )
+
+    @LoggingDomains(domains = { "Foo", "Bar" })
     private static class TestAnnotatedClass {
-        
+
     }
 }

Modified: logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggerRepositoryPoller.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggerRepositoryPoller.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggerRepositoryPoller.java (original)
+++ logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggerRepositoryPoller.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.log4j.loggingdomains;
 
 import java.util.ArrayList;
@@ -16,27 +31,27 @@
 import org.apache.log4j.spi.LoggerRepository;
 import org.apache.loggingdomains.LoggingDomains;
 
-
 /**
- * Polling class on a specified LoggerRepository which monitors
- * the {@code getCurrentLoggers()} set of the repository for newly registered
+ * Polling class on a specified LoggerRepository which monitors the
+ * {@code getCurrentLoggers()} set of the repository for newly registered
  * Loggers.
  * 
- * This polling mechanism is required because the {@link LoggerRepository} does not 
- * specify announcement of new Loggers through the {@link HierarchyEventListener} 
- * listener interface.
- * 
- * Implementation Note: The polling is done via a Daemon Timer thread, which is kicked
- * off via the {@code start()} method and is shutdown via the corresponding {@code shutdown()}
- * method
+ * This polling mechanism is required because the {@link LoggerRepository} does
+ * not specify announcement of new Loggers through the
+ * {@link HierarchyEventListener} listener interface.
+ * 
+ * Implementation Note: The polling is done via a Daemon Timer thread, which is
+ * kicked off via the {@code start()} method and is shutdown via the
+ * corresponding {@code shutdown()} method
  * 
  * @author psmith
- *
+ * 
  */
-@LoggingDomains(domains= {Log4jLoggingDomainConstants.LOG4J_LOGGING_DOMAIN})
+@LoggingDomains(domains = { Log4jLoggingDomainConstants.LOG4J_LOGGING_DOMAIN })
 public class Log4jLoggerRepositoryPoller {
 
-    private static final Logger LOG = Logger.getLogger(Log4jLoggerRepositoryPoller.class);
+    private static final Logger LOG = Logger
+            .getLogger(Log4jLoggerRepositoryPoller.class);
 
     private final LoggerRepository repository;
     private static final int DEFAULT_POLL_INTERVAL = 5000;
@@ -51,6 +66,7 @@
 
     /**
      * Initializes the poller with the default polling interval of 5 seconds
+     * 
      * @param repository
      */
     public Log4jLoggerRepositoryPoller(LoggerRepository repository) {
@@ -61,10 +77,13 @@
      * Constructs, but does <b>NOT</b> start the repository poller.
      * 
      * You should call the {@code start()} method to begin polling activity.
+     * 
      * @param repository
-     * @param pollInterval number of seconds between polls
+     * @param pollInterval
+     *            number of seconds between polls
      */
-    public Log4jLoggerRepositoryPoller(LoggerRepository repository, int pollInterval) {
+    public Log4jLoggerRepositoryPoller(LoggerRepository repository,
+            int pollInterval) {
         this.repository = repository;
         this.pollInterval = pollInterval;
     }
@@ -78,19 +97,20 @@
     }
 
     /**
-     * Cancels the Daemon timer thread, and will no longer observe newly registered
-     * {@code Loggers}.
+     * Cancels the Daemon timer thread, and will no longer observe newly
+     * registered {@code Loggers}.
      */
     public void shutdown() {
         timer.cancel();
     }
 
     Map<String, Logger> observedLoggers() {
-        return Collections.<String, Logger>unmodifiableMap(loggers);
+        return Collections.<String, Logger> unmodifiableMap(loggers);
     }
 
     private void notifyListeners(Logger logger) {
-        Collection<LoggerListener> toNotify = new CopyOnWriteArrayList<LoggerListener>(loggerListeners);
+        Collection<LoggerListener> toNotify = new CopyOnWriteArrayList<LoggerListener>(
+                loggerListeners);
         for (LoggerListener loggerListener : toNotify) {
             loggerListener.loggerAdded(logger);
         }
@@ -124,8 +144,8 @@
     /**
      * Kickes off the Polling Daemon thread to monitor the LoggerRepository.
      * 
-     * Should {@link shutdown()} be called, a subsequent call to {@link start()} may or may
-     * not work, I haven't tried it! :)
+     * Should {@link shutdown()} be called, a subsequent call to {@link start()}
+     * may or may not work, I haven't tried it! :)
      */
     public void start() {
         timer.schedule(new Poller(), 0, pollInterval);

Modified: logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainConstants.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainConstants.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainConstants.java (original)
+++ logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainConstants.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.log4j.loggingdomains;
 
 public class Log4jLoggingDomainConstants {

Modified: logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainExtractor.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainExtractor.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainExtractor.java (original)
+++ logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainExtractor.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.log4j.loggingdomains;
 
 import java.util.Collection;
@@ -10,61 +25,75 @@
 import org.apache.loggingdomains.LoggingDomains;
 
 /**
- * This Class uses an internal poller class and listenes for the arrival of
- * new Loggers that have not been used before.
+ * This Class uses an internal poller class and listenes for the arrival of new
+ * Loggers that have not been used before.
  * 
- * The new Logger is treated as if it was created using the standard log4j practice
- * of using the containing classes name as it's logger name.  The name is converted to a class
- * and if successful, has it's Annotations inspected for the {@link LoggingDomains} entries,
- * and if found, tells the registry about this arrival.
+ * The new Logger is treated as if it was created using the standard log4j
+ * practice of using the containing classes name as it's logger name. The name
+ * is converted to a class and if successful, has it's Annotations inspected for
+ * the {@link LoggingDomains} entries, and if found, tells the registry about
+ * this arrival.
  * 
  * If the Logger name does not follow this pattern, then it is ignored.
  * 
- * In this way, the registry builds up a container of LoggingDomain->Logger mappings.
+ * In this way, the registry builds up a container of LoggingDomain->Logger
+ * mappings.
  * 
  * @see Log4jLoggerRepositoryPoller
  * @see Log4jLoggingDomainRegistry
- *
+ * 
  * @author psmith
  */
-@LoggingDomains(domains= {Log4jLoggingDomainConstants.LOG4J_LOGGING_DOMAIN})
+@LoggingDomains(domains = { Log4jLoggingDomainConstants.LOG4J_LOGGING_DOMAIN })
 public class Log4jLoggingDomainExtractor {
 
     private final Log4jLoggerRepositoryPoller poller;
     private final Log4jLoggingDomainRegistry registry;
-    
-    private static final Logger LOG = Logger.getLogger(Log4jLoggingDomainExtractor.class);
-    
-    public Log4jLoggingDomainExtractor(LoggerRepository repository, Log4jLoggingDomainRegistry registry) {
+
+    private static final Logger LOG = Logger
+            .getLogger(Log4jLoggingDomainExtractor.class);
+
+    public Log4jLoggingDomainExtractor(LoggerRepository repository,
+            Log4jLoggingDomainRegistry registry) {
         this.registry = registry;
         poller = new Log4jLoggerRepositoryPoller(repository);
         poller.addLoggerListener(new LoggingDomainExtractorListener());
         poller.start();
     }
-    
-    private class LoggingDomainExtractorListener implements LoggerListener{
+
+    private class LoggingDomainExtractorListener implements LoggerListener {
 
         public void loggerAdded(Logger logger) {
-            
-            // we assume the Logger's name is based on a Class, find that first, and extract it
-            
+
+            // we assume the Logger's name is based on a Class, find that first,
+            // and extract it
+
             try {
-                if(LOG.isTraceEnabled()) {
-                    LOG.trace("Examining '" + logger.getName() + "' for LoggingDomain");
+                if (LOG.isTraceEnabled()) {
+                    LOG.trace("Examining '" + logger.getName()
+                            + "' for LoggingDomain");
                 }
                 Class<?> clazz = Class.forName(logger.getName());
-                Collection<LoggingDomain<Logger>> domains = LoggingDomainUtils.extractLoggingDomains(clazz);
-                if(LOG.isTraceEnabled()) {
-                    LOG.trace("'" + logger.getName() + "' contains the following LoggingDomains: " + domains);
+                Collection<LoggingDomain<Logger>> domains = LoggingDomainUtils
+                        .extractLoggingDomains(clazz);
+                if (LOG.isTraceEnabled()) {
+                    LOG.trace("'" + logger.getName()
+                            + "' contains the following LoggingDomains: "
+                            + domains);
                 }
                 registry.registerLoggerForDomains(logger, domains);
             } catch (Exception e) {
-                if(LOG.isTraceEnabled()) {
-                    LOG.trace("Logger '" + logger.getName() + "' could not be inspected for LoggingDomain extraction, it's probably not a real class",e);
+                if (LOG.isTraceEnabled()) {
+                    LOG
+                            .trace(
+                                    "Logger '"
+                                            + logger.getName()
+                                            + "' could not be inspected for LoggingDomain extraction, it's probably not a real class",
+                                    e);
                 }
             }
         }
-        
+
     }
-    
+
 }

Modified: logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainRegistry.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainRegistry.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainRegistry.java (original)
+++ logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/Log4jLoggingDomainRegistry.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.log4j.loggingdomains;
 
 import org.apache.log4j.Logger;
@@ -5,5 +20,4 @@
 
 public class Log4jLoggingDomainRegistry extends LoggingDomainRegistry<Logger> {
 
-        
 }

Modified: logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/AutomaticLog4jLoggingDomainJMXRegistator.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/AutomaticLog4jLoggingDomainJMXRegistator.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/AutomaticLog4jLoggingDomainJMXRegistator.java (original)
+++ logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/AutomaticLog4jLoggingDomainJMXRegistator.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.log4j.loggingdomains.jmx;
 
 import java.text.MessageFormat;
@@ -15,8 +30,8 @@
 import org.apache.loggingdomains.LoggingDomains;
 
 /**
- * Automitacally creates and registers all observed LoggingDomains into the provided MBeanServer
- * under a specific object name format.
+ * Automitacally creates and registers all observed LoggingDomains into the
+ * provided MBeanServer under a specific object name format.
  * 
  * @author psmith
  */
@@ -29,24 +44,24 @@
     private final Log4jLoggingDomainRegistry registry = new Log4jLoggingDomainRegistry();
     private final Log4jLoggingDomainExtractor extractor;
     private final MBeanServer mbeanServer;
-    
-    
+
     public static final String DEFAULT_OBJECTNAME_FORMAT = "org.apache.log4j.loggingdomain:type=LoggingDomain,name={0}";
 
     private String objectNameFormat = DEFAULT_OBJECTNAME_FORMAT;
 
-    public AutomaticLog4jLoggingDomainJMXRegistator(LoggerRepository repository,
-            MBeanServer mbeanServer) {
+    public AutomaticLog4jLoggingDomainJMXRegistator(
+            LoggerRepository repository, MBeanServer mbeanServer) {
         this.extractor = new Log4jLoggingDomainExtractor(repository, registry);
         this.mbeanServer = mbeanServer;
-        registry.addLoggingDomainListener(new LoggingDomainListenerWhichDoesTheRegistration());
+        registry
+                .addLoggingDomainListener(new LoggingDomainListenerWhichDoesTheRegistration());
     }
 
     /**
      * And you thought some of my other class names were bizarre...
      * 
      * @author psmith
-     *
+     * 
      */
     private class LoggingDomainListenerWhichDoesTheRegistration implements
             LoggingDomainListener<Logger> {
@@ -55,15 +70,17 @@
             try {
                 // TODO escape sequences?
 
-                String formattedName = MessageFormat.format(objectNameFormat, domain
-                        .getDomainName());
+                String formattedName = MessageFormat.format(objectNameFormat,
+                        domain.getDomainName());
                 ObjectName objectName = new ObjectName(formattedName);
                 if (!mbeanServer.isRegistered(objectName)) {
-                    mbeanServer.registerMBean(new Log4jLoggingDomainJMXManager(domain), objectName);
+                    mbeanServer.registerMBean(new Log4jLoggingDomainJMXManager(
+                            domain), objectName);
                 }
             } catch (Exception e) {
-                LOG.error("Failed to automatically register a JMX MBean for domain '"
-                        + domain.getDomainName() + "'", e);
+                LOG.error(
+                        "Failed to automatically register a JMX MBean for domain '"
+                                + domain.getDomainName() + "'", e);
             }
 
         }
@@ -74,9 +91,9 @@
     }
 
     /**
-     * Configures the {@link MessageFormat} string pattern to use for JMX Mbean name registration.
-     * The String <B>must</b> contain '{0}' to be used as the placeholder for the LoggingDomain
-     * that is being registered.
+     * Configures the {@link MessageFormat} string pattern to use for JMX Mbean
+     * name registration. The String <B>must</b> contain '{0}' to be used as
+     * the placeholder for the LoggingDomain that is being registered.
      * 
      * @param objectNameFormat
      * @throws IllegalArgumentException
@@ -84,8 +101,10 @@
      */
     public void setObjectNameFormat(String objectNameFormat) {
         if (objectNameFormat == null || objectNameFormat.contains("{0}")) {
-            throw new IllegalArgumentException("'" + objectNameFormat
-                    + " does not contain '{0}' which is required for automatic registration");
+            throw new IllegalArgumentException(
+                    "'"
+                            + objectNameFormat
+                            + " does not contain '{0}' which is required for automatic registration");
         }
         this.objectNameFormat = objectNameFormat;
     }

Modified: logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManager.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManager.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManager.java (original)
+++ logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManager.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.log4j.loggingdomains.jmx;
 
 import javax.management.openmbean.CompositeDataSupport;
@@ -21,32 +36,38 @@
  */
 
 @LoggingDomains(domains = { Log4jLoggingDomainConstants.LOG4J_LOGGING_DOMAIN })
-public class Log4jLoggingDomainJMXManager implements Log4jLoggingDomainJMXManagerMBean {
+public class Log4jLoggingDomainJMXManager implements
+        Log4jLoggingDomainJMXManagerMBean {
 
-    private static final Logger LOG = Logger.getLogger(Log4jLoggingDomainJMXManager.class);
+    private static final Logger LOG = Logger
+            .getLogger(Log4jLoggingDomainJMXManager.class);
 
     private LoggingDomain<Logger> loggingDomain;
 
-    private static final String[] fields = new String[] { "Simple Name", "FQN", "Level" };
+    private static final String[] fields = new String[] { "Simple Name", "FQN",
+            "Level" };
     private static final String[] field_descriptions = new String[] {
-            "Simplified name, without 'package' information", "Fully Qualified Logger Name",
+            "Simplified name, without 'package' information",
+            "Fully Qualified Logger Name",
             "Explicit Level, or Effective Level if not set" };
-    private static final OpenType[] field_types = new OpenType[] { SimpleType.STRING,
-            SimpleType.STRING, SimpleType.STRING };
+    private static final OpenType[] field_types = new OpenType[] {
+            SimpleType.STRING, SimpleType.STRING, SimpleType.STRING };
 
     public Log4jLoggingDomainJMXManager(LoggingDomain<Logger> loggingDomain) {
         this.loggingDomain = loggingDomain;
     }
 
     public void configureLevelAcrossDomain(String newLevel) {
-        // TODO backup existing levels of all the Loggers belonging to the Domain
+        // TODO backup existing levels of all the Loggers belonging to the
+        // Domain
         Level level = Level.toLevel(newLevel);
 
         configureLevelAcrossDomain(level);
     }
 
     private void configureLevelAcrossDomain(Level level) {
-        LOG.debug("Configuring Level '" + level.toString() + "' across domain '" + loggingDomain.getDomainName() + "'");
+        LOG.debug("Configuring Level '" + level.toString()
+                + "' across domain '" + loggingDomain.getDomainName() + "'");
         for (Logger logger : loggingDomain.getLoggers()) {
             logger.setLevel(level);
         }
@@ -67,11 +88,16 @@
             for (Logger logger : loggingDomain.getLoggers()) {
                 Level level = logger.getLevel();
                 Level effectiveLevel = logger.getEffectiveLevel();
-                tds.put(new CompositeDataSupport(loggerLevelInfo, fields, new Object[] {
-                        getSimpleName(logger),
-                        logger.getName(),
-                        level == null ? "NOT EXPLICITLY SET, Effective Level=" + effectiveLevel
-                                : level.toString() }));
+                tds
+                        .put(new CompositeDataSupport(
+                                loggerLevelInfo,
+                                fields,
+                                new Object[] {
+                                        getSimpleName(logger),
+                                        logger.getName(),
+                                        level == null ? "NOT EXPLICITLY SET, Effective Level="
+                                                + effectiveLevel
+                                                : level.toString() }));
             }
             return tds;
         } catch (Exception e) {

Modified: logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManagerMBean.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManagerMBean.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManagerMBean.java (original)
+++ logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManagerMBean.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.log4j.loggingdomains.jmx;
 
 import javax.management.openmbean.TabularData;

Modified: logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/spi/LoggerListener.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/spi/LoggerListener.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/spi/LoggerListener.java (original)
+++ logging/sandbox/LoggingDomains/log4j-src/org/apache/log4j/spi/LoggerListener.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.log4j.spi;
 
 import org.apache.log4j.Logger;

Modified: logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/Log4jLoggerDomainExtractorTest.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/Log4jLoggerDomainExtractorTest.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/Log4jLoggerDomainExtractorTest.java (original)
+++ logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/Log4jLoggerDomainExtractorTest.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.log4j.loggingdomains;
 
 import java.util.concurrent.atomic.AtomicBoolean;
@@ -30,21 +45,21 @@
         };
 
         domainRegistry.addLoggingDomainListener(listener);
-        
+
         Foo foo = new Foo();
-        
-        Log4jLoggingDomainExtractor extractor = new Log4jLoggingDomainExtractor(repository,
-                domainRegistry);
-        
+
+        Log4jLoggingDomainExtractor extractor = new Log4jLoggingDomainExtractor(
+                repository, domainRegistry);
+
         Thread.sleep(2000);
-        
-        assertTrue("Should have been notified of new LoggingDomain", observedNewLoggingDomain.get());
-        
+
+        assertTrue("Should have been notified of new LoggingDomain",
+                observedNewLoggingDomain.get());
 
     }
-    
-    @LoggingDomains( domains= {"fooDomain"})
-    public static final class Foo{
+
+    @LoggingDomains(domains = { "fooDomain" })
+    public static final class Foo {
         private static final Logger LOG = Logger.getLogger(Foo.class);
     }
 }

Modified: logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/Log4jLoggerRepositoryPollerTest.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/Log4jLoggerRepositoryPollerTest.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/Log4jLoggerRepositoryPollerTest.java (original)
+++ logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/Log4jLoggerRepositoryPollerTest.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.log4j.loggingdomains;
 
 import java.util.concurrent.atomic.AtomicBoolean;
@@ -18,9 +33,10 @@
 
         LoggerRepository loggerRepository = LogManager.getLoggerRepository();
 
-        Log4jLoggerRepositoryPoller poller = new Log4jLoggerRepositoryPoller(loggerRepository, 100);
+        Log4jLoggerRepositoryPoller poller = new Log4jLoggerRepositoryPoller(
+                loggerRepository, 100);
         poller.start();
-        
+
         // the poller has it's own logger, but that should be it
         assertEquals(1, poller.observedLoggers().size());
 
@@ -28,28 +44,29 @@
         Thread.sleep(1000);
 
         // it's 2, because the poller will observe it's own Logger as well
-        assertEquals("Unexpected # of observed loggers: " + poller.observedLoggers(), 2, poller
-                .observedLoggers().size());
+        assertEquals("Unexpected # of observed loggers: "
+                + poller.observedLoggers(), 2, poller.observedLoggers().size());
 
-        
         final AtomicBoolean isNotified = new AtomicBoolean(false);
         final String expectedLoggerName = "eek";
         LoggerListener listener = new LoggerListener() {
 
             public void loggerAdded(Logger logger) {
-                if(logger.getName().equals(expectedLoggerName)) {
+                if (logger.getName().equals(expectedLoggerName)) {
                     isNotified.set(true);
                 }
-                
-            }};
+
+            }
+        };
 
         poller.addLoggerListener(listener);
-        
+
         Logger eekLogger = Logger.getLogger("eek");
         Thread.sleep(1000);
-        
-        assertTrue("Should have been notified about the 'eek' logger", isNotified.get());
-        
+
+        assertTrue("Should have been notified about the 'eek' logger",
+                isNotified.get());
+
         poller.shutdown();
     }
 

Modified: logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManagerTestHarness.java
URL: http://svn.apache.org/viewvc/logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManagerTestHarness.java?view=diff&rev=523861&r1=523860&r2=523861
==============================================================================
--- logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManagerTestHarness.java (original)
+++ logging/sandbox/LoggingDomains/log4j-test/org/apache/log4j/loggingdomains/jmx/Log4jLoggingDomainJMXManagerTestHarness.java Thu Mar 29 15:42:14 2007
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
 package org.apache.log4j.loggingdomains.jmx;
 
 import java.lang.management.ManagementFactory;
@@ -13,14 +28,14 @@
  * This class is just a demonstrator class that gathers the default MBeanServer
  * and sets up Automatic LoggingDomain registration for log4j Loggers.
  * 
- * This class requires that a few System properties to be setup so you can see it working properly
- * inside, say, JConsole:
+ * This class requires that a few System properties to be setup so you can see
+ * it working properly inside, say, JConsole:
  * 
  * <pre>
-  -Dcom.sun.management.jmxremote.port=9999 
-  -Dcom.sun.management.jmxremote.authenticate=false 
-  -Dcom.sun.management.jmxremote.ssl=false
-  </pre>
+ *  -Dcom.sun.management.jmxremote.port=9999 
+ *  -Dcom.sun.management.jmxremote.authenticate=false 
+ *  -Dcom.sun.management.jmxremote.ssl=false
+ * </pre>
  * 
  * 
  * @author psmith
@@ -30,21 +45,22 @@
 
     public static void main(String[] args) throws InterruptedException {
         // this just doesn't work:
-//        System.setProperty("com.sun.management.jmxremote.port", "9999");
-//        System.setProperty("com.sun.management.jmxremote.authenticate", "false");
-//        System.setProperty("com.sun.management.jmxremote.ssl", "false");
+        // System.setProperty("com.sun.management.jmxremote.port", "9999");
+        // System.setProperty("com.sun.management.jmxremote.authenticate",
+        // "false");
+        // System.setProperty("com.sun.management.jmxremote.ssl", "false");
 
         BasicConfigurator.configure();
-        
-        
+
         final MBeanServer server = ManagementFactory.getPlatformMBeanServer();
-        AutomaticLog4jLoggingDomainJMXRegistator registator = new AutomaticLog4jLoggingDomainJMXRegistator(LogManager.getLoggerRepository(), server);
-        
+        AutomaticLog4jLoggingDomainJMXRegistator registator = new AutomaticLog4jLoggingDomainJMXRegistator(
+                LogManager.getLoggerRepository(), server);
+
         Foo foo = new Foo();
-        synchronized(foo){
+        synchronized (foo) {
             foo.wait();
         }
-        
+
     }
 
     @LoggingDomains(domains = { "mydomain" })



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org