Package io.jmix.core
Class Stores
java.lang.Object
io.jmix.core.Stores
Utility class for accessing registered data store names.
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected Map<String,
StoreDescriptor> protected org.springframework.core.env.Environment
protected JpaStoreDescriptor
static final String
static final String
protected NoopStoreDescriptor
protected static final com.google.common.base.Splitter
static final String
protected UndefinedStoreDescriptor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAll()
protected StoreDescriptor
getStoreDescriptor
(String storeName) protected void
static boolean
-
Field Details
-
MAIN
- See Also:
-
NOOP
- See Also:
-
UNDEFINED
- See Also:
-
environment
@Autowired protected org.springframework.core.env.Environment environment -
jpaStoreDescriptor
-
noopStoreDescriptor
-
undefinedStoreDescriptor
-
applicationContext
@Autowired protected org.springframework.context.ApplicationContext applicationContext -
descriptors
-
stores
-
SPLITTER
protected static final com.google.common.base.Splitter SPLITTER
-
-
Constructor Details
-
Stores
public Stores()
-
-
Method Details
-
initialize
@PostConstruct protected void initialize() -
getStoreDescriptor
-
isMain
- Returns:
- true if the given name is the name of the main data store
-
get
-
getAll
- Returns:
- the list of all data store names including main
- See Also:
-
getAdditional
- Returns:
- the list of additional data store names registered in the
jmix.core.additional-stores
property
-