net.larsan.urd.impl
Class ServiceAlias

java.lang.Object
  |
  +--net.larsan.urd.impl.ServiceAlias
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

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

A service alias acts on behalf of a real serivce. It is created with an instance of the serivce registry and can thus be created even if the services it is to act on behalf of is not yet created.

Version:
Alpha-0.1 / 2002-10-06 21:37
Author:
Lars J. Nilsson

Method Summary
 java.lang.reflect.Proxy getProxy()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 boolean isAvailable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProxy

public java.lang.reflect.Proxy getProxy()

isAvailable

public boolean isAvailable()

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
java.lang.Throwable