本文整理了Java中com.liferay.faces.util.logging.Logger.isDebugEnabled()
方法的一些代码示例,展示了Logger.isDebugEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isDebugEnabled()
方法的具体详情如下:
包路径:com.liferay.faces.util.logging.Logger
类名称:Logger
方法名:isDebugEnabled
暂无
代码示例来源:origin: liferay/liferay-faces
public boolean isDebugEnabled() {
return logger.isDebugEnabled();
}
代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl
public void afterPhase(PhaseEvent phaseEvent) {
// This method just does some logging. It's useful to the developer to determine if a navigation-rule
// fired, causing new JSF view to be restored after the INVOKE_APPLICATION phase finished.
if (logger.isDebugEnabled() && (phaseEvent.getPhaseId() == PhaseId.INVOKE_APPLICATION)) {
FacesContext facesContext = phaseEvent.getFacesContext();
String viewId = facesContext.getViewRoot().getViewId();
logger.debug("After INVOKE_APPLICATION: viewId=[{0}]", viewId);
}
}
代码示例来源:origin: liferay/liferay-faces
public void afterPhase(PhaseEvent phaseEvent) {
// This method just does some logging. It's useful to the developer to determine if a navigation-rule
// fired, causing new JSF view to be restored after the INVOKE_APPLICATION phase finished.
if (logger.isDebugEnabled() && (phaseEvent.getPhaseId() == PhaseId.INVOKE_APPLICATION)) {
FacesContext facesContext = phaseEvent.getFacesContext();
String viewId = facesContext.getViewRoot().getViewId();
logger.debug("After INVOKE_APPLICATION: viewId=[{0}]", viewId);
}
}
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
@Override
public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException {
ExternalContext externalContext = facesContext.getExternalContext();
ResourceVerifier resourceVerifier = ResourceVerifierFactory.getResourceVerifierInstance(externalContext);
if (resourceVerifier.isDependencySatisfied(facesContext, uiComponent)) {
if (logger.isDebugEnabled()) {
Map<String, Object> componentResourceAttributes = uiComponent.getAttributes();
logger.debug(
"Resource dependency already satisfied: name=[{0}] library=[{1}] rendererType=[{2}] value=[{3}] className=[{4}]",
componentResourceAttributes.get("name"), componentResourceAttributes.get("library"),
uiComponent.getRendererType(), getComponentValue(uiComponent), uiComponent.getClass().getName());
}
}
else {
super.encodeEnd(facesContext, uiComponent);
}
}
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
@Override
public void encodeBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException {
ExternalContext externalContext = facesContext.getExternalContext();
ResourceVerifier resourceVerifier = ResourceVerifierFactory.getResourceVerifierInstance(externalContext);
if (resourceVerifier.isDependencySatisfied(facesContext, uiComponent)) {
if (logger.isDebugEnabled()) {
Map<String, Object> componentResourceAttributes = uiComponent.getAttributes();
logger.debug(
"Resource dependency already satisfied: name=[{0}] library=[{1}] rendererType=[{2}] value=[{3}] className=[{4}]",
componentResourceAttributes.get("name"), componentResourceAttributes.get("library"),
uiComponent.getRendererType(), getComponentValue(uiComponent), uiComponent.getClass().getName());
}
}
else {
super.encodeBegin(facesContext, uiComponent);
}
}
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
@Override
public void encodeChildren(FacesContext facesContext, UIComponent uiComponent) throws IOException {
ExternalContext externalContext = facesContext.getExternalContext();
ResourceVerifier resourceVerifier = ResourceVerifierFactory.getResourceVerifierInstance(externalContext);
if (resourceVerifier.isDependencySatisfied(facesContext, uiComponent)) {
if (logger.isDebugEnabled()) {
Map<String, Object> componentResourceAttributes = uiComponent.getAttributes();
logger.debug(
"Resource dependency already satisfied: name=[{0}] library=[{1}] rendererType=[{2}] value=[{3}] className=[{4}]",
componentResourceAttributes.get("name"), componentResourceAttributes.get("library"),
uiComponent.getRendererType(), getComponentValue(uiComponent), uiComponent.getClass().getName());
}
}
else {
super.encodeChildren(facesContext, uiComponent);
}
}
代码示例来源:origin: liferay/liferay-faces
if (logger.isDebugEnabled()) {
logger.debug("Unable to resolve variable [" + varName + "] value=" + value);
if (logger.isDebugEnabled()) {
logger.debug("Resolved variable [" + varName + "] value=" + value);
代码示例来源:origin: com.liferay.faces/liferay-faces-util
public void beforePhase(PhaseEvent phaseEvent) {
if (logger.isDebugEnabled()) {
PhaseId phaseId = phaseEvent.getPhaseId();
String viewId = null;
UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
if (uiViewRoot != null) {
viewId = uiViewRoot.getViewId();
}
logger.debug("BEFORE phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
}
}
代码示例来源:origin: com.liferay.faces/liferay-faces-util
if (logger.isDebugEnabled()) {
logger.debug("Unable to resolve variable [" + varName + "] value=" + value);
if (logger.isDebugEnabled()) {
logger.debug("Resolved variable [" + varName + "] value=" + value);
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
public void afterPhase(PhaseEvent phaseEvent) {
if (logger.isDebugEnabled()) {
PhaseId phaseId = phaseEvent.getPhaseId();
String viewId = null;
UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
if (uiViewRoot != null) {
viewId = uiViewRoot.getViewId();
}
logger.debug("AFTER phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
}
}
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
public void beforePhase(PhaseEvent phaseEvent) {
if (logger.isDebugEnabled()) {
PhaseId phaseId = phaseEvent.getPhaseId();
String viewId = null;
UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
if (uiViewRoot != null) {
viewId = uiViewRoot.getViewId();
}
logger.debug("BEFORE phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
}
}
代码示例来源:origin: com.liferay.faces/liferay-faces-util
public void afterPhase(PhaseEvent phaseEvent) {
if (logger.isDebugEnabled()) {
PhaseId phaseId = phaseEvent.getPhaseId();
String viewId = null;
UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
if (uiViewRoot != null) {
viewId = uiViewRoot.getViewId();
}
logger.debug("AFTER phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
}
}
代码示例来源:origin: liferay/liferay-faces
public void beforePhase(PhaseEvent phaseEvent) {
if (logger.isDebugEnabled()) {
PhaseId phaseId = phaseEvent.getPhaseId();
String viewId = null;
UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
if (uiViewRoot != null) {
viewId = uiViewRoot.getViewId();
}
logger.debug("BEFORE phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
}
}
代码示例来源:origin: liferay/liferay-faces
public void afterPhase(PhaseEvent phaseEvent) {
if (logger.isDebugEnabled()) {
PhaseId phaseId = phaseEvent.getPhaseId();
String viewId = null;
UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
if (uiViewRoot != null) {
viewId = uiViewRoot.getViewId();
}
logger.debug("AFTER phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
}
}
代码示例来源:origin: com.liferay.faces/liferay-faces-util
/**
* @see {@link javax.faces.model.DataModel#setRowIndex(int)}
*/
@Override
public void setRowIndex(int rowIndex) {
// If the specified rowIndex is outside the range of cached rows, then clear the cache so that the
// findRows(int startRow, int finishRow) method will be called in order to load the set of rows
// associated with the specified rowIndex.
if (rowIndex >= 0) {
int startRowIndex = getStartRowIndex();
int finishRowIndex = getFinishRowIndex();
if ((startRowIndex >= 0) && (finishRowIndex >= 0)) {
int maxFinishRowIndex = startRowIndex + getRowsPerPage() - 1;
if ((rowIndex < startRowIndex) || (rowIndex > maxFinishRowIndex)) {
if (logger.isDebugEnabled()) {
logger.debug("Clearing cache since rowIndex=[{0}] is outside the range of cached rows.",
rowIndex);
}
reset();
}
}
}
this.rowIndex = rowIndex;
}
代码示例来源:origin: com.liferay.faces/com.liferay.faces.util
/**
* @see javax.faces.model.DataModel#setRowIndex(int)
*/
@Override
public void setRowIndex(int rowIndex) {
// If the specified rowIndex is outside the range of cached rows, then clear the cache so that the
// findRows(int startRow, int finishRow) method will be called in order to load the set of rows
// associated with the specified rowIndex.
if (rowIndex >= 0) {
int startRowIndex = getStartRowIndex();
int finishRowIndex = getFinishRowIndex();
if ((startRowIndex >= 0) && (finishRowIndex >= 0)) {
int maxFinishRowIndex = startRowIndex + getRowsPerPage() - 1;
if ((rowIndex < startRowIndex) || (rowIndex > maxFinishRowIndex)) {
if (logger.isDebugEnabled()) {
logger.debug("Clearing cache since rowIndex=[{0}] is outside the range of cached rows.",
rowIndex);
}
reset();
}
}
}
this.rowIndex = rowIndex;
}
代码示例来源:origin: liferay/liferay-faces
/**
* @see {@link javax.faces.model.DataModel#setRowIndex(int)}
*/
@Override
public void setRowIndex(int rowIndex) {
// If the specified rowIndex is outside the range of cached rows, then clear the cache so that the
// findRows(int startRow, int finishRow) method will be called in order to load the set of rows
// associated with the specified rowIndex.
if (rowIndex >= 0) {
int startRowIndex = getStartRowIndex();
int finishRowIndex = getFinishRowIndex();
if ((startRowIndex >= 0) && (finishRowIndex >= 0)) {
int maxFinishRowIndex = startRowIndex + getRowsPerPage() - 1;
if ((rowIndex < startRowIndex) || (rowIndex > maxFinishRowIndex)) {
if (logger.isDebugEnabled()) {
logger.debug("Clearing cache since rowIndex=[{0}] is outside the range of cached rows.",
rowIndex);
}
reset();
}
}
}
this.rowIndex = rowIndex;
}
代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl
if (logger.isDebugEnabled()) {
logger.debug("Detected Liferay build number {0}", Long.toString(liferayBuildNumber));
代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl
uiComponentResource.encodeAll(facesContext);
if (logger.isDebugEnabled()) {
代码示例来源:origin: com.liferay.faces/com.liferay.faces.bridge.ext
if (logger.isDebugEnabled()) {
logger.debug("Added resource to Liferay's <head>...</head> section, node=[{0}]", getNodeInfo(node));
内容来源于网络,如有侵权,请联系作者删除!