Java Doc for PolicyLogger.java in  » 6.0-JDK-Modules-com.sun » wsit » com » sun » xml » ws » policy » privateutil » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules com.sun » wsit » com.sun.xml.ws.policy.privateutil 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.ws.policy.privateutil.PolicyLogger

PolicyLogger
final public class PolicyLogger (Code)
This is a helper class that provides some conveniece methods wrapped around the standard java.util.logging.Logger interface.
author:
   Marek Potociar




Method Summary
public  voidconfig(String message)
    
public  voidconfig(String message, Throwable thrown)
    
public  voidentering()
    
public  voidentering(Object... parameters)
    
public  voidexiting()
    
public  voidexiting(Object result)
    
public  voidfine(String message)
    
public  voidfine(String message, Throwable thrown)
    
public  voidfiner(String message)
    
public  voidfiner(String message, Throwable thrown)
    
public  voidfinest(String message)
    
public  voidfinest(String message, Throwable thrown)
    
public static  PolicyLoggergetLogger(Class componentClass)
     The factory method returns preconfigured PolicyLogger wrapper for the class.
public  voidinfo(String message)
    
public  voidinfo(String message, Throwable thrown)
    
public  booleanisLoggable(Level level)
    
public  booleanisMethodCallLoggable()
    
public  voidlog(Level level, String message)
    
public  voidlog(Level level, String message, Throwable thrown)
    
public  TlogException(T exception, Throwable cause, Level level)
     Method logs exception 's message at the logging level specified by the level argument.

If cause parameter is not null , it is logged as well and exception original cause is initialized with instance referenced by cause parameter.
Parameters:
  exception - exception whose message should be logged.

public  TlogException(T exception, boolean logCause, Level level)
     Method logs exception 's message at the logging level specified by the level argument.

If logCause parameter is true , exception 's original cause is logged as well (if exists).

public  TlogException(T exception, Level level)
     Same as PolicyLogger.logException(Throwable,Throwable,Level) logException(exception, true, level) .
public  TlogSevereException(T exception, Throwable cause)
     Method logs exception 's message as a SEVERE logging level message.

If cause parameter is not null , it is logged as well and exception original cause is initialized with instance referenced by cause parameter.
Parameters:
  exception - exception whose message should be logged.

public  TlogSevereException(T exception, boolean logCause)
     Method logs exception 's message as a SEVERE logging level message.

If logCause parameter is true , exception 's original cause is logged as well (if exists).

public  TlogSevereException(T exception)
     Same as PolicyLogger.logSevereException(Throwable,boolean) logSevereException(exception, true) .
public  voidsetLevel(Level level)
    
public  voidsevere(String message)
    
public  voidsevere(String message, Throwable thrown)
    
public  voidwarning(String message)
    
public  voidwarning(String message, Throwable thrown)
    



Method Detail
config
public void config(String message)(Code)



config
public void config(String message, Throwable thrown)(Code)



entering
public void entering()(Code)



entering
public void entering(Object... parameters)(Code)



exiting
public void exiting()(Code)



exiting
public void exiting(Object result)(Code)



fine
public void fine(String message)(Code)



fine
public void fine(String message, Throwable thrown)(Code)



finer
public void finer(String message)(Code)



finer
public void finer(String message, Throwable thrown)(Code)



finest
public void finest(String message)(Code)



finest
public void finest(String message, Throwable thrown)(Code)



getLogger
public static PolicyLogger getLogger(Class componentClass)(Code)
The factory method returns preconfigured PolicyLogger wrapper for the class. Since there is no caching implemented, it is advised that the method is called only once per a class in order to initialize a final static logger variable, which is then used through the class to perform actual logging tasks.
Parameters:
  componentClass - class of the component that will use the logger instance. Must not be null . logger instance preconfigured for use with the component
throws:
  NullPointerException - if the componentClass parameter is null .



info
public void info(String message)(Code)



info
public void info(String message, Throwable thrown)(Code)



isLoggable
public boolean isLoggable(Level level)(Code)



isMethodCallLoggable
public boolean isMethodCallLoggable()(Code)



log
public void log(Level level, String message)(Code)



log
public void log(Level level, String message, Throwable thrown)(Code)



logException
public T logException(T exception, Throwable cause, Level level)(Code)
Method logs exception 's message at the logging level specified by the level argument.

If cause parameter is not null , it is logged as well and exception original cause is initialized with instance referenced by cause parameter.
Parameters:
  exception - exception whose message should be logged. Must not be null .
Parameters:
  cause - initial cause of the exception that should be logged as welland set as exception 's original cause. May be null .
Parameters:
  level - loging level which should be used for logging the same exception instance that was passed in as the exception parameter.




logException
public T logException(T exception, boolean logCause, Level level)(Code)
Method logs exception 's message at the logging level specified by the level argument.

If logCause parameter is true , exception 's original cause is logged as well (if exists). This may be used in cases when exception 's class provides constructor to initialize the original cause. In such case you do not need to use PolicyLogger.logException(Throwable,Throwable,Level) logException(exception, cause, level) method version but you might still want to log the original cause as well.
Parameters:
  exception - exception whose message should be logged. Must not be null .
Parameters:
  logCause - deterimnes whether initial cause of the exception shouldbe logged as well
Parameters:
  level - loging level which should be used for logging the same exception instance that was passed in as the exception parameter.




logException
public T logException(T exception, Level level)(Code)
Same as PolicyLogger.logException(Throwable,Throwable,Level) logException(exception, true, level) .



logSevereException
public T logSevereException(T exception, Throwable cause)(Code)
Method logs exception 's message as a SEVERE logging level message.

If cause parameter is not null , it is logged as well and exception original cause is initialized with instance referenced by cause parameter.
Parameters:
  exception - exception whose message should be logged. Must not be null .
Parameters:
  cause - initial cause of the exception that should be logged as welland set as exception 's original cause. May be null . the same exception instance that was passed in as the exception parameter.




logSevereException
public T logSevereException(T exception, boolean logCause)(Code)
Method logs exception 's message as a SEVERE logging level message.

If logCause parameter is true , exception 's original cause is logged as well (if exists). This may be used in cases when exception 's class provides constructor to initialize the original cause. In such case you do not need to use PolicyLogger.logSevereException(Throwable,Throwable) method version but you might still want to log the original cause as well.
Parameters:
  exception - exception whose message should be logged. Must not be null .
Parameters:
  logCause - deterimnes whether initial cause of the exception shouldbe logged as well the same exception instance that was passed in as the exception parameter.




logSevereException
public T logSevereException(T exception)(Code)
Same as PolicyLogger.logSevereException(Throwable,boolean) logSevereException(exception, true) .



setLevel
public void setLevel(Level level)(Code)



severe
public void severe(String message)(Code)



severe
public void severe(String message, Throwable thrown)(Code)



warning
public void warning(String message)(Code)



warning
public void warning(String message, Throwable thrown)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.