Examples of ObjectFactoryImpl


Examples of org.jbpm.configuration.ObjectFactoryImpl

  protected static ObjectFactory parseObjectFactory(InputStream inputStream)
  {
    log.debug("loading defaults in jbpm configuration");
    ObjectFactoryParser objectFactoryParser = new ObjectFactoryParser();
    ObjectFactoryImpl objectFactoryImpl = new ObjectFactoryImpl();
    objectFactoryParser.parseElementsFromResource("org/jbpm/default.jbpm.cfg.xml", objectFactoryImpl);

    if (inputStream != null)
    {
      log.debug("loading specific configuration...");
View Full Code Here

Examples of org.jbpm.configuration.ObjectFactoryImpl

    JbpmConfiguration jbpmConfiguration = new JbpmConfiguration(objectFactory);

    // make the bean jbpm.configuration always available
    if (objectFactory instanceof ObjectFactoryImpl)
    {
      ObjectFactoryImpl objectFactoryImpl = (ObjectFactoryImpl)objectFactory;
      ObjectInfo jbpmConfigurationInfo = new ValueInfo("jbpmConfiguration", jbpmConfiguration);
      objectFactoryImpl.addObjectInfo(jbpmConfigurationInfo);

      if (getHideStaleObjectExceptions(objectFactory))
      {
        StaleObjectLogConfigurer.hideStaleObjectExceptions();
      }
View Full Code Here

Examples of org.jbpm.configuration.ObjectFactoryImpl

  }
 
  protected static ObjectFactory parseObjectFactory(InputStream inputStream) {
    log.debug("loading defaults in jbpm configuration");
    ObjectFactoryParser objectFactoryParser = new ObjectFactoryParser();
    ObjectFactoryImpl objectFactoryImpl = new ObjectFactoryImpl();
    objectFactoryParser.parseElementsFromResource("org/jbpm/default.jbpm.cfg.xml", objectFactoryImpl);

    if (inputStream!=null) {
      log.debug("loading specific configuration...");
      objectFactoryParser.parseElementsStream(inputStream, objectFactoryImpl);
View Full Code Here

Examples of org.jbpm.configuration.ObjectFactoryImpl

    JbpmConfiguration.defaultObjectFactory = null;
    JbpmContext.currentContextsStack = new ThreadLocal();
  }
 
  public void testSingleton() {
    JbpmConfiguration.defaultObjectFactory = new ObjectFactoryImpl(null, null);
    JbpmConfiguration instance = JbpmConfiguration.getInstance();
    assertNotNull(instance);
    assertSame(instance, JbpmConfiguration.getInstance());
    assertSame(instance, JbpmConfiguration.getInstance());
    assertSame(instance, JbpmConfiguration.getInstance());
View Full Code Here

Examples of org.jbpm.configuration.ObjectFactoryImpl

  }

  protected static ObjectFactory parseObjectFactory(InputStream inputStream) {
    log.debug("loading defaults in jbpm configuration");
    ObjectFactoryParser objectFactoryParser = new ObjectFactoryParser();
    ObjectFactoryImpl objectFactoryImpl = new ObjectFactoryImpl();
    objectFactoryParser.parseElementsFromResource("org/jbpm/default.jbpm.cfg.xml", objectFactoryImpl);

    if (inputStream!=null) {
      log.debug("loading specific configuration...");
      objectFactoryParser.parseElementsStream(inputStream, objectFactoryImpl);
View Full Code Here

Examples of org.jbpm.configuration.ObjectFactoryImpl

  protected static JbpmConfiguration createJbpmConfiguration(ObjectFactory objectFactory) {
    JbpmConfiguration jbpmConfiguration = new JbpmConfiguration(objectFactory);

    // now we make the bean jbpm.configuration always availble
    if (objectFactory instanceof ObjectFactoryImpl) {
      ObjectFactoryImpl objectFactoryImpl = (ObjectFactoryImpl)objectFactory;
      ObjectInfo jbpmConfigurationInfo = new ValueInfo("jbpmConfiguration", jbpmConfiguration);
      objectFactoryImpl.addObjectInfo(jbpmConfigurationInfo);
    }

    return jbpmConfiguration;
  }
View Full Code Here

Examples of org.jbpm.configuration.ObjectFactoryImpl

  }

  protected static ObjectFactory parseObjectFactory(InputStream inputStream) {
    log.debug("loading defaults in jbpm configuration");
    ObjectFactoryParser objectFactoryParser = new ObjectFactoryParser();
    ObjectFactoryImpl objectFactoryImpl = new ObjectFactoryImpl();
    objectFactoryParser.parseElementsFromResource("org/jbpm/default.jbpm.cfg.xml", objectFactoryImpl);

    if (inputStream!=null) {
      log.debug("loading specific configuration...");
      objectFactoryParser.parseElementsStream(inputStream, objectFactoryImpl);
View Full Code Here

Examples of org.jbpm.configuration.ObjectFactoryImpl

  protected static JbpmConfiguration createJbpmConfiguration(ObjectFactory objectFactory) {
    JbpmConfiguration jbpmConfiguration = new JbpmConfiguration(objectFactory);

    // now we make the bean jbpm.configuration always availble
    if (objectFactory instanceof ObjectFactoryImpl) {
      ObjectFactoryImpl objectFactoryImpl = (ObjectFactoryImpl)objectFactory;
      ObjectInfo jbpmConfigurationInfo = new ValueInfo("jbpmConfiguration", jbpmConfiguration);
      objectFactoryImpl.addObjectInfo(jbpmConfigurationInfo);
     
      if (mustStaleObjectExceptionsBeHidden(objectFactory)) {
        StaleObjectLogConfigurer.hideStaleObjectExceptions();
      }
    }
View Full Code Here

Examples of org.testng.internal.ObjectFactoryImpl

public class ContextAwareFactoryFactory
{
  @ObjectFactory
  public IObjectFactory create(ITestContext context) {
    assert context != null;
    return new ObjectFactoryImpl();
  }
View Full Code Here

Examples of org.testng.internal.ObjectFactoryImpl

   * HACK. `mvn test` will be run before the package is created. javaagent can be loaded only from a jar. Since the
   * jar is not yet created, it will throw agent not found exception. This is a hack to get rid of that exception
   */
  @Override
  public IObjectFactory getObjectFactory(ITestContext context) throws Exception {
    return new ObjectFactoryImpl();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.