org.granite.client.messaging.channel
Class AbstractChannelFactory

java.lang.Object
  extended by org.granite.client.messaging.channel.AbstractChannelFactory
All Implemented Interfaces:
ChannelFactory
Direct Known Subclasses:
AMFChannelFactory, JMFChannelFactory

public abstract class AbstractChannelFactory
extends Object
implements ChannelFactory


Field Summary
protected  AliasRegistry aliasRegistry
           
protected  ContentType contentType
           
protected  Object context
           
protected  Long defaultTimeToLive
           
protected  Transport messagingTransport
           
protected  Transport remotingTransport
           
protected  Set<String> scanPackageNames
           
 
Constructor Summary
protected AbstractChannelFactory(ContentType contentType)
           
protected AbstractChannelFactory(ContentType contentType, Object context)
           
protected AbstractChannelFactory(ContentType contentType, Object context, Transport remotingTransport, Transport messagingTransport)
           
 
Method Summary
 ContentType getContentType()
           
 Object getContext()
           
 long getDefaultTimeToLive()
           
 Transport getMessagingTransport()
           
 Transport getRemotingTransport()
           
 MessagingChannel newMessagingChannel(String id, String uri)
           
 RemotingChannel newRemotingChannel(String id, String uri)
           
 RemotingChannel newRemotingChannel(String id, String uri, int maxConcurrentRequests)
           
 void setAliasRegistry(AliasRegistry aliasRegistry)
           
 void setContext(Object context)
           
 void setDefaultTimeToLive(long defaultTimeToLive)
           
 void setMessagingTransport(Transport messagingTransport)
           
 void setRemotingTransport(Transport remotingTransport)
           
 void setScanPackageNames(Set<String> packageNames)
           
 void setScanPackageNames(String... packageNames)
           
 void start()
           
 void stop()
           
 void stop(boolean stopTransports)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.granite.client.messaging.channel.ChannelFactory
newMessagingChannel, newRemotingChannel, newRemotingChannel
 

Field Detail

contentType

protected final ContentType contentType

remotingTransport

protected Transport remotingTransport

messagingTransport

protected Transport messagingTransport

context

protected Object context

scanPackageNames

protected Set<String> scanPackageNames

aliasRegistry

protected AliasRegistry aliasRegistry

defaultTimeToLive

protected Long defaultTimeToLive
Constructor Detail

AbstractChannelFactory

protected AbstractChannelFactory(ContentType contentType)

AbstractChannelFactory

protected AbstractChannelFactory(ContentType contentType,
                                 Object context)

AbstractChannelFactory

protected AbstractChannelFactory(ContentType contentType,
                                 Object context,
                                 Transport remotingTransport,
                                 Transport messagingTransport)
Method Detail

getContext

public Object getContext()
Specified by:
getContext in interface ChannelFactory

setContext

public void setContext(Object context)
Specified by:
setContext in interface ChannelFactory

getContentType

public ContentType getContentType()
Specified by:
getContentType in interface ChannelFactory

getDefaultTimeToLive

public long getDefaultTimeToLive()
Specified by:
getDefaultTimeToLive in interface ChannelFactory

setDefaultTimeToLive

public void setDefaultTimeToLive(long defaultTimeToLive)
Specified by:
setDefaultTimeToLive in interface ChannelFactory

setAliasRegistry

public void setAliasRegistry(AliasRegistry aliasRegistry)
Specified by:
setAliasRegistry in interface ChannelFactory

getRemotingTransport

public Transport getRemotingTransport()
Specified by:
getRemotingTransport in interface ChannelFactory

setRemotingTransport

public void setRemotingTransport(Transport remotingTransport)
Specified by:
setRemotingTransport in interface ChannelFactory

getMessagingTransport

public Transport getMessagingTransport()
Specified by:
getMessagingTransport in interface ChannelFactory

setMessagingTransport

public void setMessagingTransport(Transport messagingTransport)
Specified by:
setMessagingTransport in interface ChannelFactory

setScanPackageNames

public void setScanPackageNames(String... packageNames)

setScanPackageNames

public void setScanPackageNames(Set<String> packageNames)
Specified by:
setScanPackageNames in interface ChannelFactory

start

public void start()
Specified by:
start in interface ChannelFactory

stop

public void stop()
Specified by:
stop in interface ChannelFactory

stop

public void stop(boolean stopTransports)
Specified by:
stop in interface ChannelFactory

newRemotingChannel

public RemotingChannel newRemotingChannel(String id,
                                          String uri)
Specified by:
newRemotingChannel in interface ChannelFactory

newRemotingChannel

public RemotingChannel newRemotingChannel(String id,
                                          String uri,
                                          int maxConcurrentRequests)
Specified by:
newRemotingChannel in interface ChannelFactory

newMessagingChannel

public MessagingChannel newMessagingChannel(String id,
                                            String uri)
Specified by:
newMessagingChannel in interface ChannelFactory