ENTAXY-374 release 1.8.2

This commit is contained in:
2022-08-23 13:40:11 +03:00
parent b68642f81c
commit 1061b96c7e
616 changed files with 60896 additions and 3202 deletions

View File

@ -3,7 +3,7 @@
<parent>
<groupId>ru.entaxy.esb.platform.runtime</groupId>
<artifactId>base</artifactId>
<version>1.8.1</version>
<version>1.8.2</version>
</parent>
<groupId>ru.entaxy.esb.platform.runtime.base</groupId>
<artifactId>management-core</artifactId>

View File

@ -46,7 +46,7 @@ public class AnnotatedMBean<I> extends StandardMBean {
@Override
public MBeanInfo getMBeanInfo() {
log.info(this.interfaceClass==null?">> INTERFACE IS NULL":">> " + this.interfaceClass.getName());
log.debug(this.interfaceClass==null?">> INTERFACE IS NULL":">> " + this.interfaceClass.getName());
MBeanExportPolicy policy = MBeanExportPolicy.IGNORE_ANNOTATIONS;
MBeanAnnotated anno = this.interfaceClass.getAnnotation(MBeanAnnotated.class);
if (anno != null)

View File

@ -0,0 +1,34 @@
/*-
* ~~~~~~licensing~~~~~~
* management-core
* ==========
* Copyright (C) 2020 - 2022 EmDev LLC
* ==========
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ~~~~~~/licensing~~~~~~
*/
package ru.entaxy.esb.platform.base.management.core.api;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@Retention(RUNTIME)
@Target(TYPE)
@Inherited
public @interface EntaxyRuntimeTyped {
String name() default "";
}

View File

@ -0,0 +1,32 @@
/*-
* ~~~~~~licensing~~~~~~
* management-core
* ==========
* Copyright (C) 2020 - 2022 EmDev LLC
* ==========
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ~~~~~~/licensing~~~~~~
*/
package ru.entaxy.esb.platform.base.management.core.api;
public interface RuntimeTypedMBean {
@Attribute(desc = "Type of Entaxy runtime object")
public default String getRuntimeType() {
if (this.getClass().isAnnotationPresent(EntaxyRuntimeTyped.class)) {
return ((EntaxyRuntimeTyped)this.getClass().getAnnotation(EntaxyRuntimeTyped.class)).name();
} else
return "";
}
}

View File

@ -122,7 +122,7 @@ public class BundleAwareMBeanImpl<T extends BundleAwareManagedObject, I>
public void refreshBundleInfo() {
Bundle b = FrameworkUtil.getBundle(getClass()).getBundleContext().getBundle(getBundleId());
// track bundeState
// track bundleState
AttributeChangeTracker tracker = new AttributeChangeTracker();
tracker.oldValue(this.managedObject.getBundleState());
this.managedObject.bundleState(b.getState());

View File

@ -39,6 +39,6 @@ public interface BundleAwareManagedObject {
BundleAwareManagedObject bundleId(long bundleId);
BundleAwareManagedObject bundleSymbolicName(String bundleSeymbolicName);
BundleAwareManagedObject bundleSymbolicName(String bundleSymbolicName);
}

View File

@ -98,8 +98,8 @@ public class BundleAwareManagedObjectImpl implements BundleAwareManagedObject {
}
@Override
public BundleAwareManagedObject bundleSymbolicName(String bundleSeymbolicName) {
setBundleSymbolicName(bundleSeymbolicName);
public BundleAwareManagedObject bundleSymbolicName(String bundleSymbolicName) {
setBundleSymbolicName(bundleSymbolicName);
return this;
}

View File

@ -22,7 +22,7 @@ package ru.entaxy.esb.platform.base.management.core.utils;
import org.osgi.framework.ServiceRegistration;
public class ManagedObjectDescriptor<S, I, C extends I> {
S object;
C service;
ServiceRegistration<I> registration;
public S object;
public C service;
public ServiceRegistration<I> registration;
}