OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

oracle.adfinternal.view.js.agent.ie
Class AdfCompositeLogWriter

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adf.view.js.logging.AdfLogWriter
               |
               +--oracle.adfinternal.view.js.agent.ie.AdfCompositeLogWriter
Direct Known Subclasses:
AdfIESwitchingLogWriter

public class AdfCompositeLogWriter
extends AdfLogWriter
LogWriter that composes a set of LogWriters together, sending all of the content to each. The constructor takes a vargargs list of other LogWriters



Field Summary

private Object
_logWriters


Fields inherited from oracle.adf.view.js.base.AdfObject

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfCompositeLogWriter()
LogWriter that composes a set of LogWriters together, sending all of the content to each.


Method Summary

protected Object
ApplyToAll(Object funcName, Object args)
call the function on all of the logWriters with the specified arguments
public Object
close()
Close the AdfLogWriter and free all associated resources.
public Object
flush()
Flush any buffered output.
protected Object
GetLogWriters()
protected Object
Init()
Initializes the instance.
public Object
publish(Object record)
Publish a AdfLogRecord.
public Object
setFilter(Object newFilter)
Changes the logging filter to the new filter.


Methods inherited from oracle.adf.view.js.logging.AdfLogWriter

CheckIfClosed, FormatError, FormatLevel, FormatLogRecord, FormatMessage, FormatWhen, getFilter, PublishImpl


Methods inherited from oracle.adf.view.js.base.AdfObject

adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString


Field Detail


_logWriters

private Object _logWriters

Constructor Detail


AdfCompositeLogWriter

public AdfCompositeLogWriter()

LogWriter that composes a set of LogWriters together, sending all of the content to each. The constructor takes a vargargs list of other LogWriters

Method Detail


ApplyToAll

protected Object ApplyToAll(Object funcName,
                            Object args)

call the function on all of the logWriters with the specified arguments

Parameters:
funcName    
args    
Return:
Object

close

public Object close()

Close the AdfLogWriter and free all associated resources.

The close method will perform a flush and then close the AdfLogWriter. After close has been called this AdfLogWriter should no longer be used. Method calls may either be silently ignored or may throw runtime exceptions.


Return:
Object
Overrides:
AdfLogWriter.close()

flush

public Object flush()

Flush any buffered output.

Return:
Object
Overrides:
AdfLogWriter.flush()

GetLogWriters

protected Object GetLogWriters()

Return:
Object

Init

protected Object Init()

Initializes the instance. Subclasses of AdfObject must call their superclass' Init

Return:
Object
Overrides:
AdfObject.Init()

publish

public Object publish(Object record)

Publish a AdfLogRecord.

The logging request was made initially to a AdfLogger object, which initialized the AdfLogRecord and forwarded it here.

The AdfLogWriter is responsible for formatting the message, when and if necessary. The formatting should include localization.

Subclasses content to let the AdfLogWriter superclass execute the filter can override PublishImpl instead of publish


Parameters:
record  -  description of the log event
Return:
Object
Overrides:
AdfLogWriter.publish(Object)

setFilter

public Object setFilter(Object newFilter)

Changes the logging filter to the new filter. The filter is a function that takes a AdfLogRecord object and returns true if the AdfLogRecord should be logged.

Parameters:
newFilter    
Return:
Object
Overrides:
AdfLogWriter.setFilter(Object)

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Generated on 2012.03.28 02:21 UTC
Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.