Class clazz = null;
try {
clazz = getContainer().getClassLoader().loadClass(getClassName());
} catch (ClassNotFoundException e) {
throw new FactoryException("Cannot load the class for class name '" + getClassName() + "'", e);
}
setBeanClass(clazz);
setHashes(Hash.hashClass(clazz));
// Use the container event dispatcher.
this.dispatcher = ((JContainer3) this.container).getEventDispatcher();
try {
this.namingManager = NamingManager.getInstance();
} catch (NamingException e) {
throw new FactoryException("Cannot get instance of the naming manager", e);
}
this.injectors = container.getConfiguration().getInjectors();
// Get a timer service if a timer component is present.