333679 Refactored jetty-jmx. Moved mbeans to modules.

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2629 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2011-01-06 18:04:58 +00:00
parent db7d2afe82
commit 881e599860
45 changed files with 57 additions and 142 deletions

View File

@ -8,6 +8,7 @@ jetty-7.3.0-SNAPSHOT
+ 332796 Annotations inheritance does not work with jetty7
+ 332937 Added Destroyable interface and reworked dependent lifecycles, specially of JNDI
+ 320457 add SPNEGO support
+ 333679 Refactored jetty-jmx. Moved mbeans to modules.
jetty-7.2.2.v20101205 5 December 2010
+ JETTY-1308 327109 (re)fixed AJP handling of empty packets

View File

@ -79,7 +79,7 @@
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jmx</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>

View File

@ -18,7 +18,7 @@
<Set name="defaultsDescriptor"><Property name="jetty.home" default="."/>/etc/webdefault.xml</Set>
<Set name="scanInterval">1</Set>
<Set name="contextXmlDir"><Property name="jetty.home" default="." />/contexts</Set>
<Set name="extractWars">false</Set>
<Set name="extractWars">true</Set>
</New>
</Arg>
</Call>

View File

@ -0,0 +1,18 @@
package org.eclipse.jetty.deploy.jmx;
import org.eclipse.jetty.deploy.DeploymentManager;
import org.eclipse.jetty.jmx.ObjectMBean;
public class DeploymentManagerMBean extends ObjectMBean
{
private final DeploymentManager _manager;
public DeploymentManagerMBean(Object managedObject)
{
super(managedObject);
_manager=(DeploymentManager)managedObject;
}
}

View File

@ -78,7 +78,7 @@
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
<artifactId>jetty-util</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

View File

@ -14,7 +14,6 @@
package org.eclipse.jetty.jmx;
import com.acme.Derived;
import org.eclipse.jetty.server.Server;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
@ -28,13 +27,4 @@ public class ObjectMBeanTest
ObjectMBean mbean = new ObjectMBean(derived);
assertTrue(mbean.getMBeanInfo()!=null); // TODO do more than just run it
}
@Test
public void testMbeanFor()
{
Derived derived = new Derived();
assertTrue(ObjectMBean.mbeanFor(derived)!=null); // TODO do more than just run it
Server server = new Server();
assertTrue(ObjectMBean.mbeanFor(server)!=null); // TODO do more than just run it
}
}

View File

@ -1,110 +0,0 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.jetty.osgi</groupId>
<artifactId>jetty-osgi-project</artifactId>
<version>7.3.0-SNAPSHOT</version>
</parent>
<artifactId>example-jetty-osgi</artifactId>
<name>Jetty :: OSGi :: Example</name>
<packaging>pom</packaging>
<properties>
<assembly.directory>target/osgi-example</assembly.directory>
<slf4j.version>1.5.11</slf4j.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<property name="orbit.base.url" value="http://download.eclipse.org/tools/orbit/downloads/drops/R20090529135407/bundles" />
<mkdir dir="${assembly.directory}/plugins" />
<mkdir dir="${assembly.directory}/configuration" />
<get src="${orbit.base.url}/javax.servlet_2.5.0.v200806031605.jar" dest="${assembly.directory}/plugins/javax.servlet_2.5.0.v200806031605.jar" usetimestamp="true" verbose="true" />
<copy file="src/configuration/config.ini" todir="${assembly.directory}/configuration" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>copy plugins</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${assembly.directory}/plugins</outputDirectory>
<excludeArtifactIds>servlet-api,osgi</excludeArtifactIds>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>copy osgi</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${assembly.directory}</outputDirectory>
<includeArtifactIds>osgi</includeArtifactIds>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>test-jetty-webapp</artifactId>
<type>war</type>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-deploy</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.osgi</groupId>
<artifactId>jetty-osgi-boot-warurl</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.osgi</groupId>
<artifactId>jetty-osgi-boot</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse</groupId>
<artifactId>osgi</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.osgi</groupId>
<artifactId>services</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -1,16 +0,0 @@
osgi.bundles= \
file:plugins/javax.servlet_2.5.0.v200806031605.jar, \
file:plugins/jetty-webapp-7.0.2-SNAPSHOT.jar, \
file:plugins/jetty-deploy-7.0.2-SNAPSHOT.jar, \
file:plugins/jetty-servlet-7.0.2-SNAPSHOT.jar, \
file:plugins/jetty-server-7.0.2-SNAPSHOT.jar, \
file:plugins/jetty-security-7.0.2-SNAPSHOT.jar, \
file:plugins/jetty-http-7.0.2-SNAPSHOT.jar, \
file:plugins/jetty-continuation-7.0.2-SNAPSHOT.jar, \
file:plugins/jetty-xml-7.0.2-SNAPSHOT.jar, \
file:plugins/jetty-io-7.0.2-SNAPSHOT.jar, \
file:plugins/jetty-util-7.0.2-SNAPSHOT.jar, \
file:plugins/services-3.1.200-v20070605.jar, \
file:plugins/jetty-osgi-boot-7.0.2-SNAPSHOT.jar@1:start, \
file:plugins/jetty-osgi-boot-warurl-7.0.2-SNAPSHOT.jar@2:start

View File

@ -22,6 +22,10 @@
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-deploy</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jmx</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse</groupId>
<artifactId>osgi</artifactId>

View File

@ -24,8 +24,7 @@
<module>jetty-osgi-boot-logback</module>
<module>jetty-osgi-boot-warurl</module>
<module>jetty-osgi-httpservice</module>
<module>test-jetty-osgi</module>
<!-- module>example-jetty-osgi</module -->
<!--module>test-jetty-osgi</module-->
</modules>
<build>
<resources>
@ -77,6 +76,11 @@
<artifactId>jetty-util</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jmx</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>

View File

@ -76,6 +76,12 @@
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jmx</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-util</artifactId>

View File

@ -104,5 +104,11 @@
<artifactId>jetty-http</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jmx</artifactId>
<version>${project.version}</version>
<optional>true</optional>
</dependency>
</dependencies>
</project>

View File

@ -68,5 +68,11 @@
<artifactId>jetty-security</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jmx</artifactId>
<version>${project.version}</version>
<optional>true</optional>
</dependency>
</dependencies>
</project>

View File

@ -97,5 +97,11 @@
<artifactId>jetty-servlet</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jmx</artifactId>
<version>${project.version}</version>
<optional>true</optional>
</dependency>
</dependencies>
</project>

View File

@ -272,6 +272,7 @@
-->
<modules>
<module>jetty-util</module>
<module>jetty-jmx</module>
<module>jetty-io</module>
<module>jetty-http</module>
<module>jetty-websocket</module>
@ -287,7 +288,6 @@
<module>jetty-jsp-2.1</module>
<module>jetty-deploy</module>
<module>jetty-ajp</module>
<module>jetty-jmx</module>
<module>jetty-jndi</module>
<module>jetty-annotations</module>
<module>jetty-plus</module>