Examples of classExists()


Examples of org.z.library.Library.classExists()

      //System.out.println("Ignoring import: " + type.getBase() + " -> " + libpath);
      return;
    }*/
   
    Library lib = f.getCompiler().getLibrary();
    if(lib.classExists(type.getBase())) {
      return;
    }
   
    cf.addInclude(type.resolveType(f));
    //System.out.println("Add import: " + type.getBase());
View Full Code Here

Examples of pt.webdetails.cpf.persistence.IPersistenceEngine.classExists()

  protected ViewsEngine() {
    // initialize orientDb and initialize org.pentaho.cdf.views.View
    IPersistenceEngine pe = null;
    try {
      pe = getPersistenceEngine();
      if ( pe != null && !pe.classExists( View.class.getName() ) ) {
        pe.initializeClass( View.class.getName() );
      }
    } catch ( Exception e ) {
      // Intended general exception catch - do not want any PersistenceEngine initialization exception
      // to bubble up
View Full Code Here

Examples of pt.webdetails.cpf.persistence.IPersistenceEngine.classExists()

  @Test
  //Even with PersistenceEngine throwing an exception, it should be able to finish initialization
  public void testInitializationException() {
    IPersistenceEngine ipe = Mockito.mock( IPersistenceEngine.class );
    Mockito.when( ipe.classExists( "org.pentaho.cdf.views.View" ) )
            .thenThrow( new ODatabaseException( "Exception" ) );
    new ViewsEngineForTest( ipe, null );
  }

View Full Code Here

Examples of pt.webdetails.cpf.persistence.PersistenceEngine.classExists()

  };

  private ViewEngine() {
    // initialize orientDb and initialize org.pentaho.cdf.views.View
    PersistenceEngine pe = PersistenceEngine.getInstance();
    if ( !pe.classExists( View.class.getName() ) ) {
      pe.initializeClass( View.class.getName() );
    }
  }

  public synchronized static ViewEngine getInstance() {
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.