Called by the {@link org.jboss.hibernate.jmx.Hibernate} MBean when it is time to generate any custom listeners.
Implementors should use the {@link Configuration#setListener(String,Object)} method to inject the appropriatelistener instance(s).
Note that the {@link org.hibernate.SessionFactory} is not yet available; it has not even beeen built at this time.
Note that it is possible to actually set some properties on the incoming configuration instance. It is not advisable to do this with any Hibernate-specific settings as the MBean will have final say after execution of this method regarding any settings it manages (potentially over-writing a setting done during this execution). Maybe useful for the listeners, themselves, being able to read custom settings later from the {@link org.hibernate.SessionFactory}.
@param objectName The bean name.
@param configuration The configuration into which the customer listeners should be injected.
@throws DeploymentException If any problems occur which should lead to a deployment failure (i.e. do not build the{@link org.hibernate.SessionFactory}).