biz.hammurapi.jms.adapter
Class ProxyService

java.lang.Object
  extended by biz.hammurapi.util.VisitableBase
      extended by biz.hammurapi.config.GenericContainer
          extended by biz.hammurapi.jms.adapter.ProxyService
All Implemented Interfaces:
biz.hammurapi.config.Command, biz.hammurapi.config.Component, biz.hammurapi.config.Context, biz.hammurapi.config.Wrapper, biz.hammurapi.metrics.MeasurementCollector, biz.hammurapi.metrics.MeasurementConsumer, biz.hammurapi.util.Attributable, biz.hammurapi.util.Visitable

public class ProxyService
extends biz.hammurapi.config.GenericContainer
implements biz.hammurapi.config.Wrapper


Constructor Summary
ProxyService(biz.hammurapi.jms.adapter.definition.ProxyService definition)
           
 
Method Summary
 java.lang.Object createProxy()
          Creates new proxy instance.
 java.lang.Object getMaster()
          Invokes createProxy()
static java.lang.Object getProxyState(java.lang.Object proxy)
           
static void main(java.lang.String[] args)
          Generates proxy service XML by introspecting class which name is passed in the first parameter.
static void setProxyState(java.lang.Object proxy, java.lang.Object state)
           
static java.lang.String signature(java.lang.reflect.Method method)
           
 
Methods inherited from class biz.hammurapi.config.GenericContainer
acceptChildren, addComponent, addMeasurement, execute, get, getAttribute, getComponentMap, getComponentNames, getComponents, getMeasurementConsumer, getOwner, removeAttribute, setAttribute, setMeasurementConsumer, setOwner, start, stop
 
Methods inherited from class biz.hammurapi.util.VisitableBase
accept, object2visitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyService

public ProxyService(biz.hammurapi.jms.adapter.definition.ProxyService definition)
             throws biz.hammurapi.config.ConfigurationException
Throws:
biz.hammurapi.config.ConfigurationException
Method Detail

getProxyState

public static java.lang.Object getProxyState(java.lang.Object proxy)
Parameters:
proxy -
Returns:
Local delegate of the proxy if it is serializable

setProxyState

public static void setProxyState(java.lang.Object proxy,
                                 java.lang.Object state)
Parameters:
proxy -

createProxy

public java.lang.Object createProxy()
Creates new proxy instance. Local state is associated with the instance.

Returns:
New proxy instance.

signature

public static java.lang.String signature(java.lang.reflect.Method method)

main

public static final void main(java.lang.String[] args)
                       throws java.lang.Exception
Generates proxy service XML by introspecting class which name is passed in the first parameter.

Parameters:
args -
Throws:
java.lang.Exception

getMaster

public java.lang.Object getMaster()
Invokes createProxy()

Specified by:
getMaster in interface biz.hammurapi.config.Wrapper
Returns:


Copyright © 2006 Hammurapi Group. All Rights Reserved.