com.shift.framework.proxy
Class ProxyFactory

java.lang.Object
  extended by com.shift.framework.proxy.ProxyFactory

public class ProxyFactory
extends java.lang.Object

ProxyFactory¸¦ ÀÌ¿ëÇÒ °æ¿ì ÇÁ·¹ÀÓ¿öÅ©¿¡¼­ ¸ðµç Ŭ·¡½º¿¡ ´ëÇØ "new" Ű¿öµå¸¦ ÀÌ¿ëÇÏ¿© °´Ã¼¸¦ »ý¼ºÇÏÁö ¾Ê°í ÀÎÅÍÆäÀ̽º¸¦ ÀÌ¿ëÇÏ¿© ½ÇÁ¦ °´Ã¼¸¦ ¹ÙÀεùÇÏ¿© »ç¿ëÇÑ´Ù. À̸¦ ÀÌ¿ëÇÒ °æ¿ì ¸Þ¼Òµå¿¡ ÇØ´çÇÏ´Â AOP(Aspect-Oriented Programming)À» ±¸ÇöÇÒ ¼ö ÀÖ´Ù.

Since:
2006.04.04
Version:
1.0
Author:
Shift Information & Communication

Constructor Summary
ProxyFactory()
           
 
Method Summary
static java.lang.Object getLoggerProxy(java.lang.Class[] interfaces)
           
static java.lang.Object getServletConfigProxy(java.lang.Class[] interfaces)
          ÁöÁ¤µÈ ÀÎÅÍÆäÀ̽ºÀÇ proxy Ŭ·¡½ºÀÇ ÀνºÅϽº¸¦ ¹ÝȯÇÑ´Ù.
static java.lang.Object getServletContextProxy(java.lang.Class[] interfaces)
          ÁöÁ¤µÈ ÀÎÅÍÆäÀ̽ºÀÇ proxy Ŭ·¡½ºÀÇ ÀνºÅϽº¸¦ ¹ÝȯÇÑ´Ù.
static void init(javax.servlet.ServletConfig config)
          ProxyFactory¸¦ ÃʱâÈ­ÇÑ´Ù.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyFactory

public ProxyFactory()
Method Detail

init

public static void init(javax.servlet.ServletConfig config)
ProxyFactory¸¦ ÃʱâÈ­ÇÑ´Ù.

Parameters:
config - ProxyFactory¸¦ ÃʱâÈ­Çϱâ À§ÇÑ ServletConfig
Since:
1.0

getServletConfigProxy

public static java.lang.Object getServletConfigProxy(java.lang.Class[] interfaces)
                                              throws ProxyException
ÁöÁ¤µÈ ÀÎÅÍÆäÀ̽ºÀÇ proxy Ŭ·¡½ºÀÇ ÀνºÅϽº¸¦ ¹ÝȯÇÑ´Ù. ÀÌ ¶§, ¸Þ¼Òµå È£ÃâÀ» µð½ºÆÐÄ¡Çϱâ À§ÇÑ Çڵ鷯´Â ServletConfigÀÌ´Ù.

Parameters:
interfaces - È£ÃâÇϱâ À§ÇÑ ¸Þ¼Òµå¸¦ °¡Áö°í ÀÖ´Â ÀÎÅÍÆäÀ̽º
Returns:
ÁöÁ¤µÈ ÀÎÅÍÆäÀ̽ºÀÇ proxy Ŭ·¡½ºÀÇ ÀνºÅϽº
Throws:
ProxyException - ProxyFactory°¡ Á¤»óÀûÀ¸·Î ÃʱâÈ­µÇÁö ¾Ê¾ÒÀ» °æ¿ì
Since:
1.0

getServletContextProxy

public static java.lang.Object getServletContextProxy(java.lang.Class[] interfaces)
                                               throws ProxyException
ÁöÁ¤µÈ ÀÎÅÍÆäÀ̽ºÀÇ proxy Ŭ·¡½ºÀÇ ÀνºÅϽº¸¦ ¹ÝȯÇÑ´Ù. ÀÌ ¶§, ¸Þ¼Òµå È£ÃâÀ» µð½ºÆÐÄ¡Çϱâ À§ÇÑ Çڵ鷯´Â ServletContextÀÌ´Ù.

Parameters:
interfaces - È£ÃâÇϱâ À§ÇÑ ¸Þ¼Òµå¸¦ °¡Áö°í ÀÖ´Â ÀÎÅÍÆäÀ̽º
Returns:
ÁöÁ¤µÈ ÀÎÅÍÆäÀ̽ºÀÇ proxy Ŭ·¡½ºÀÇ ÀνºÅϽº
Throws:
ProxyException - ProxyFactory°¡ Á¤»óÀûÀ¸·Î ÃʱâÈ­µÇÁö ¾Ê¾ÒÀ» °æ¿ì
Since:
1.0

getLoggerProxy

public static java.lang.Object getLoggerProxy(java.lang.Class[] interfaces)
                                       throws ProxyException
Throws:
ProxyException