JBoss EJB client 1.0.5.Final

org.jboss.ejb.client
Class PropertiesBasedEJBClientConfiguration

java.lang.Object
  extended by org.jboss.ejb.client.PropertiesBasedEJBClientConfiguration
All Implemented Interfaces:
EJBClientConfiguration

public class PropertiesBasedEJBClientConfiguration
extends Object
implements EJBClientConfiguration

A EJBClientConfiguration which is configured through Properties. Some well known properties will be looked for in the Properties that is passed to the constructor, for setting up the configurations

Author:
Jaikiran Pai

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.ejb.client.EJBClientConfiguration
EJBClientConfiguration.ClusterConfiguration, EJBClientConfiguration.ClusterNodeConfiguration, EJBClientConfiguration.CommonConnectionCreationConfiguration, EJBClientConfiguration.RemotingConnectionConfiguration
 
Constructor Summary
PropertiesBasedEJBClientConfiguration(Properties properties)
           
 
Method Summary
 CallbackHandler getCallbackHandler()
          Returns the default CallbackHandler that will be used while creating remoting connections.
 EJBClientConfiguration.ClusterConfiguration getClusterConfiguration(String clusterName)
          Returns a cluster configuration corresponding to the passed clusterName.
 Iterator<EJBClientConfiguration.ClusterConfiguration> getClusterConfigurations()
          Returns the cluster configurations.
 Iterator<EJBClientConfiguration.RemotingConnectionConfiguration> getConnectionConfigurations()
          Returns the connection configurations.
 org.xnio.OptionMap getEndpointCreationOptions()
          Returns the endpoint creation options that will be used for creating the remoting endpoint.
 String getEndpointName()
          Returns the endpoint name to be used for creating the remoting endpoint.
 org.xnio.OptionMap getRemoteConnectionProviderCreationOptions()
          Returns the options that will be used for creating a remote connection provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesBasedEJBClientConfiguration

public PropertiesBasedEJBClientConfiguration(Properties properties)
Method Detail

getEndpointName

public String getEndpointName()
Description copied from interface: EJBClientConfiguration
Returns the endpoint name to be used for creating the remoting endpoint. This method must not return null

Specified by:
getEndpointName in interface EJBClientConfiguration
Returns:

getEndpointCreationOptions

public org.xnio.OptionMap getEndpointCreationOptions()
Description copied from interface: EJBClientConfiguration
Returns the endpoint creation options that will be used for creating the remoting endpoint. This method must not return null.

Specified by:
getEndpointCreationOptions in interface EJBClientConfiguration
Returns:

getRemoteConnectionProviderCreationOptions

public org.xnio.OptionMap getRemoteConnectionProviderCreationOptions()
Description copied from interface: EJBClientConfiguration
Returns the options that will be used for creating a remote connection provider. This method must not return null.

Specified by:
getRemoteConnectionProviderCreationOptions in interface EJBClientConfiguration
Returns:

getCallbackHandler

public CallbackHandler getCallbackHandler()
Description copied from interface: EJBClientConfiguration
Returns the default CallbackHandler that will be used while creating remoting connections. Individual connection configurations, cluster configurations, cluster node configurations can override the CallbackHandler to be used while creating the connections

This method must not return null.

Specified by:
getCallbackHandler in interface EJBClientConfiguration
Returns:

getConnectionConfigurations

public Iterator<EJBClientConfiguration.RemotingConnectionConfiguration> getConnectionConfigurations()
Description copied from interface: EJBClientConfiguration
Returns the connection configurations. If there are no such configurations, then this method will return an empty Iterator

Specified by:
getConnectionConfigurations in interface EJBClientConfiguration
Returns:

getClusterConfigurations

public Iterator<EJBClientConfiguration.ClusterConfiguration> getClusterConfigurations()
Description copied from interface: EJBClientConfiguration
Returns the cluster configurations. If there are no such configurations, then this method will return an empty Iterator

Specified by:
getClusterConfigurations in interface EJBClientConfiguration
Returns:

getClusterConfiguration

public EJBClientConfiguration.ClusterConfiguration getClusterConfiguration(String clusterName)
Description copied from interface: EJBClientConfiguration
Returns a cluster configuration corresponding to the passed clusterName. Returns null if no such cluster configuration exists.

Specified by:
getClusterConfiguration in interface EJBClientConfiguration
Parameters:
clusterName - The name of the cluster
Returns:

JBoss EJB client 1.0.5.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.