public HelpServiceImpl(InitParams params) { if (params == null) { throw new IllegalStateException("given params are null in helpService"); } this.props = params.getPropertiesParam("help.pages"); if (props == null) { throw new IllegalStateException("params.getPropertiesParam() returns null in helpService"); } }
public AddNamespacesPlugin(InitParams params) { PropertiesParam param = params.getPropertiesParam("namespaces"); if (param != null) { namespaces = param.getProperties(); } }
public CustomizeSpaceHomePageListener(SpaceCustomizationService spaceCustomizationService_, InitParams params) { this.spaceCustomizationService = spaceCustomizationService_; this.welcomeSCVCustomPreferences = params.getPropertiesParam("welcomeSCVCustomPreferences").getProperties(); }
private void putConfiguredValues(InitParams initParams, MappedParametrizedObjectEntry qmEntry) { PropertiesParam props = initParams.getPropertiesParam(BaseQuotaManager.CACHE_CONFIGURATION_PROPERTIES_PARAM); for (Iterator<Property> iter = props.getPropertyIterator(); iter.hasNext();) { Property prop = iter.next(); qmEntry.putParameterValue(prop.getName(), prop.getValue()); } }
public MailServiceImpl(InitParams params, final ExoContainerContext ctx) throws Exception props_.putAll(params.getPropertiesParam("config").getProperties()); if ("true".equals(props_.getProperty("mail.smtp.auth")))
/** * Default constructor */ public DistributedCacheManager(InitParams params, ConfigurationManager configManager, TransactionService ts) { ValueParam vp; final String result; if (params != null && (vp = params.getValueParam(CONFIG_FILE_PARAMETER_NAME)) != null && (result = vp.getValue()) != null && !result.isEmpty()) { PropertiesParam pp = params.getPropertiesParam(PARAMS_PARAMETER_NAME); this.manager = init(result, pp == null ? null : pp.getProperties(), configManager, ts == null ? null : ts.getTransactionManager()); } else { throw new IllegalArgumentException("The parameter '" + CONFIG_FILE_PARAMETER_NAME + "' must be set"); } }
public ChromatticLifeCycle(InitParams params) { Map<String, String> options = new HashMap<String, String>(); PropertiesParam pp = params.getPropertiesParam("options"); if (pp != null) { options.putAll(pp.getProperties()); } this.domainName = params.getValueParam("domain-name").getValue(); this.workspaceName = params.getValueParam("workspace-name").getValue(); this.entityClassNames = params.getValuesParam("entities").getValues(); this.optionMap = options; }
valueBackupFiles == null ? DEFAULT_MAX_BACKUP_FILES : Integer.valueOf(valueBackupFiles.getValue()); if (params.getPropertiesParam("working-conf") != null) String cn = params.getPropertiesParam("working-conf").getProperty("persister-class-name"); if (cn == null) cn = params.getPropertiesParam("working-conf").getProperty("persisterClassName"); // try old name, pre 1.9 (Class<ConfigurationPersister>)ClassLoading.forName(cn, this); configurationPersister = configurationPersisterClass.newInstance(); configurationPersister.init(params.getPropertiesParam("working-conf"));
reference = new Reference(cnParam.getValue(), factoryParam.getValue(), factoryLocation); PropertiesParam addrsParam = params.getPropertiesParam("ref-addresses"); if (addrsParam != null)
public CronJob(InitParams params) throws Exception { ExoProperties props = params.getPropertiesParam("cronjob.info").getProperties(); String jobName = props.getProperty("jobName"); String jobGroup = props.getProperty("groupName"); String jobClass = props.getProperty("job"); Class<?> clazz = ClassLoading.forName(jobClass, this); jinfo_ = new JobInfo(jobName, jobGroup, clazz); expression_ = props.getProperty("expression"); }
public PeriodJob(InitParams params) throws Exception { ExoProperties props = params.getPropertiesParam("job.info").getProperties(); String jobName = props.getProperty("jobName"); String jobGroup = props.getProperty("groupName"); String jobClass = props.getProperty("job"); Class<?> clazz = ClassLoading.forName(jobClass, this); jinfo_ = new JobInfo(jobName, jobGroup, clazz); Date startTime = getDate(props.getProperty("startTime")); Date endTime = getDate(props.getProperty("endTime")); int repeatCount = Integer.parseInt(props.getProperty("repeatCount")); long repeatInterval = Integer.parseInt(props.getProperty("period")); pjinfo_ = new PeriodInfo(startTime, endTime, repeatCount, repeatInterval); }