tle.framework.component.impl.uicreator
Class DefaultUICreator

java.lang.Object
  extended bytle.framework.component.impl.ComponentBase
      extended bytle.framework.component.impl.uicreator.DefaultUICreator
All Implemented Interfaces:
Component, ComponentMBean, DefaultUICreatorMBean, UICreator

public class DefaultUICreator
extends ComponentBase
implements UICreator, DefaultUICreatorMBean

UICreatorÀÇ ±âº» ±¸Çö ÄÄÆ÷³ÍÆ®.

Since:
2.0
Author:
ÃÖ¹ü±Õ

Field Summary
static java.lang.String VIEW_CONFIG_ATTRIBUTE_NAME
           
 
Fields inherited from class tle.framework.component.impl.ComponentBase
componentState, config
 
Constructor Summary
DefaultUICreator()
           
 
Method Summary
 void createAuthenticationForm(HttpServletRequest request, HttpServletResponse response)
          ÀÎÁõÈ­¸éÀ¸·Î À̵¿ÇÑ´Ù.
 void createErrorView(Result result, HttpServletRequest request, HttpServletResponse response)
          ¿¡·¯ ÆäÀÌÁö È­¸éÀ¸·Î À̵¿ÇÑ´Ù.
 void createErrorView(java.lang.Throwable exception, HttpServletRequest request, HttpServletResponse response)
          ¿¡·¯ ÆäÀÌÁö È­¸éÀ¸·Î À̵¿ÇÑ´Ù.
 void createNoAuthorizationView(RequestInfo ri, HttpServletRequest request, HttpServletResponse response)
          ±ÇÇѾø´Ù´Â ¸Þ½ÃÁö¸¦ º¸¿©ÁÖ´Â È­¸éÀ¸·Î À̵¿ÇÑ´Ù.
 void createView(Result result, HttpServletRequest request, HttpServletResponse response)
          resultÀÇ °á°ú Äڵ忡 µû¶ó ¾Ë¸ÂÀº ºä·Î À̵¿ÇÑ´Ù.
 java.lang.String getConfigFile()
          ¼³Á¤ ÆÄÀÏÀÇ °æ·Î¸¦ ±¸ÇÑ´Ù.
protected  void initing(ComponentConfig config)
          ¼³Á¤ ÆÄÀϷκÎÅÍ Á¤º¸¸¦ Àоî¿Í UIConfiguration °´Ã¼¸¦ »ý¼ºÇÑ´Ù.
 void reloadConfiguration()
          ¼³Á¤ ÆÄÀϷκÎÅÍ ¼³Á¤ Á¤º¸¸¦ ´Ù½Ã Àоî¿Â´Ù.
 
Methods inherited from class tle.framework.component.impl.ComponentBase
close, closing, getDescription, getID, getState, init, isClosed, isClosing, isCreated, isErrorOccured, isInited, isIniting, isResuming, isRunning, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, resuming, start, starting, stop, stopping, suspend, suspending
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface tle.framework.component.Component
close, getID, init, isClosed, isClosing, isCreated, isErrorOccured, isInited, isIniting, isResuming, isRunning, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, start, stop, suspend
 
Methods inherited from interface tle.framework.component.ComponentMBean
getDescription, getID, getState
 

Field Detail

VIEW_CONFIG_ATTRIBUTE_NAME

public static final java.lang.String VIEW_CONFIG_ATTRIBUTE_NAME
See Also:
Constant Field Values
Constructor Detail

DefaultUICreator

public DefaultUICreator()
Method Detail

initing

protected void initing(ComponentConfig config)
                throws ComponentException
¼³Á¤ ÆÄÀϷκÎÅÍ Á¤º¸¸¦ Àоî¿Í UIConfiguration °´Ã¼¸¦ »ý¼ºÇÑ´Ù.

¼³Á¤ ÆÄÀÏÀÇ °æ·Î´Â ÄÄÆ÷³ÍÆ® ÃʱâÈ­ ÆÄ¶ó¹ÌÅÍ "configFile"¿¡ ¸í½ÃÇÑ´Ù.

configFile ÃʱâÈ­ ÆÄ¶ó¹ÌÅ͸¦ ¸í½ÃÇÏÁö ¾Ê¾ÒÀ» °æ¿ì Ȩµð·ºÅ丮ÀÇ "DefaultUICreator.xml" ÆÄÀÏÀ» »ç¿ëÇÑ´Ù.

Overrides:
initing in class ComponentBase
Parameters:
config - ÄÄÆ÷³ÍÆ® ÃʱâÈ­ ¼³Á¤ Á¤º¸¸¦ ´ã°í ÀÖ´Â °´Ã¼
Throws:
ComponentException
See Also:
ComponentBase.initing(tle.framework.component.ComponentConfig)

createView

public void createView(Result result,
                       HttpServletRequest request,
                       HttpServletResponse response)
                throws ComponentException
resultÀÇ °á°ú Äڵ忡 µû¶ó ¾Ë¸ÂÀº ºä·Î À̵¿ÇÑ´Ù. result ÀνºÅϽº´Â requestÀÇ "result" ¼Ó¼º¿¡ ÀúÀåµÈ´Ù.

