Codota Logo
StandaloneApplicationContext
Code IndexAdd Codota to your IDE (free)

How to use
StandaloneApplicationContext
in
org.milyn.container.standalone

Best Java code snippets using org.milyn.container.standalone.StandaloneApplicationContext (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.virtuslab/milyn-smooks-core

/**
 * Public Default Constructor.
 *
 * Resource configurations can be added through calls to
 * {@link #addConfigurations(String)} or {@link #addConfigurations(String,java.io.InputStream)}.
 */
public Smooks() {
  context = new StandaloneApplicationContext(true);
  visitorConfigMap = new VisitorConfigMap(context);
}
origin: org.milyn/milyn-smooks-core

/**
 * Get the ClassLoader associated with this Smooks instance.
 * @return The ClassLoader instance.
 */
public ClassLoader getClassLoader() {
  return context.getClassLoader();
}
origin: org.milyn/milyn-smooks-core

/**
 * Close this Smooks instance and all associated resources.
 * <p/>
 * Should result in the {@link org.milyn.delivery.annotation.Uninitialize uninitialization}
 * of all allocated {@link org.milyn.delivery.ContentHandler} instances.
 */
public void close() {
  context.getStore().close();
}
origin: org.milyn/milyn-smooks-core

/**
 * Public constructor.
 * <p/>
 * Adds the set of {@link SmooksResourceConfiguration resources} via the {@link #addConfigurations(java.io.InputStream)}.
 * <p/>
 * Additional resource configurations can be added through calls to
 * <code>addConfigurations</code> method set.
 *
 * @param resourceConfigStream XML resource configuration stream.
 * @throws IOException  Error reading resource stream.
 * @throws SAXException Error parsing the resource stream.
 * @see SmooksResourceConfiguration
 */
public Smooks(InputStream resourceConfigStream) throws IOException, SAXException {
  this();
  context.setResourceLocator(new URIResourceLocator());
  addConfigurations(resourceConfigStream);
}
origin: org.milyn/milyn-smooks-core

/**
 * Set the ClassLoader associated with this Smooks instance.
 * @param classLoader The ClassLoader instance.
 */
public void setClassLoader(ClassLoader classLoader) {        
  this.classLoader = classLoader;
  context.setClassLoader(classLoader);
}
origin: smooks/smooks

beanContext.addBean(Time.BEAN_ID, new Time());
beanContext.addBean(UniqueID.BEAN_ID, new UniqueID());
for(BeanContextLifecycleObserver observer : context.getBeanContextLifecycleObservers()) {
  beanContext.addObserver(observer);
origin: org.milyn/milyn-smooks-core

/**
 * Public Default Constructor.
 * <p/>
 * Resource configurations can be added through calls to
 * {@link #addConfigurations(String)} or {@link #addConfigurations(String,java.io.InputStream)}.
 */
public Smooks() {
  context = StandaloneApplicationContext.createNewInstance(true);
  visitorConfigMap = new VisitorConfigMap(context);
}
origin: smooks/smooks

/**
 * Public constructor.
 * <p/>
 * Adds the set of {@link SmooksResourceConfiguration resources} via the {@link #addConfigurations(java.io.InputStream)}.
 * <p/>
 * Additional resource configurations can be added through calls to
 * <code>addConfigurations</code> method set.
 *
 * @param resourceConfigStream XML resource configuration stream.
 * @throws IOException  Error reading resource stream.
 * @throws SAXException Error parsing the resource stream.
 * @see SmooksResourceConfiguration
 */
public Smooks(InputStream resourceConfigStream) throws IOException, SAXException {
  this();
  context.setResourceLocator(new URIResourceLocator());
  addConfigurations(resourceConfigStream);
}
origin: org.virtuslab/milyn-smooks-core

/**
 * Set the ClassLoader associated with this Smooks instance.
 * @param classLoader The ClassLoader instance.
 */
public void setClassLoader(ClassLoader classLoader) {        
  this.classLoader = classLoader;
  context.setClassLoader(classLoader);
}
origin: org.milyn/milyn-smooks-all

beanContext.addBean(Time.BEAN_ID, new Time());
beanContext.addBean(UniqueID.BEAN_ID, new UniqueID());
for(BeanContextLifecycleObserver observer : context.getBeanContextLifecycleObservers()) {
  beanContext.addObserver(observer);
origin: smooks/smooks

/**
 * Public Default Constructor.
 * <p/>
 * Resource configurations can be added through calls to
 * {@link #addConfigurations(String)} or {@link #addConfigurations(String,java.io.InputStream)}.
 */
public Smooks() {
  context = StandaloneApplicationContext.createNewInstance(true);
  visitorConfigMap = new VisitorConfigMap(context);
}
origin: org.virtuslab/milyn-smooks-core

/**
 * Close this Smooks instance and all associated resources.
 *
 * Should result in the {@link org.milyn.delivery.annotation.Uninitialize uninitialization}
 * of all allocated {@link org.milyn.delivery.ContentHandler} instances.
 */
public void close() {
  context.getStore().close();
}
origin: org.milyn/milyn-smooks-all

/**
 * Public constructor.
 * <p/>
 * Adds the set of {@link SmooksResourceConfiguration resources} via the {@link #addConfigurations(java.io.InputStream)}.
 * <p/>
 * Additional resource configurations can be added through calls to
 * <code>addConfigurations</code> method set.
 *
 * @param resourceConfigStream XML resource configuration stream.
 * @throws IOException  Error reading resource stream.
 * @throws SAXException Error parsing the resource stream.
 * @see SmooksResourceConfiguration
 */
public Smooks(InputStream resourceConfigStream) throws IOException, SAXException {
  this();
  context.setResourceLocator(new URIResourceLocator());
  addConfigurations(resourceConfigStream);
}
origin: smooks/smooks

/**
 * create a new context
 * @return the StandaloneApplicationContext instance
 */
public static StandaloneApplicationContext createNewInstance(boolean registerInstalledResources) {
  StandaloneApplicationContext sac = new StandaloneApplicationContext();
  sac.resStore = new SmooksResourceConfigurationStore(sac, registerInstalledResources);
  // Add the open profile...
  sac.profileStore.addProfileSet(new DefaultProfileSet(Profile.DEFAULT_PROFILE));
  return sac;
}
origin: smooks/smooks

/**
 * Set the ClassLoader associated with this Smooks instance.
 * @param classLoader The ClassLoader instance.
 */
public void setClassLoader(ClassLoader classLoader) {        
  this.classLoader = classLoader;
  context.setClassLoader(classLoader);
}
origin: org.milyn/milyn-smooks-all

/**
 * Get the ClassLoader associated with this Smooks instance.
 * @return The ClassLoader instance.
 */
public ClassLoader getClassLoader() {
  return context.getClassLoader();
}
origin: org.milyn/milyn-smooks-core

beanContext.addBean(Time.BEAN_ID, new Time());
beanContext.addBean(UniqueID.BEAN_ID, new UniqueID());
for(BeanContextLifecycleObserver observer : context.getBeanContextLifecycleObservers()) {
  beanContext.addObserver(observer);
origin: org.milyn/milyn-smooks-all

/**
 * Public Default Constructor.
 * <p/>
 * Resource configurations can be added through calls to
 * {@link #addConfigurations(String)} or {@link #addConfigurations(String,java.io.InputStream)}.
 */
public Smooks() {
  context = StandaloneApplicationContext.createNewInstance(true);
  visitorConfigMap = new VisitorConfigMap(context);
}
origin: smooks/smooks

/**
 * Close this Smooks instance and all associated resources.
 * <p/>
 * Should result in the {@link org.milyn.delivery.annotation.Uninitialize uninitialization}
 * of all allocated {@link org.milyn.delivery.ContentHandler} instances.
 */
public void close() {
  context.getStore().close();
}
origin: org.virtuslab/milyn-smooks-core

/**
 * Public constructor.
 *
 * Adds the set of {@link SmooksResourceConfiguration resources} via the {@link #addConfigurations(java.io.InputStream)}.
 *
 * Additional resource configurations can be added through calls to
 * <code>addConfigurations</code> method set.
 *
 * @param resourceConfigStream XML resource configuration stream.
 * @throws IOException  Error reading resource stream.
 * @throws SAXException Error parsing the resource stream.
 * @see SmooksResourceConfiguration
 */
public Smooks(InputStream resourceConfigStream) throws IOException, SAXException {
  this();
  context.setResourceLocator(new URIResourceLocator());
  addConfigurations(resourceConfigStream);
}
org.milyn.container.standaloneStandaloneApplicationContext

Javadoc

Standalone container execution context for Smooks.

This context allows Smooks to be executed outside the likes of a Servlet Container.

Most used methods

  • <init>
  • getBeanContextLifecycleObservers
  • getClassLoader
  • getStore
  • setClassLoader
  • setResourceLocator
  • createNewInstance
    create a new context

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getApplicationContext (Context)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JPanel (javax.swing)
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now