com.shift.framework.proxy
Class ProxyFactory
java.lang.Object
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
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 |
ProxyFactory
public ProxyFactory()
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