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(); }
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; }
if (addrsParam != null) for (Iterator it = addrsParam.getProperties().entrySet().iterator(); it.hasNext();)
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); }