File tree 2 files changed +75
-0
lines changed
common/src/main/java/org/broadleafcommerce/common/extensibility/jpa 2 files changed +75
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * #%L
3
+ * BroadleafCommerce Common Libraries
4
+ * %%
5
+ * Copyright (C) 2009 - 2015 Broadleaf Commerce
6
+ * %%
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ * #L%
19
+ */
20
+ package org .broadleafcommerce .common .extensibility .jpa ;
21
+
22
+ /**
23
+ * MBean registered in JMX to keep track of which persistence units are marked with auto.ddl 'create'. The scope of this MBean
24
+ * covers the current JVM, which may span more than a single application in the same container.
25
+ *
26
+ * @author Jeff Fischer
27
+ */
28
+ public interface AutoDDLCreateStatusTestBean {
29
+
30
+ Boolean getStartedWithCreate (String pu );
31
+
32
+ void setStartedWithCreate (String pu , Boolean val );
33
+
34
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * #%L
3
+ * BroadleafCommerce Common Libraries
4
+ * %%
5
+ * Copyright (C) 2009 - 2015 Broadleaf Commerce
6
+ * %%
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ * #L%
19
+ */
20
+ package org .broadleafcommerce .common .extensibility .jpa ;
21
+
22
+ import java .util .HashMap ;
23
+ import java .util .Map ;
24
+
25
+ /**
26
+ * @see org.broadleafcommerce.common.extensibility.jpa.AutoDDLCreateStatusTestBean
27
+ * @author Jeff Fischer
28
+ */
29
+ public class AutoDDLCreateStatusTestBeanImpl implements AutoDDLCreateStatusTestBean {
30
+
31
+ protected Map <String , Boolean > startedWithCreate = new HashMap <String , Boolean >();
32
+
33
+ public Boolean getStartedWithCreate (String pu ) {
34
+ return startedWithCreate .get (pu );
35
+ }
36
+
37
+ public void setStartedWithCreate (String pu , Boolean val ) {
38
+ this .startedWithCreate .put (pu , val );
39
+ }
40
+
41
+ }
You can’t perform that action at this time.
0 commit comments