this.context = context;
}
public void start() throws Exception
{
CacheContainerRegistryConfiguration registry = this.source.getRegistryConfiguration();
for (CacheContainerRegistryConfigurationEntry entry: registry.getEntries())
{
if (entry.getJndiName() == null)
{
entry.setJndiName(this.context.composeName(entry.getId(), registry.getBaseJndiName()));
}
this.add(entry);
}
CacheContainerRegistryConfigurationEntry defaultEntry = registry.getDefaultEntry();
if (defaultEntry == null)
{
defaultEntry = registry.getEntries().get(0);
}
this.defaultContainer = this.containers.get(defaultEntry.getId()).getContainer();
singleton.compareAndSet(null, this);