
org.atteo.moonshine.shiro.database..DatabaseRealmService.swp Maven / Gradle / Ivy
The newest version!
b0VIM 7.4 Q-S?J nW sentinel tower2.home ~sentinel/projects/moonshine/shiro-database-realm/src/main/java/org/atteo/moonshine/shiro/database/DatabaseRealmService.java
3210 #"! U tp P ad ? ' P ? ? ? ? Z / , ? ? ? j ?
?
?
?
?
e
H
? ? ? ? Z / ? ? ? V ?
?
?
?
{
L
I
B
? ? ? ? p o _ < ; 0 ? ? ? t g 7 ? ? ? ? ? ? ? = ! ? ? ? u t O 6 1 , ) ' & } } }; } expose(Realm.class); expose(AccountRepository.class); bind(Realm.class).to(DatabaseRealm.class); .in(Singleton.class); bind(AccountRepository.class).toProvider(new RepositoryProvider<>(AccountRepository.class)) .in(Singleton.class); bind(RepositoryFactorySupport.class).toProvider(RepositoryFactoryProvider.class) protected void configure() { @Override return new PrivateModule() { }); } new LiquibaseFacade(dataSource).migrate("liquibase/database-realm.xml"); public void execute(DataSource dataSource) { @Override database.registerMigration(new DatabaseMigration() { database = jpa.getDatabaseService(); // we need to use the same database as JPA which we are using public Module configure() { @Override private DatabaseService database; @ImportService private JpaService jpa; @XmlIDREF @ImportService public class DatabaseRealmService extends RealmService { @XmlRootElement(name = "database") */ *