public class BootstrapContextCoordinator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
CloneableBootstrapContext |
createBootstrapContext(java.lang.String id)
Create a bootstrap context
|
CloneableBootstrapContext |
createBootstrapContext(java.lang.String id,
java.lang.String name)
Get a bootstrap context
|
java.lang.String |
createIdentifier(java.lang.String raClz,
java.util.Map<java.lang.String,java.lang.String> cps)
Create an identifier
|
java.lang.String |
createIdentifier(java.lang.String raClz,
java.util.Map<java.lang.String,java.lang.String> cps,
java.lang.String bootstrapContextName)
Create an identifier
|
CloneableBootstrapContext |
getDefaultBootstrapContext()
Get the default bootstrap context
|
static BootstrapContextCoordinator |
getInstance()
Get the instance
|
void |
registerBootstrapContext(CloneableBootstrapContext bc)
Register bootstrap context
|
void |
removeBootstrapContext(java.lang.String id)
Remove a bootstrap context
|
void |
setDefaultBootstrapContext(CloneableBootstrapContext bc)
Set the default bootstrap context
|
void |
unregisterBootstrapContext(CloneableBootstrapContext bc)
Unregister boostrap context
|
public static BootstrapContextCoordinator getInstance()
public void registerBootstrapContext(CloneableBootstrapContext bc)
bc
- The bootstrap contextpublic void unregisterBootstrapContext(CloneableBootstrapContext bc)
bc
- The bootstrap contextpublic CloneableBootstrapContext getDefaultBootstrapContext()
public void setDefaultBootstrapContext(CloneableBootstrapContext bc)
bc
- The bootstrap contextpublic CloneableBootstrapContext createBootstrapContext(java.lang.String id)
id
- The id of the bootstrap contextpublic CloneableBootstrapContext createBootstrapContext(java.lang.String id, java.lang.String name)
id
- The id of the bootstrap contextname
- The name of the bootstrap context; if null
default value is usedpublic void removeBootstrapContext(java.lang.String id)
id
- The id of the bootstrap contextpublic java.lang.String createIdentifier(java.lang.String raClz, java.util.Map<java.lang.String,java.lang.String> cps)
raClz
- The resource adapter class namecps
- The config propertiespublic java.lang.String createIdentifier(java.lang.String raClz, java.util.Map<java.lang.String,java.lang.String> cps, java.lang.String bootstrapContextName)
raClz
- The resource adapter class namecps
- The config propertiesbootstrapContextName
- The name of the bootstrap contextCopyright © 2013 IronJacamar (http://www.ironjacamar.org)