Package org.hibernate.search.cfg.impl

Examples of org.hibernate.search.cfg.impl.SearchConfigurationFromHibernateCore


      throw new SearchException( "Only Installation.SINGLE_INSTANCE is supported" );
    }

    if ( searchFactoryImplementor == null ) {
      searchFactoryImplementor = new SearchFactoryBuilder()
          .configuration( new SearchConfigurationFromHibernateCore( cfg ) )
          .buildSearchFactory();
    }

    String enableJMX = cfg.getProperty( Environment.JMX_ENABLED );
    if ( "true".equalsIgnoreCase( enableJMX ) ) {
View Full Code Here


  public void sessionFactoryCreated(SessionFactory factory) {
    try {
      configuration.getProperties().put( SESSION_FACTORY_PROPERTY_KEY, factory );
      if ( searchFactoryImplementor == null ) {
        searchFactoryImplementor = new SearchFactoryBuilder()
            .configuration( new SearchConfigurationFromHibernateCore( configuration, classLoaderService ) )
            .buildSearchFactory();
      }

      String enableJMX = configuration.getProperty( Environment.JMX_ENABLED );
      if ( "true".equalsIgnoreCase( enableJMX ) ) {
View Full Code Here

  public void sessionFactoryCreated(SessionFactory factory) {
    try {
      configuration.getProperties().put( SESSION_FACTORY_PROPERTY_KEY, factory );
      if ( searchFactoryImplementor == null ) {
        searchFactoryImplementor = new SearchFactoryBuilder()
            .configuration( new SearchConfigurationFromHibernateCore( configuration, classLoaderService ) )
            .buildSearchFactory();
      }

      String enableJMX = configuration.getProperty( Environment.JMX_ENABLED );
      if ( "true".equalsIgnoreCase( enableJMX ) ) {
View Full Code Here

  public void sessionFactoryCreated(SessionFactory factory) {
    try {
      configuration.getProperties().put( SESSION_FACTORY_PROPERTY_KEY, factory );
      if ( searchFactoryImplementor == null ) {
        searchFactoryImplementor = new SearchFactoryBuilder()
            .configuration( new SearchConfigurationFromHibernateCore( configuration ) )
            .buildSearchFactory();
      }

      String enableJMX = configuration.getProperty( Environment.JMX_ENABLED );
      if ( "true".equalsIgnoreCase( enableJMX ) ) {
View Full Code Here

      throw new SearchException( "Only Installation.SINGLE_INSTANCE is supported" );
    }

    if ( searchFactoryImplementor == null ) {
      searchFactoryImplementor = new SearchFactoryBuilder()
          .configuration( new SearchConfigurationFromHibernateCore( cfg ) )
          .buildSearchFactory();
    }

    String enableJMX = cfg.getProperty( Environment.JMX_ENABLED );
    if ( "true".equalsIgnoreCase( enableJMX ) ) {
View Full Code Here

    s.close();
  }

  @Test
  public void testMultipleAnalyzerDiscriminatorDefinitions() {
    SearchConfigurationFromHibernateCore searchConfig = new SearchConfigurationFromHibernateCore(
        getCfg(),
        new ClassLoaderServiceImpl() // ORM internal class. Should be ok for testing (HF)
    );
    ReflectionManager reflectionManager = searchConfig.getReflectionManager();
    XClass xclass = reflectionManager.toXClass( BlogEntry.class );
    ConfigContext context = new ConfigContext( searchConfig, new BuildContextForTest( searchConfig ) );
    MetadataProvider metadataProvider = new AnnotationMetadataProvider(
        searchConfig.getReflectionManager(),
        context
    );

    try {
      metadataProvider.getTypeMetadataFor( reflectionManager.toClass( xclass ) );
View Full Code Here

    try {
      final SessionFactoryImplementor factoryImplementor = (SessionFactoryImplementor) factory;
      configuration.getProperties().put( SESSION_FACTORY_PROPERTY_KEY, factory );
      if ( searchFactoryImplementor == null ) {
        searchFactoryImplementor = new SearchFactoryBuilder()
            .configuration( new SearchConfigurationFromHibernateCore( configuration, classLoaderService ) )
            .buildSearchFactory();
      }

      String enableJMX = configuration.getProperty( Environment.JMX_ENABLED );
      if ( "true".equalsIgnoreCase( enableJMX ) ) {
View Full Code Here

      throw new SearchException( "Only Installation.SINGLE_INSTANCE is supported" );
    }

    if ( searchFactoryImplementor == null ) {
      searchFactoryImplementor = new SearchFactoryBuilder()
          .configuration( new SearchConfigurationFromHibernateCore( cfg ) )
          .buildSearchFactory();
    }

    String indexingStrategy = searchFactoryImplementor.getIndexingStrategy();
    if ( "event".equals( indexingStrategy ) ) {
View Full Code Here

      throw new SearchException( "Only Installation.SINGLE_INSTANCE is supported" );
    }

    if ( searchFactoryImplementor == null ) {
      searchFactoryImplementor = new SearchFactoryBuilder()
          .configuration( new SearchConfigurationFromHibernateCore( cfg ) )
          .buildSearchFactory();
    }

    String enableJMX = cfg.getProperty( Environment.JMX_ENABLED );
    if ( "true".equalsIgnoreCase( enableJMX ) ) {
View Full Code Here

  public void sessionFactoryCreated(SessionFactory factory) {
    try {
      configuration.getProperties().put( SESSION_FACTORY_PROPERTY_KEY, factory );
      if ( searchFactoryImplementor == null ) {
        searchFactoryImplementor = new SearchFactoryBuilder()
            .configuration( new SearchConfigurationFromHibernateCore( configuration ) )
            .buildSearchFactory();
      }

      String enableJMX = configuration.getProperty( Environment.JMX_ENABLED );
      if ( "true".equalsIgnoreCase( enableJMX ) ) {
View Full Code Here

TOP

Related Classes of org.hibernate.search.cfg.impl.SearchConfigurationFromHibernateCore

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.