use of org.apache.derby.iapi.services.property.PropertyFactory in project derby by apache.
the class GenericLanguageFactory method boot.
/*
ModuleControl interface
*/
/**
* Start-up method for this instance of the language factory.
* This service is expected to be started and accessed relative
* to a database.
*
* @param startParams The start-up parameters (ignored in this case)
*
* @exception StandardException Thrown if module cannot be booted.
*/
public void boot(boolean create, Properties startParams) throws StandardException {
LanguageConnectionFactory lcf = (LanguageConnectionFactory) findServiceModule(this, LanguageConnectionFactory.MODULE);
PropertyFactory pf = lcf.getPropertyFactory();
if (pf != null)
pf.addPropertySetNotification(new LanguageDbPropertySetter());
emptySet = new GenericParameterValueSet(null, 0, false);
}
use of org.apache.derby.iapi.services.property.PropertyFactory in project derby by apache.
the class AuthenticationServiceBase method boot.
/**
* /*
** Methods of module control - To be overriden
*/
/**
* Start this module. In this case, nothing needs to be done.
* @see org.apache.derby.iapi.services.monitor.ModuleControl#boot
*
* @exception StandardException upon failure to load/boot
* the expected authentication service.
*/
public void boot(boolean create, Properties properties) throws StandardException {
//
// we expect the Access factory to be available since we're
// at boot stage.
//
store = (AccessFactory) getServiceModule(this, AccessFactory.MODULE);
// register to be notified upon db properties changes
// _only_ if we're on a database context of course :)
PropertyFactory pf = (PropertyFactory) getServiceModule(this, org.apache.derby.shared.common.reference.Module.PropertyFactory);
if (pf != null)
pf.addPropertySetNotification(this);
}
Aggregations