@Description(value="represents a persistence unit managed by OpenEJB") public static class ReloadableEntityManagerFactory.JMXReloadableEntityManagerFactory extends java.lang.Object
Constructor and Description |
---|
JMXReloadableEntityManagerFactory(ReloadableEntityManagerFactory remf) |
Modifier and Type | Method and Description |
---|---|
void |
addJarFile(java.lang.String file) |
void |
addManagedClass(java.lang.String clazz) |
void |
addMappingFile(java.lang.String file) |
void |
dump(java.lang.String file) |
boolean |
getExcludeUnlistedClasses() |
javax.management.openmbean.TabularData |
getJarFiles() |
javax.management.openmbean.TabularData |
getManagedClasses() |
javax.management.openmbean.TabularData |
getMappingFiles() |
javax.management.openmbean.TabularData |
getProperties() |
void |
reload() |
void |
removeJarFile(java.lang.String file) |
void |
removeManagedClass(java.lang.String clazz) |
void |
removeMappingFile(java.lang.String file) |
void |
removeProperty(java.lang.String key) |
void |
setExcludeUnlistedClasses(boolean value) |
void |
setProperty(java.lang.String key,
java.lang.String value) |
void |
setProvider(java.lang.String provider) |
void |
setSharedCacheMode(java.lang.String value) |
void |
setTransactionType(java.lang.String type) |
void |
setValidationMode(java.lang.String value) |
public JMXReloadableEntityManagerFactory(ReloadableEntityManagerFactory remf)
@ManagedOperation @Description(value="recreate the entity manager factory using new properties") public void reload()
@ManagedOperation @Description(value="change the current JPA provider") public void setProvider(java.lang.String provider)
@ManagedOperation @Description(value="change the current transaction type") public void setTransactionType(java.lang.String type)
@ManagedOperation @Description(value="create or modify a property of the persistence unit") public void setProperty(java.lang.String key, java.lang.String value)
@ManagedOperation @Description(value="remove a property of the persistence unit if it exists") public void removeProperty(java.lang.String key)
@ManagedOperation @Description(value="add a mapping file") public void addMappingFile(java.lang.String file)
@ManagedOperation @Description(value="remove a mapping file") public void removeMappingFile(java.lang.String file)
@ManagedOperation @Description(value="add a managed class") public void addManagedClass(java.lang.String clazz)
@ManagedOperation @Description(value="remove a managed class") public void removeManagedClass(java.lang.String clazz)
@ManagedOperation @Description(value="add a jar file") public void addJarFile(java.lang.String file)
@ManagedOperation @Description(value="remove a jar file") public void removeJarFile(java.lang.String file)
@ManagedOperation @Description(value="change the shared cache mode if possible (value is ok)") public void setSharedCacheMode(java.lang.String value)
@ManagedOperation @Description(value="exclude or not unlisted entities") public void setExcludeUnlistedClasses(boolean value)
@ManagedOperation @Description(value="change the validation mode if possible (value is ok)") public void setValidationMode(java.lang.String value)
@ManagedOperation @Description(value="dump the current configuration for this persistence unit in a file") public void dump(java.lang.String file)
@ManagedAttribute @Description(value="get exclude unlisted classes") public boolean getExcludeUnlistedClasses()
@ManagedAttribute @Description(value="get all properties") public javax.management.openmbean.TabularData getProperties()
@ManagedAttribute @Description(value="get all mapping files") public javax.management.openmbean.TabularData getMappingFiles()
@ManagedAttribute @Description(value="get all jar files") public javax.management.openmbean.TabularData getJarFiles()
@ManagedAttribute @Description(value="get all managed classes") public javax.management.openmbean.TabularData getManagedClasses()