public class LocalEnvironment extends Object implements Environment
Environment
that can be used with a standalone repository.
To use a custom Environment instance, simply create a RepositoryConfiguration
as usual but then call the
RepositoryConfiguration.with(Environment)
with the Environment instance and then use the resulting
RepositoryConfiguration instance.
Constructor and Description |
---|
LocalEnvironment() |
Modifier and Type | Method and Description |
---|---|
org.jgroups.Channel |
getChannel(String name)
Get the JGroups channel with the given logical name.
|
ClassLoader |
getClassLoader(Object caller,
String... classpathEntries)
Get a classloader given the supplied set of logical classpath entries, which the implementation can interpret however it
needs.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
defaultPersistenceConfiguration, getDb, shutdown
public org.jgroups.Channel getChannel(String name) throws Exception
Environment
getChannel
in interface Environment
name
- the name of the channel; may not be nullException
- if there is a problem obtaining the named channelpublic ClassLoader getClassLoader(Object caller, String... classpathEntries)
Environment
getClassLoader
in interface Environment
caller
- the object instance which calls this method and whose class loader will be used as a fallback; may not be nullclasspathEntries
- the logical classpath entries; may be nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.