IceMX.ObserverFactoryWithDelegate Maven / Gradle / Ivy
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
package IceMX;
public class ObserverFactoryWithDelegate,
O extends Ice.Instrumentation.Observer>
extends ObserverFactory
{
public
ObserverFactoryWithDelegate(IceInternal.MetricsAdminI metrics, String name, Class cl)
{
super(metrics, name, cl);
}
@SuppressWarnings("unchecked")
public O
getObserver(MetricsHelper helper, Class cl, O delegate)
{
OImpl o = super.getObserver(helper, cl);
if(o != null)
{
o.setDelegate(delegate);
return (O)o;
}
return delegate;
}
@SuppressWarnings("unchecked")
public O
getObserver(MetricsHelper helper, Object observer, Class cl, O delegate)
{
OImpl o = super.getObserver(helper, observer, cl);
if(o != null)
{
o.setDelegate(delegate);
return (O)o;
}
return delegate;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy