Package com.sun.ejb.spi.sfsb.initialization

Examples of com.sun.ejb.spi.sfsb.initialization.PersistenceStrategyBuilder


      new PersistenceStrategyBuilderFactory();

  String persistenceStoreType =
      ejbConfigLookup.getPersistenceStoreType();

  PersistenceStrategyBuilder storeBuilder =
      builderFactory.createPersistenceStrategyBuilder(persistenceStoreType);

  if (_logger.isLoggable(TRACE_LEVEL)) {
      _logger.log(TRACE_LEVEL, "++SFSBBuilder:: "
    + "HAEnabled: " + HAEnabled
    + "; specifiedStoreType: " + persistenceStoreType
    + "; builder: " + storeBuilder);
  }

  storeBuilder.initializePersistenceStrategy(
    containerInitialization, ejbDescriptor);

  this.sfsbStoreManager = containerInitialization.getSFSBStoreManager();
    }
View Full Code Here


        String resolvedPersistenceType
            = persistenceTypeResolver.resolvePersistenceType(persistenceType);
        debug("resolvedPersistenceType = " + resolvedPersistenceType);
         */
        String passedInPersistenceType = persistenceType;       
        PersistenceStrategyBuilder builder = new FileStrategyBuilder();
        String className = createClassNameFrom(persistenceType);
        if(_logger.isLoggable(Level.FINEST)) {
            _logger.finest("PersistenceStrategyBuilderFactory>>createPersistenceStrategyBuilder: "
                + "CandidateBuilderClassName = " + className);
        }
  boolean requestedBuilderCreated = false;
        try {
            builder =
                (PersistenceStrategyBuilder) (Class.forName(className)).newInstance();
      requestedBuilderCreated = true;
        } catch (ClassNotFoundException clnfEx) {
      _logger.log(Level.WARNING, "Couldn't find class: "
        + className + " for persistenceType: "
        + persistenceType);
            if(_logger.isLoggable(Level.FINE)) {
                _logger.log(Level.FINE, "Exception while creating Builder", clnfEx);
            }
        } catch (Exception ex) {
            _logger.log(Level.WARNING, "Exception while creating Builder", ex);
        }   
  if (! requestedBuilderCreated) {
            _logger.log(Level.WARNING, "Couldn't create builder for "
        + "persistence type: " + persistenceType
        +". Instead created FileStrategyBuilder....");
  }
        builder.setPassedInPersistenceType(passedInPersistenceType);
        return builder;
    }    
View Full Code Here

TOP

Related Classes of com.sun.ejb.spi.sfsb.initialization.PersistenceStrategyBuilder

Copyright © 2018 www.massapicom. 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.