com.shift.framework.proxy
Class ServiceProxy

java.lang.Object
  extended by com.shift.framework.proxy.ServiceProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class ServiceProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Service¸¦ ProxyÇØÁÖ´Â °´Ã¼ action(service)ÀÇ ¸Þ¼­µå¸í¿¡ °ü°è¾øÀÌ execute()¸Þ¼­µå¸¦ ½ÇÇàÇϸé ÇØ´ç ¸Þ¼­µå¸¦ ½ÇÇàÇÒ¼ö ÀÖ°Ú²û ProxyÇØÁØ´Ù.

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

Method Summary
static Service getService(ServiceController controller)
          ServiceProxy¿¡ ¸Þ¼Òµå È£ÃâÀ» ó¸®ÇÏ´Â Service ÀÎÅÍÆäÀ̽ºÀÇ ÇÁ·Ï½Ã ÀνºÅϽº¸¦ »ý¼ºÇÏ¿© ¹ÝȯÇÑ´Ù..
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          Å¬¶óÀÌ¾ðÆ®·ÎºÎÅÍ ¿äûµÈ ¼­ºñ½ºÀÇ ¸Þ¼Òµå¸¦ ½ÇÇàÇÑ´Ù.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getService

public static Service getService(ServiceController controller)
                          throws java.lang.IllegalArgumentException,
                                 ConfigFailedException
ServiceProxy¿¡ ¸Þ¼Òµå È£ÃâÀ» ó¸®ÇÏ´Â Service ÀÎÅÍÆäÀ̽ºÀÇ ÇÁ·Ï½Ã ÀνºÅϽº¸¦ »ý¼ºÇÏ¿© ¹ÝȯÇÑ´Ù..

Parameters:
controller - Service¿¡ Á¤ÀǵǾî ÀÖ´Â ¸Þ¼Òµå¸¦ È£ÃâÇϴ ȣÃâÇڵ鷯 ¸¦ »ý¼ºÇϱâ À§ÇÑ ¸Å°³º¯¼ö
Returns:
service ¸Þ¼Òµå È£ÃâÀ» ó¸®ÇÏ´Â Service ÀÎÅÍÆäÀ̽ºÀÇ ÇÁ·Ï½Ã ÀνºÅϽº
Throws:
ConfigFailedException
java.lang.IllegalArgumentException
Since:
1.0

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Ŭ¶óÀÌ¾ðÆ®·ÎºÎÅÍ ¿äûµÈ ¼­ºñ½ºÀÇ ¸Þ¼Òµå¸¦ ½ÇÇàÇÑ´Ù.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Parameters:
proxy -
method - invokeÇÒ ¸Þ¼­µå
args - ¸Þ¼­µå¸¦ invokeÇÒ¶§ ÇÊ¿äÇÑ arguments
Returns:
ÇØ´çÇÏ´Â invoked ¸Þ¼­µå
Throws:
java.lang.Throwable
Since:
1.0