|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.aspects.remoting.RemotingProxyFactory
public class RemotingProxyFactory
RemotingProxyFactory
is an AOP / Remoting replacement for
org.jboss.invocation.jrmp.server.JRMPProxyFactory
.
Given the following parameters
org.jboss.remoting.InvokerLocator
pointing to an
org.jboss.remoting.transport.Connector
running
an org.jboss.aspects.remoting.AOPRemotingInvocationHandler
,RemotingProxyFactory will create a proxy that
Connector
where they are processed
by the provided target,and, if the JNDI name property has been set, it will bind the proxy to the provided name in JNDI.
Copyright Jun 6, 2008
Constructor Summary | |
---|---|
RemotingProxyFactory()
|
Method Summary | |
---|---|
org.jboss.remoting.transport.Connector |
getConnector()
Returns the Remoting Connector that directs invocations to the
AOPRemotingInvocationHandler , which then directs
invocations to the target |
String |
getDispatchName()
Returns the name under which the AOP dispatcher will register the target |
ArrayList<?> |
getInterceptors()
Returns the interceptors through which an invocation will pass on the client side. |
Class<?>[] |
getInterfaces()
Returns the interfaces implemented by the proxy created by this instance of RemotingProxyFactory |
String |
getInvokerLocator()
Returns the String form of the InvokerLocator that identifies the
Remoting Connector that directs invocations to the
AOPRemotingInvocationHandler , which then directs
invocations to the target |
String |
getJndiName()
Returns the name to which the proxy will be bound in JNDI |
org.jboss.aop.proxy.Proxy |
getProxy()
Returns the proxy created by this instance of RemotingProxyFactory |
String |
getSubsystem()
Returns the subsystem name that identifes the AOPRemotingInvocationHandler
running in the Remoting Connector . |
Object |
getTarget()
Returns the target to which the AOP dispatcher will direct invocations |
void |
setConnector(org.jboss.remoting.transport.Connector connector)
Sets the Remoting Connector that directs invocations to the
AOPRemotingInvocationHandler , which then directs
invocations to the target |
void |
setDispatchName(String dispatchName)
Sets the name under which the AOP dispatcher will register the target |
void |
setInterceptors(ArrayList<?> interceptors)
Sets the interceptors through which an invocation will pass on the client side. |
void |
setInterfaces(Class<?>[] interfaces)
Sets the interfaces implemented by the proxy created by this instance of RemotingProxyFactory |
void |
setInvokerLocator(String locator)
Sets the String form of the InvokerLocator that identifies the
Remoting Connector that directs invocations to the
AOPRemotingInvocationHandler , which then directs
invocations to the target |
void |
setJndiName(String jndiName)
Sets the name to which the proxy will be bound in JNDI |
void |
setSubsystem(String subsystem)
Sets the subsystem name that identifes the AOPRemotingInvocationHandler
running in the Remoting Connector . |
void |
setTarget(Object target)
Sets the target to which the AOP dispatcher will direct invocations |
void |
start()
Lifecycle method. |
void |
stop()
Lifecycle method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemotingProxyFactory()
Method Detail |
---|
public Object getTarget()
public void setTarget(Object target)
target
- the target to which the AOP dispatcher will direct invocationspublic Class<?>[] getInterfaces()
RemotingProxyFactory
RemotingProxyFactory
spublic void setInterfaces(Class<?>[] interfaces)
RemotingProxyFactory
interfaces
- the interfaces implemented by the proxy created by this
instance of RemotingProxyFactory
public String getDispatchName()
public void setDispatchName(String dispatchName)
dispatchName
- the name under which the AOP dispatcher will register the targetpublic String getJndiName()
public void setJndiName(String jndiName)
jndiName
- the name to which the proxy will be bound in JNDIpublic String getInvokerLocator()
InvokerLocator
that identifies the
Remoting Connector
that directs invocations to the
AOPRemotingInvocationHandler
, which then directs
invocations to the target
InvokerLocator
that identifies the
Remoting Connector
that directs invocations to the
AOPRemotingInvocationHandler
, which then directs
invocations to the targetpublic void setInvokerLocator(String locator) throws MalformedURLException
InvokerLocator
that identifies the
Remoting Connector
that directs invocations to the
AOPRemotingInvocationHandler
, which then directs
invocations to the target
locator
- the String form of the InvokerLocator
that identifies the
Remoting Connector
that directs invocations to the
AOPRemotingInvocationHandler
, which then directs
invocations to the target
MalformedURLException
public org.jboss.remoting.transport.Connector getConnector()
Connector
that directs invocations to the
AOPRemotingInvocationHandler
, which then directs
invocations to the target
Connector
that directs invocations to the
AOPRemotingInvocationHandler
, which then directs
invocations to the targetpublic void setConnector(org.jboss.remoting.transport.Connector connector)
Connector
that directs invocations to the
AOPRemotingInvocationHandler
, which then directs
invocations to the target
connector
- the Remoting Connector
that directs invocations to the
AOPRemotingInvocationHandler
, which then directs
invocations to the targetpublic String getSubsystem()
AOPRemotingInvocationHandler
running in the Remoting Connector
. Defaults to "AOP".
AOPRemotingInvocationHandler
running in the Remoting Connector
. Defaults to "AOP".public void setSubsystem(String subsystem)
AOPRemotingInvocationHandler
running in the Remoting Connector
. Defaults to "AOP".
subsystem
- the subsystem name that identifes the AOPRemotingInvocationHandler
running in the Remoting Connector
. Defaults to "AOP".public ArrayList<?> getInterceptors()
N.B. Each element of the list is either
public void setInterceptors(ArrayList<?> interceptors)
N.B. Each element of the list must be either
If the element is a class name, then the class must have either
N.B.The interceptors MergeMetaDataInterceptor
and
InvokeRemoteInterceptor
are automatically appended to the end of the list.
interceptors
- the interceptors through which an invocation will pass on the client side.public org.jboss.aop.proxy.Proxy getProxy()
RemotingProxyFactory
RemotingProxyFactory
public void start() throws Exception
The lifecycle method that
Exception
public void stop() throws Exception
The lifecycle method that
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |