com.liferay.faces.util.logging.Logger.isDebugEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(9.7k)|赞(0)|评价(0)|浏览(251)

本文整理了Java中com.liferay.faces.util.logging.Logger.isDebugEnabled()方法的一些代码示例,展示了Logger.isDebugEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isDebugEnabled()方法的具体详情如下:
包路径:com.liferay.faces.util.logging.Logger
类名称:Logger
方法名:isDebugEnabled

Logger.isDebugEnabled介绍

暂无

代码示例

代码示例来源:origin: liferay/liferay-faces

  1. public boolean isDebugEnabled() {
  2. return logger.isDebugEnabled();
  3. }

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

  1. public void afterPhase(PhaseEvent phaseEvent) {
  2. // This method just does some logging. It's useful to the developer to determine if a navigation-rule
  3. // fired, causing new JSF view to be restored after the INVOKE_APPLICATION phase finished.
  4. if (logger.isDebugEnabled() && (phaseEvent.getPhaseId() == PhaseId.INVOKE_APPLICATION)) {
  5. FacesContext facesContext = phaseEvent.getFacesContext();
  6. String viewId = facesContext.getViewRoot().getViewId();
  7. logger.debug("After INVOKE_APPLICATION: viewId=[{0}]", viewId);
  8. }
  9. }

代码示例来源:origin: liferay/liferay-faces

  1. public void afterPhase(PhaseEvent phaseEvent) {
  2. // This method just does some logging. It's useful to the developer to determine if a navigation-rule
  3. // fired, causing new JSF view to be restored after the INVOKE_APPLICATION phase finished.
  4. if (logger.isDebugEnabled() && (phaseEvent.getPhaseId() == PhaseId.INVOKE_APPLICATION)) {
  5. FacesContext facesContext = phaseEvent.getFacesContext();
  6. String viewId = facesContext.getViewRoot().getViewId();
  7. logger.debug("After INVOKE_APPLICATION: viewId=[{0}]", viewId);
  8. }
  9. }

代码示例来源:origin: com.liferay.faces/com.liferay.faces.util

  1. @Override
  2. public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException {
  3. ExternalContext externalContext = facesContext.getExternalContext();
  4. ResourceVerifier resourceVerifier = ResourceVerifierFactory.getResourceVerifierInstance(externalContext);
  5. if (resourceVerifier.isDependencySatisfied(facesContext, uiComponent)) {
  6. if (logger.isDebugEnabled()) {
  7. Map<String, Object> componentResourceAttributes = uiComponent.getAttributes();
  8. logger.debug(
  9. "Resource dependency already satisfied: name=[{0}] library=[{1}] rendererType=[{2}] value=[{3}] className=[{4}]",
  10. componentResourceAttributes.get("name"), componentResourceAttributes.get("library"),
  11. uiComponent.getRendererType(), getComponentValue(uiComponent), uiComponent.getClass().getName());
  12. }
  13. }
  14. else {
  15. super.encodeEnd(facesContext, uiComponent);
  16. }
  17. }

代码示例来源:origin: com.liferay.faces/com.liferay.faces.util

  1. @Override
  2. public void encodeBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException {
  3. ExternalContext externalContext = facesContext.getExternalContext();
  4. ResourceVerifier resourceVerifier = ResourceVerifierFactory.getResourceVerifierInstance(externalContext);
  5. if (resourceVerifier.isDependencySatisfied(facesContext, uiComponent)) {
  6. if (logger.isDebugEnabled()) {
  7. Map<String, Object> componentResourceAttributes = uiComponent.getAttributes();
  8. logger.debug(
  9. "Resource dependency already satisfied: name=[{0}] library=[{1}] rendererType=[{2}] value=[{3}] className=[{4}]",
  10. componentResourceAttributes.get("name"), componentResourceAttributes.get("library"),
  11. uiComponent.getRendererType(), getComponentValue(uiComponent), uiComponent.getClass().getName());
  12. }
  13. }
  14. else {
  15. super.encodeBegin(facesContext, uiComponent);
  16. }
  17. }

