org.hibernate.boot.registry.selector.SimpleStrategyRegistrationImpl Java Examples
The following examples show how to use
org.hibernate.boot.registry.selector.SimpleStrategyRegistrationImpl.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StrategyRegistrationProviderImpl.java From hibernate-l2-memcached with Apache License 2.0 | 6 votes |
@Override @SuppressWarnings("unchecked") public Iterable<StrategyRegistration> getStrategyRegistrations() { final List<StrategyRegistration> strategyRegistrations = new ArrayList<StrategyRegistration>(); strategyRegistrations.add( new SimpleStrategyRegistrationImpl( RegionFactory.class, MemcachedRegionFactory.class, "memcached", MemcachedRegionFactory.class.getName(), MemcachedRegionFactory.class.getSimpleName(), // legacy impl class name "com.mc.hibernate.memcached.MemcachedRegionFactory" ) ); return strategyRegistrations; }
Example #2
Source File: RedissonStrategyRegistrationProvider.java From redisson with Apache License 2.0 | 5 votes |
@Override public Iterable<StrategyRegistration> getStrategyRegistrations() { return Collections.<StrategyRegistration>singleton(new SimpleStrategyRegistrationImpl( RegionFactory.class, RedissonRegionFactory.class, "redisson", RedissonRegionFactory.class.getName(), RedissonRegionFactory.class.getSimpleName())); }
Example #3
Source File: RedissonStrategyRegistrationProvider.java From redisson with Apache License 2.0 | 5 votes |
@Override public Iterable<StrategyRegistration> getStrategyRegistrations() { return Collections.<StrategyRegistration>singleton(new SimpleStrategyRegistrationImpl( RegionFactory.class, RedissonRegionFactory.class, "redisson", RedissonRegionFactory.class.getName(), RedissonRegionFactory.class.getSimpleName())); }
Example #4
Source File: RedissonStrategyRegistrationProvider.java From redisson with Apache License 2.0 | 5 votes |
@Override public Iterable<StrategyRegistration> getStrategyRegistrations() { return Collections.<StrategyRegistration>singleton(new SimpleStrategyRegistrationImpl( RegionFactory.class, RedissonRegionFactory.class, "redisson", RedissonRegionFactory.class.getName(), RedissonRegionFactory.class.getSimpleName())); }
Example #5
Source File: RedissonStrategyRegistrationProvider.java From redisson with Apache License 2.0 | 5 votes |
@Override public Iterable<StrategyRegistration> getStrategyRegistrations() { return Collections.<StrategyRegistration>singleton(new SimpleStrategyRegistrationImpl( RegionFactory.class, RedissonRegionFactory.class, "redisson", RedissonRegionFactory.class.getName(), RedissonRegionFactory.class.getSimpleName())); }
Example #6
Source File: StrategySelectorBuilder.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Adds an explicit (as opposed to discovered) strategy registration. * * @param strategy The strategy * @param implementation The strategy implementation * @param name The registered name * @param <T> The type of the strategy. Used to make sure that the strategy and implementation are type * compatible. */ @SuppressWarnings("unchecked") public <T> void addExplicitStrategyRegistration(Class<T> strategy, Class<? extends T> implementation, String name) { addExplicitStrategyRegistration( new SimpleStrategyRegistrationImpl<T>( strategy, implementation, name ) ); }