public class DatabaseModule extends Object implements com.manydesigns.portofino.modules.Module, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
org.apache.commons.vfs2.FileObject |
applicationDirectory |
com.manydesigns.portofino.config.ConfigurationSource |
configuration |
static String |
copyright |
static String |
GENERATED_CLASSES_DIRECTORY_NAME |
static String |
LIQUIBASE_ENABLED |
static org.slf4j.Logger |
logger |
protected com.manydesigns.portofino.code.AggregateCodeBase |
persistenceCodeBase |
ServletContext |
servletContext |
protected com.manydesigns.portofino.modules.ModuleStatus |
status |
protected io.reactivex.disposables.Disposable |
subscription |
| Constructor and Description |
|---|
DatabaseModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
MultiTenancyImplementationFactory |
getApplicationContextMTImplFactory() |
com.manydesigns.portofino.model.database.platforms.DatabasePlatformsRegistry |
getDatabasePlatformsRegistry() |
String |
getModuleVersion() |
String |
getName() |
Persistence |
getPersistence(com.manydesigns.portofino.model.database.platforms.DatabasePlatformsRegistry databasePlatformsRegistry,
com.manydesigns.portofino.cache.CacheResetListenerRegistry cacheResetListenerRegistry) |
com.manydesigns.portofino.modules.ModuleStatus |
getStatus() |
void |
init() |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCodeBase(com.manydesigns.portofino.code.CodeBase codeBase) |
public static final String copyright
public static final String GENERATED_CLASSES_DIRECTORY_NAME
@Autowired public ServletContext servletContext
@Autowired public com.manydesigns.portofino.config.ConfigurationSource configuration
@Autowired @Qualifier(value="com.manydesigns.portofino.application.directory") public org.apache.commons.vfs2.FileObject applicationDirectory
protected org.springframework.context.ApplicationContext applicationContext
protected com.manydesigns.portofino.modules.ModuleStatus status
protected final com.manydesigns.portofino.code.AggregateCodeBase persistenceCodeBase
protected io.reactivex.disposables.Disposable subscription
public static final String LIQUIBASE_ENABLED
public static final org.slf4j.Logger logger
public String getModuleVersion()
getModuleVersion in interface com.manydesigns.portofino.modules.Modulepublic String getName()
getName in interface com.manydesigns.portofino.modules.Module@PostConstruct public void init()
@Autowired
public void setCodeBase(com.manydesigns.portofino.code.CodeBase codeBase)
throws Exception
Exception@Bean public com.manydesigns.portofino.model.database.platforms.DatabasePlatformsRegistry getDatabasePlatformsRegistry()
@Bean public MultiTenancyImplementationFactory getApplicationContextMTImplFactory()
@Bean public Persistence getPersistence(@Autowired com.manydesigns.portofino.model.database.platforms.DatabasePlatformsRegistry databasePlatformsRegistry, @Autowired com.manydesigns.portofino.cache.CacheResetListenerRegistry cacheResetListenerRegistry) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException@PreDestroy public void destroy()
public com.manydesigns.portofino.modules.ModuleStatus getStatus()
getStatus in interface com.manydesigns.portofino.modules.Modulepublic void setApplicationContext(@NotNull
org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void onApplicationEvent(@NotNull
org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>Copyright © 2022 MANYDESIGNS s.r.l.. All rights reserved.