/** * @see org.springframework.extensions.config.ConfigService#getConfig(java.lang.Object) */ public Config getConfig(Object object) { return getConfig(object, new ConfigLookupContext()); }
/** * Registers this object with the injected ConfigService */ public void register() { if (configService == null) { throw new ConfigException("Config service must be provided"); } configService.addDeployer(this); }
/** * <p>A factory method made available to Spring to generate a <code>RemoteConfigElement</code> Spring Bean</p> * @return The "remote" element from the "Remote" Config returned by the <code>ConfigService</code> */ public RemoteConfigElement getRemoteConfig() { Config remoteConfig = configService.getConfig("Remote"); RemoteConfigElement remoteConfigElement = (RemoteConfigElement) remoteConfig.getConfigElement("remote"); return remoteConfigElement; }
public String getDescription() { return getStringProperty(DESCRIPTION); } public String getName()
public String getName() { return getStringProperty(NAME); } public String getNamespace()
public String getEndpoint() { return getStringProperty(ENDPOINT); } }
public String getJspPath() { return getStringProperty(JSP_PATH); } public String getProcessorId()
public String getParentId() { return getStringProperty(PARENT_ID); } }
/** * Parses all the files passed to this config service */ protected List<ConfigDeployment> parse() { return appendConfig(configSource); }
/** * Destroy config in shutdown */ @Override protected void onShutdown(ApplicationEvent event) { destroy(); } }
public void setConfigService(ConfigService configService) { this.configService = configService; Config config = this.configService.getConfig("Server"); serverProperties = (ServerConfigElement)config.getConfigElement(ServerConfigElement.CONFIG_ELEMENT_ID); }
/** * @see org.springframework.extensions.config.ConfigService#getConfig(java.lang.Object) */ public Config getConfig(Object object) { return getConfig(object, new ConfigLookupContext()); }
/** * Registers this object with the injected ConfigService */ public void register() { if (configService == null) { throw new ConfigException("Config service must be provided"); } configService.addDeployer(this); }
public String getImplementationClass() { return getStringProperty(CLAZZ); } public String getDescription()
public void setConfigService(ConfigService configService) { this.configService = configService; Config config = this.configService.getConfig("Server"); serverProperties = (ServerConfigElement)config.getConfigElement(ServerConfigElement.CONFIG_ELEMENT_ID); }
/** * @see org.springframework.extensions.config.ConfigService#getConfig(java.lang.Object) */ public Config getConfig(Object object) { return getConfig(object, new ConfigLookupContext()); }
/** * Registers this object with the injected ConfigService */ public void register() { if (configService == null) { throw new ConfigException("Config service must be provided"); } configService.addDeployer(this); }
/** * @return RemoteConfigElement */ protected RemoteConfigElement getRemoteConfig() { RemoteConfigElement remoteConfig = (RemoteConfigElement)configService.getConfig( "Remote").getConfigElement("remote"); return remoteConfig; }
/** * <p>A factory method made available to Spring to generate a <code>RemoteConfigElement</code> Spring Bean</p> * @return The "remote" element from the "Remote" Config returned by the <code>ConfigService</code> */ public RemoteConfigElement getRemoteConfig() { Config remoteConfig = configService.getConfig("Remote"); RemoteConfigElement remoteConfigElement = (RemoteConfigElement) remoteConfig.getConfigElement("remote"); return remoteConfigElement; }
/** * Gets the remote config. * * @return the remote config */ public RemoteConfigElement getRemoteConfig() { if (this.config == null) { // retrieve the remote configuration this.config = (RemoteConfigElement) configService.getConfig("Remote").getConfigElement("remote"); } return this.config; }