All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.atteo.moonshine.shiro.database..DatabaseRealmService.swp Maven / Gradle / Ivy

The newest version!
b0VIM 7.4Q-S?JnWsentineltower2.home~sentinel/projects/moonshine/shiro-database-realm/src/main/java/org/atteo/moonshine/shiro/database/DatabaseRealmService.java
3210#"! UtpPad?'P????Z/,???j?
?
?
?
?
e
H

????Z/???V?
?
?
?

{
L
I
B



?	?	?	?	p	o	_	<	;	0		???tg7???????=!???utO61,)'&}	}		};			}				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	@ImportServicepublic class DatabaseRealmService extends RealmService {@XmlRootElement(name = "database") */ * 

* Binds {@link Realm} and {@link AccountRepository}. *

* * Realm which keeps accounts in the database./**import com.google.inject.PrivateModule;import com.google.inject.Module;import org.springframework.data.repository.core.support.RepositoryFactorySupport;import org.atteo.moonshine.springdata.RepositoryProvider;import org.atteo.moonshine.springdata.RepositoryFactoryProvider;import org.atteo.moonshine.shiro.RealmService;import org.atteo.moonshine.services.ImportService;import org.atteo.moonshine.liquibase.LiquibaseFacade;import org.atteo.moonshine.jpa.JpaService;import org.atteo.moonshine.database.DatabaseService;import org.atteo.moonshine.database.DatabaseMigration;import org.apache.shiro.realm.Realm;import javax.xml.bind.annotation.XmlRootElement;import javax.xml.bind.annotation.XmlIDREF;import javax.sql.DataSource;import javax.inject.Singleton;package org.atteo.moonshine.shiro.database; */ * limitations under the License. * See the License for the specific language governing permissions and * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * distributed under the License is distributed on an "AS IS" BASIS, * Unless required by applicable law or agreed to in writing, software * * http://www.apache.org/licenses/LICENSE-2.0 * * You may obtain a copy of the License at * you may not use this file except in compliance with the License. * Licensed under the Apache License, Version 2.0 (the "License"); * * Copyright 2012 Atteo./*





© 2015 - 2025 Weber Informatics LLC | Privacy Policy