Tabnine Logo
ServiceProfile.newInstance
Code IndexAdd Tabnine to your IDE (free)

How to use
newInstance
method
in
com.asakusafw.yaess.core.ServiceProfile

Best Java code snippets using com.asakusafw.yaess.core.ServiceProfile.newInstance (Showing top 3 results out of 315)

origin: asakusafw/asakusafw

/**
 * Creates a new instance.
 * The created service will automatically {@link Service#configure(ServiceProfile) configured}
 * by using this profile.
 * @param variables the variable resolver
 * @return the created instance.
 * @throws InterruptedException if interrupted in configuring the target service
 * @throws IOException if failed to create or configure the service
 * @deprecated use {@link #newInstance()} instead
 */
@Deprecated
public T newInstance(VariableResolver variables) throws InterruptedException, IOException {
  if (variables == null) {
    throw new IllegalArgumentException("variables must not be null"); //$NON-NLS-1$
  }
  return newInstance();
}
origin: asakusafw/asakusafw

      subPrefix), e);
ExecutionScriptHandler<T> subInstance = subProfile.newInstance();
results.put(key, subInstance);
origin: asakusafw/asakusafw

ExecutionMonitorProvider monitors = profile.getMonitors().newInstance();
ExecutionLockProvider locks = profile.getLocks().newInstance();
JobScheduler scheduler = profile.getScheduler().newInstance();
HadoopScriptHandler hadoopHandler = profile.getHadoopHandler().newInstance();
for (Map.Entry<String, ServiceProfile<CommandScriptHandler>> entry
    : profile.getCommandHandlers().entrySet()) {
  commandHandlers.put(entry.getKey(), entry.getValue().newInstance());
com.asakusafw.yaess.coreServiceProfilenewInstance

Javadoc

Creates a new instance using context parameters. The created service will automatically Service#configure(ServiceProfile)by using this profile.

Popular methods of ServiceProfile

  • getConfiguration
    Returns the target configuration.
  • getContext
    Returns the current profile context.
  • getPrefix
    Returns the key prefix of this profile.
  • getServiceClass
    Returns the service class.
  • load
    Loads a service profile with the specified key prefix.
  • normalize
    Normalizes the configuration value.
  • <init>
    Creates a new instance.

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JLabel (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top Sublime Text 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