Package org.jboss.ejb.client.legacy
Class JBossEJBProperties
- java.lang.Object
-
- org.jboss.ejb.client.legacy.JBossEJBProperties
-
- All Implemented Interfaces:
org.wildfly.common.context.Contextual<JBossEJBProperties>
public final class JBossEJBProperties extends Object implements org.wildfly.common.context.Contextual<JBossEJBProperties>
An object model of the legacyjboss-ejb.propertiesfile format.- Author:
- Jaikiran Pai, Tomasz Adamski, David M. Lloyd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJBossEJBProperties.AuthenticationConfigurationstatic classJBossEJBProperties.ClusterConfigurationstatic classJBossEJBProperties.ClusterNodeConfigurationstatic classJBossEJBProperties.ConnectionConfigurationstatic classJBossEJBProperties.HttpConnectionConfiguration
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_PATH_NAMEstatic StringPROPERTY_KEY_CLUSTERS
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.common.context.Contextual
run, runAction, runBiConsumer, runBiFunction, runBiPredicate, runCallable, runConsumer, runExBiConsumer, runExBiFunction, runExBiPredicate, runExceptionAction, runExConsumer, runExFunction, runExIntFunction, runExLongFunction, runExPredicate, runFunction, runIntFunction, runLongFunction, runPredicate
-
-
-
-
Field Detail
-
DEFAULT_PATH_NAME
public static final String DEFAULT_PATH_NAME
- See Also:
- Constant Field Values
-
PROPERTY_KEY_CLUSTERS
public static final String PROPERTY_KEY_CLUSTERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEndpointName
public String getEndpointName()
-
getDefaultCallbackHandlerClassName
public String getDefaultCallbackHandlerClassName()
-
getAuthenticationConfiguration
public JBossEJBProperties.AuthenticationConfiguration getAuthenticationConfiguration()
-
getEndpointCreationOptions
public org.xnio.OptionMap getEndpointCreationOptions()
-
getRemoteConnectionProviderCreationOptions
public org.xnio.OptionMap getRemoteConnectionProviderCreationOptions()
-
getConnectionList
public List<JBossEJBProperties.ConnectionConfiguration> getConnectionList()
-
getHttpConnectionList
public List<JBossEJBProperties.HttpConnectionConfiguration> getHttpConnectionList()
-
getDefaultCallbackHandlerSupplier
public org.wildfly.common.function.ExceptionSupplier<CallbackHandler,ReflectiveOperationException> getDefaultCallbackHandlerSupplier()
-
getDeploymentNodeSelectorSupplier
public org.wildfly.common.function.ExceptionSupplier<DeploymentNodeSelector,ReflectiveOperationException> getDeploymentNodeSelectorSupplier()
-
getClusterConfigurations
public Map<String,JBossEJBProperties.ClusterConfiguration> getClusterConfigurations()
-
getInvocationTimeout
public long getInvocationTimeout()
-
getReconnectTimeout
public long getReconnectTimeout()
-
getDeploymentNodeSelectorClassName
public String getDeploymentNodeSelectorClassName()
-
isDefaultConnectEagerly
public boolean isDefaultConnectEagerly()
-
getInstanceContextManager
@NotNull public org.wildfly.common.context.ContextManager<JBossEJBProperties> getInstanceContextManager()
Get the context manager.- Specified by:
getInstanceContextManagerin interfaceorg.wildfly.common.context.Contextual<JBossEJBProperties>- Returns:
- the context manager (not
null)
-
getContextManager
@NotNull public static org.wildfly.common.context.ContextManager<JBossEJBProperties> getContextManager()
Get the context manager.- Returns:
- the context manager (not
null)
-
fromProperties
public static JBossEJBProperties fromProperties(String fileName, Properties properties)
-
fromResource
public static <T,U> JBossEJBProperties fromResource(String fileName, org.wildfly.common.function.ExceptionBiFunction<T,U,InputStream,IOException> streamSupplier, T param1, U param2) throws IOException
- Throws:
IOException
-
fromResource
public static <T> JBossEJBProperties fromResource(String fileName, org.wildfly.common.function.ExceptionFunction<T,InputStream,IOException> streamSupplier, T param) throws IOException
- Throws:
IOException
-
fromResource
public static JBossEJBProperties fromResource(String fileName, org.wildfly.common.function.ExceptionSupplier<InputStream,IOException> streamSupplier) throws IOException
- Throws:
IOException
-
fromFile
public static JBossEJBProperties fromFile(File propertiesFile) throws IOException
- Throws:
IOException
-
fromPath
public static JBossEJBProperties fromPath(Path propertiesFile) throws IOException
- Throws:
IOException
-
fromClassPath
public static JBossEJBProperties fromClassPath(ClassLoader classLoader, String pathName) throws IOException
- Throws:
IOException
-
fromClassPath
public static JBossEJBProperties fromClassPath() throws IOException
- Throws:
IOException
-
-