Specified by:
createView in interface UICreator
Parameters:
result - °á°ú
request - HTTP ¿äû
response - HTTP ÀÀ´ä
Throws:
ComponentException - È­¸é »ý¼º °úÁ¤¿¡¼­ ¹®Á¦°¡ ÀÖ´Â °æ¿ì¿¡ ¹ß»ýÇÑ´Ù.
See Also:
tle.framework.component.spi.uicreator.UICreator#createView(tle.framework.component.spi.rp.Result, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

createAuthenticationForm

public void createAuthenticationForm(HttpServletRequest request,
                                     HttpServletResponse response)
                              throws ComponentException
ÀÎÁõÈ­¸éÀ¸·Î À̵¿ÇÑ´Ù.

Specified by:
createAuthenticationForm in interface UICreator
Parameters:
request - HTTP ¿äû
response - HTTP ÀÀ´ä
Throws:
ComponentException - È­¸é »ý¼º °úÁ¤¿¡¼­ ¹®Á¦°¡ ÀÖ´Â °æ¿ì¿¡ ¹ß»ýÇÑ´Ù.
See Also:
tle.framework.component.spi.uicreator.UICreator#createAuthenticationForm(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

createNoAuthorizationView

public void createNoAuthorizationView(RequestInfo ri,
                                      HttpServletRequest request,
                                      HttpServletResponse response)
                               throws ComponentException
±ÇÇѾø´Ù´Â ¸Þ½ÃÁö¸¦ º¸¿©ÁÖ´Â È­¸éÀ¸·Î À̵¿ÇÑ´Ù.

Specified by:
createNoAuthorizationView in interface UICreator
Parameters:
ri - ¿äû ºÐ¼® Á¤º¸
request - HTTP ¿äû
response - HTTP ÀÀ´ä
Throws:
ComponentException - È­¸é »ý¼º °úÁ¤¿¡¼­ ¹®Á¦°¡ ÀÖ´Â °æ¿ì¿¡ ¹ß»ýÇÑ´Ù.
See Also:
tle.framework.component.spi.uicreator.UICreator#createNoAuthorizationView(tle.framework.component.spi.ra.RequestInfo, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

createErrorView

public void createErrorView(Result result,
                            HttpServletRequest request,
                            HttpServletResponse response)
                     throws ComponentException
¿¡·¯ ÆäÀÌÁö È­¸éÀ¸·Î À̵¿ÇÑ´Ù.

result ÀνºÅϽº´Â requestÀÇ "result" ¼Ó¼º¿¡ ÀúÀåµÈ´Ù.

result.getException()ÀÌ ¸®ÅÏÇÏ´Â ¿¹¿Ü °´Ã¼¸¦ requestÀÇ javax.servlet.error.exception ¼Ó¼º°ú javax.servlet.jsp.jspException ¼Ó¼º¿¡ ÀúÀåÇÑ´Ù.

Specified by:
createErrorView in interface UICreator
Parameters:
result - °á°ú
request - HTTP ¿äû
response - HTTP ÀÀ´ä
Throws:
ComponentException - È­¸é »ý¼º °úÁ¤¿¡¼­ ¹®Á¦°¡ ÀÖ´Â °æ¿ì¿¡ ¹ß»ýÇÑ´Ù.
See Also:
tle.framework.component.spi.uicreator.UICreator#createErrorView(tle.framework.component.spi.rp.Result, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

createErrorView

public void createErrorView(java.lang.Throwable exception,
                            HttpServletRequest request,
                            HttpServletResponse response)
                     throws ComponentException
¿¡·¯ ÆäÀÌÁö È­¸éÀ¸·Î À̵¿ÇÑ´Ù.

ÀÎÀÚ·Î Àü´Þ¹ÞÀº Throwable °´Ã¼¸¦ requestÀÇ javax.servlet.error.exception ¼Ó¼º°ú javax.servlet.jsp.jspException ¼Ó¼º¿¡ ÀúÀåÇÑ´Ù.

Specified by:
createErrorView in interface UICreator
Parameters:
exception - ¿¹¿Ü
request - HTTP ¿äû
response - HTTP ÀÀ´ä
Throws:
ComponentException - È­¸é »ý¼º °úÁ¤¿¡¼­ ¹®Á¦°¡ ÀÖ´Â °æ¿ì¿¡ ¹ß»ýÇÑ´Ù.
See Also:
tle.framework.component.spi.uicreator.UICreator#createErrorView(java.lang.Throwable, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

getConfigFile

public java.lang.String getConfigFile()
Description copied from interface: DefaultUICreatorMBean
¼³Á¤ ÆÄÀÏÀÇ °æ·Î¸¦ ±¸ÇÑ´Ù.

Specified by:
getConfigFile in interface DefaultUICreatorMBean
See Also:
DefaultUICreatorMBean.getConfigFile()

reloadConfiguration

public void reloadConfiguration()
                         throws ComponentException
¼³Á¤ ÆÄÀϷκÎÅÍ ¼³Á¤ Á¤º¸¸¦ ´Ù½Ã Àоî¿Â´Ù.

Specified by:
reloadConfiguration in interface DefaultUICreatorMBean
Throws:
ComponentException
See Also:
DefaultUICreatorMBean.reloadConfiguration()