代码示例来源:origin: com.liferay.faces/com.liferay.faces.util

  1. @Override
  2. public void encodeChildren(FacesContext facesContext, UIComponent uiComponent) throws IOException {
  3. ExternalContext externalContext = facesContext.getExternalContext();
  4. ResourceVerifier resourceVerifier = ResourceVerifierFactory.getResourceVerifierInstance(externalContext);
  5. if (resourceVerifier.isDependencySatisfied(facesContext, uiComponent)) {
  6. if (logger.isDebugEnabled()) {
  7. Map<String, Object> componentResourceAttributes = uiComponent.getAttributes();
  8. logger.debug(
  9. "Resource dependency already satisfied: name=[{0}] library=[{1}] rendererType=[{2}] value=[{3}] className=[{4}]",
  10. componentResourceAttributes.get("name"), componentResourceAttributes.get("library"),
  11. uiComponent.getRendererType(), getComponentValue(uiComponent), uiComponent.getClass().getName());
  12. }
  13. }
  14. else {
  15. super.encodeChildren(facesContext, uiComponent);
  16. }
  17. }

代码示例来源:origin: liferay/liferay-faces

  1. if (logger.isDebugEnabled()) {
  2. logger.debug("Unable to resolve variable [" + varName + "] value=" + value);
  3. if (logger.isDebugEnabled()) {
  4. logger.debug("Resolved variable [" + varName + "] value=" + value);

代码示例来源:origin: com.liferay.faces/liferay-faces-util

  1. public void beforePhase(PhaseEvent phaseEvent) {
  2. if (logger.isDebugEnabled()) {
  3. PhaseId phaseId = phaseEvent.getPhaseId();
  4. String viewId = null;
  5. UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
  6. if (uiViewRoot != null) {
  7. viewId = uiViewRoot.getViewId();
  8. }
  9. logger.debug("BEFORE phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
  10. }
  11. }

代码示例来源:origin: com.liferay.faces/liferay-faces-util

  1. if (logger.isDebugEnabled()) {
  2. logger.debug("Unable to resolve variable [" + varName + "] value=" + value);
  3. if (logger.isDebugEnabled()) {
  4. logger.debug("Resolved variable [" + varName + "] value=" + value);

代码示例来源:origin: com.liferay.faces/com.liferay.faces.util

  1. public void afterPhase(PhaseEvent phaseEvent) {
  2. if (logger.isDebugEnabled()) {
  3. PhaseId phaseId = phaseEvent.getPhaseId();
  4. String viewId = null;
  5. UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
  6. if (uiViewRoot != null) {
  7. viewId = uiViewRoot.getViewId();
  8. }
  9. logger.debug("AFTER phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
  10. }
  11. }

代码示例来源:origin: com.liferay.faces/com.liferay.faces.util

  1. public void beforePhase(PhaseEvent phaseEvent) {
  2. if (logger.isDebugEnabled()) {
  3. PhaseId phaseId = phaseEvent.getPhaseId();
  4. String viewId = null;
  5. UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
  6. if (uiViewRoot != null) {
  7. viewId = uiViewRoot.getViewId();
  8. }
  9. logger.debug("BEFORE phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
  10. }
  11. }

代码示例来源:origin: com.liferay.faces/liferay-faces-util

  1. public void afterPhase(PhaseEvent phaseEvent) {
  2. if (logger.isDebugEnabled()) {
  3. PhaseId phaseId = phaseEvent.getPhaseId();
  4. String viewId = null;
  5. UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
  6. if (uiViewRoot != null) {
  7. viewId = uiViewRoot.getViewId();
  8. }
  9. logger.debug("AFTER phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
  10. }
  11. }

代码示例来源:origin: liferay/liferay-faces

  1. public void beforePhase(PhaseEvent phaseEvent) {
  2. if (logger.isDebugEnabled()) {
  3. PhaseId phaseId = phaseEvent.getPhaseId();
  4. String viewId = null;
  5. UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
  6. if (uiViewRoot != null) {
  7. viewId = uiViewRoot.getViewId();
  8. }
  9. logger.debug("BEFORE phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
  10. }
  11. }

代码示例来源:origin: liferay/liferay-faces

  1. public void afterPhase(PhaseEvent phaseEvent) {
  2. if (logger.isDebugEnabled()) {
  3. PhaseId phaseId = phaseEvent.getPhaseId();
  4. String viewId = null;
  5. UIViewRoot uiViewRoot = phaseEvent.getFacesContext().getViewRoot();
  6. if (uiViewRoot != null) {
  7. viewId = uiViewRoot.getViewId();
  8. }
  9. logger.debug("AFTER phaseId=[{0}] viewId=[{1}]", phaseId.toString(), viewId);
  10. }
  11. }

代码示例来源:origin: com.liferay.faces/liferay-faces-util

  1. /**
  2. * @see {@link javax.faces.model.DataModel#setRowIndex(int)}
  3. */
  4. @Override
  5. public void setRowIndex(int rowIndex) {
  6. // If the specified rowIndex is outside the range of cached rows, then clear the cache so that the
  7. // findRows(int startRow, int finishRow) method will be called in order to load the set of rows
  8. // associated with the specified rowIndex.
  9. if (rowIndex >= 0) {
  10. int startRowIndex = getStartRowIndex();
  11. int finishRowIndex = getFinishRowIndex();
  12. if ((startRowIndex >= 0) && (finishRowIndex >= 0)) {
  13. int maxFinishRowIndex = startRowIndex + getRowsPerPage() - 1;
  14. if ((rowIndex < startRowIndex) || (rowIndex > maxFinishRowIndex)) {
  15. if (logger.isDebugEnabled()) {
  16. logger.debug("Clearing cache since rowIndex=[{0}] is outside the range of cached rows.",
  17. rowIndex);
  18. }
  19. reset();
  20. }
  21. }
  22. }
  23. this.rowIndex = rowIndex;
  24. }

代码示例来源:origin: com.liferay.faces/com.liferay.faces.util

  1. /**
  2. * @see javax.faces.model.DataModel#setRowIndex(int)
  3. */
  4. @Override
  5. public void setRowIndex(int rowIndex) {
  6. // If the specified rowIndex is outside the range of cached rows, then clear the cache so that the
  7. // findRows(int startRow, int finishRow) method will be called in order to load the set of rows
  8. // associated with the specified rowIndex.
  9. if (rowIndex >= 0) {
  10. int startRowIndex = getStartRowIndex();
  11. int finishRowIndex = getFinishRowIndex();
  12. if ((startRowIndex >= 0) && (finishRowIndex >= 0)) {
  13. int maxFinishRowIndex = startRowIndex + getRowsPerPage() - 1;
  14. if ((rowIndex < startRowIndex) || (rowIndex > maxFinishRowIndex)) {
  15. if (logger.isDebugEnabled()) {
  16. logger.debug("Clearing cache since rowIndex=[{0}] is outside the range of cached rows.",
  17. rowIndex);
  18. }
  19. reset();
  20. }
  21. }
  22. }
  23. this.rowIndex = rowIndex;
  24. }

代码示例来源:origin: liferay/liferay-faces

  1. /**
  2. * @see {@link javax.faces.model.DataModel#setRowIndex(int)}
  3. */
  4. @Override
  5. public void setRowIndex(int rowIndex) {
  6. // If the specified rowIndex is outside the range of cached rows, then clear the cache so that the
  7. // findRows(int startRow, int finishRow) method will be called in order to load the set of rows
  8. // associated with the specified rowIndex.
  9. if (rowIndex >= 0) {
  10. int startRowIndex = getStartRowIndex();
  11. int finishRowIndex = getFinishRowIndex();
  12. if ((startRowIndex >= 0) && (finishRowIndex >= 0)) {
  13. int maxFinishRowIndex = startRowIndex + getRowsPerPage() - 1;
  14. if ((rowIndex < startRowIndex) || (rowIndex > maxFinishRowIndex)) {
  15. if (logger.isDebugEnabled()) {
  16. logger.debug("Clearing cache since rowIndex=[{0}] is outside the range of cached rows.",
  17. rowIndex);
  18. }
  19. reset();
  20. }
  21. }
  22. }
  23. this.rowIndex = rowIndex;
  24. }

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

  1. if (logger.isDebugEnabled()) {
  2. logger.debug("Detected Liferay build number {0}", Long.toString(liferayBuildNumber));

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

  1. uiComponentResource.encodeAll(facesContext);
  2. if (logger.isDebugEnabled()) {

代码示例来源:origin: com.liferay.faces/com.liferay.faces.bridge.ext

  1. if (logger.isDebugEnabled()) {
  2. logger.debug("Added resource to Liferay's <head>...</head> section, node=[{0}]", getNodeInfo(node));

相关文章