Tabnine Logo
ConfigurationKeyContext.configurationKeyFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
configurationKeyFactory
method
in
de.smartics.properties.spi.config.domain.key.ConfigurationKeyContext

Best Java code snippets using de.smartics.properties.spi.config.domain.key.ConfigurationKeyContext.configurationKeyFactory (Showing top 10 results out of 315)

origin: de.smartics.properties/smartics-properties-config

private static ConfigurationKey<?> createKey(final ApplicationId applicationId)
{
 return ConfigurationKeyContextManager.INSTANCE.context()
   .configurationKeyFactory().createKey(applicationId);
}
origin: de.smartics.properties/smartics-properties-config

/**
 * Default constructor.
 *
 * @param registry the registry to resolve property descriptors.
 * @param decrypter the helper to decrypt secured property values.
 * @throws NullArgumentException if {@code registry} or {@code decrypter} is
 *           <code>null</code>.
 */
public BootConfigurationProperties(final PropertyDescriptorRegistry registry,
  final PropertyValueSecurity decrypter) throws NullArgumentException
{
 super(ConfigurationKeyContextManager.INSTANCE.context()
   .configurationKeyFactory().createUniqueKey("smartics-boot"), registry,
   decrypter);
}
origin: de.smartics.properties/smartics-properties-config

@Override
public final ConfigurationPropertiesManagement createDefaultManagement()
{
 final ConfigurationKey<?> key =
   ConfigurationKeyContextManager.INSTANCE.context()
     .configurationKeyFactory().createDefaultKey();
 return createManagement(key);
}
origin: de.smartics.properties/smartics-properties-config

@Override
public final T createDefault()
{
 final ConfigurationKey<?> key =
   ConfigurationKeyContextManager.INSTANCE.context()
     .configurationKeyFactory().createDefaultKey();
 return create(key);
}
origin: de.smartics.properties/smartics-properties-config

/**
 * Convenience constructor allowing to control the need of existing properties
 * files on the classpath, using its own registry and an artificial key.
 *
 * @param requiresDefaultOnClassPath the flag controls the behavior on not
 *          finding default properties on the classpath. If the value is
 *          <code>true</code> not finding the properties file on the class
 *          path signals an exception, if set to <code>false</code> the
 *          properties are not required to exist. In the latter case the
 *          properties may be set purely programatically.
 * @param decrypter the helper to decrypt secured property values.
 * @throws NullArgumentException if {@code decrypter} is <code>null</code>.
 */
public ClasspathConfigurationProperties(
  final boolean requiresDefaultOnClassPath,
  final PropertyValueSecurity decrypter) throws NullArgumentException
{
 super(ConfigurationKeyContextManager.INSTANCE.context()
   .configurationKeyFactory().createDefaultKey(),
   new InMemoryPropertyDescriptorRegistry(), requiresDefaultOnClassPath,
   decrypter);
}
origin: de.smartics.properties/smartics-properties-transfer-filesystem

@Override
public void clear() throws TransferException
{
 try
 {
  FileUtils.cleanDirectory(targetFolder);
 }
 catch (final IOException e)
 {
  final ConfigurationKey<?> key =
    ConfigurationKeyContextManager.INSTANCE.context()
      .configurationKeyFactory().createDefaultKey();
  throw new TransferException(new TransferMessageBean(
    TransferFileCode.FAILED_TO_CLEAN, e, key, targetFolder));
 }
}
origin: de.smartics.properties/smartics-properties-resource-maven

private static void initialize()
{
 final ConfigurationPropertiesFactory factory =
   ConfigurationPropertiesFactoryFactory
     .createFactory(PropertiesConfigurationPropertiesFactory.class);
 final ConfigurationKey<?> key =
   ConfigurationKeyContextManager.INSTANCE.context()
     .configurationKeyFactory().createDefaultKey();
 final ConfigurationPropertiesManagement propertiesConfiguration =
   factory.createManagement(key);
 INSTANCE =
   propertiesConfiguration
     .getProperties(ResourceRepositoryProperties.class);
}
origin: de.smartics.properties/smartics-properties-config

private ConfigurationKey<?> parseKey(final String key)
{
 final ConfigurationKeyFactory<?> factory =
   ConfigurationKeyContextManager.INSTANCE.context()
     .configurationKeyFactory();
 try
 {
  final ConfigurationKey<?> configurationKey =
    factory.createKeyFromString(key);
  return configurationKey;
 }
 catch (final IllegalArgumentException e)
 {
  final DataSourceConfigurationMessageBean message =
    new DataSourceConfigurationMessageBean(
      DataSourceCode.INVALID_CONFIGURATION_KEY, e,
      manager.getDataSourceId(), null);
  throw new DataSourceException(message); // NOPMD
 }
}
origin: de.smartics.properties/smartics-properties-config

.configurationKeyFactory().createDefaultKey();
origin: de.smartics.properties/smartics-properties-config

.configurationKeyFactory().createDefaultKey();
de.smartics.properties.spi.config.domain.keyConfigurationKeyContextconfigurationKeyFactory

Javadoc

Provides access to the configuration key factory.

Popular methods of ConfigurationKeyContext

  • definitionConfigParser
    Provides a parser to parse definition files.
  • definitionKeyHelper
    Provides a contextaware definition helper.
  • keyListBuilder
    Provides access to the key list builder that creates a list of configuration keys to fetch property

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now