@@ -0,0 +1,1642 @@
+/*%0A * Copyright (C) 2010 - 2014 JBoss by Red Hat%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A */%0A%0Apackage io.fabric8.spi;%0A%0Aimport io.fabric8.api.Container;%0Aimport io.fabric8.api.JMXServiceEndpoint;%0Aimport io.fabric8.api.ServiceEndpointIdentity;%0Aimport io.fabric8.spi.utils.ManagementUtils;%0A%0Aimport javax.management.remote.JMXConnector;%0Aimport java.util.concurrent.TimeUnit;%0A%0Apublic class ContainerJmxEndpoint extends AbstractJMXServiceEndpoint %7B%0A%0A    private final Container container;%0A    private final ServiceEndpointIdentity%3CJMXServiceEndpoint%3E endpointIdentity;%0A%0A    public ContainerJmxEndpoint(Container container, ServiceEndpointIdentity%3CJMXServiceEndpoint%3E endpointIdentity) %7B%0A        super(container);%0A        this.container = container;%0A        this.endpointIdentity = endpointIdentity;%0A    %7D%0A%0A    @Override%0A    public JMXConnector getJMXConnector(String jmxUsername, String jmxPassword, long timeout, TimeUnit unit) %7B%0A        return ManagementUtils.getJMXConnector(container, jmxUsername, jmxPassword, timeout, unit);%0A    %7D%0A%0A    @Override%0A    public ServiceEndpointIdentity%3CJMXServiceEndpoint%3E getIdentity() %7B%0A        return endpointIdentity;%0A    %7D%0A%7D%0A

Add ContainerJmxEndpoint.