congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
StandaloneApplicationContext
Code IndexAdd Tabnine 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)

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

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Reference (javax.naming)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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