org.jboss.deployment.remoting
Class DeployHandler

java.lang.Object
  extended by org.jboss.deployment.remoting.DeployHandler
All Implemented Interfaces:
org.jboss.remoting.ServerInvocationHandler, org.jboss.remoting.stream.StreamInvocationHandler

public class DeployHandler
extends Object
implements org.jboss.remoting.stream.StreamInvocationHandler

A remoting StreamInvocationHandler installed as the JSR88 subsystem handler and used by the StreamingTarget implementation.

Version:
$Revision: 85945 $
Author:
Scott.Stark@jboss.org

Constructor Summary
DeployHandler()
           
 
Method Summary
 void addListener(org.jboss.remoting.callback.InvokerCallbackHandler arg0)
           
 DeploymentManagerServiceMBean getDeployService()
           
 Object handleStream(InputStream contentIS, org.jboss.remoting.InvocationRequest request)
          Handle a deployService deploy invocation
 Object invoke(org.jboss.remoting.InvocationRequest request)
          Handle a deployService invocation other than deploy
 void removeListener(org.jboss.remoting.callback.InvokerCallbackHandler arg0)
           
 void setDeployService(DeploymentManagerServiceMBean deployService)
           
 void setInvoker(org.jboss.remoting.ServerInvoker arg0)
           
 void setMBeanServer(MBeanServer server)
          Legacy initialzation of the DeploymentManagerServiceMBean via jmx lookup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.remoting.ServerInvocationHandler
toString
 

Constructor Detail

DeployHandler

public DeployHandler()
Method Detail

getDeployService

public DeploymentManagerServiceMBean getDeployService()

setDeployService

public void setDeployService(DeploymentManagerServiceMBean deployService)

handleStream

public Object handleStream(InputStream contentIS,
                           org.jboss.remoting.InvocationRequest request)
                    throws Throwable
Handle a deployService deploy invocation

Specified by:
handleStream in interface org.jboss.remoting.stream.StreamInvocationHandler
Parameters:
request - - the remoting invocation
Throws:
Throwable

addListener

public void addListener(org.jboss.remoting.callback.InvokerCallbackHandler arg0)
Specified by:
addListener in interface org.jboss.remoting.ServerInvocationHandler

invoke

public Object invoke(org.jboss.remoting.InvocationRequest request)
              throws Throwable
Handle a deployService invocation other than deploy

Specified by:
invoke in interface org.jboss.remoting.ServerInvocationHandler
Parameters:
request - - the remoting invocation
Throws:
Throwable

removeListener

public void removeListener(org.jboss.remoting.callback.InvokerCallbackHandler arg0)
Specified by:
removeListener in interface org.jboss.remoting.ServerInvocationHandler

setInvoker

public void setInvoker(org.jboss.remoting.ServerInvoker arg0)
Specified by:
setInvoker in interface org.jboss.remoting.ServerInvocationHandler

setMBeanServer

public void setMBeanServer(MBeanServer server)
Legacy initialzation of the DeploymentManagerServiceMBean via jmx lookup. TODO: the deployService should be injected.

Specified by:
setMBeanServer in interface org.jboss.remoting.ServerInvocationHandler


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.