Merge branch 'master' into jetty-9.1
This commit is contained in:
commit
307fdced91
|
@ -14,16 +14,6 @@
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>install</defaultGoal>
|
<defaultGoal>install</defaultGoal>
|
||||||
<plugins>
|
<plugins>
|
||||||
<!-- Jetty 7 is JDK5 +
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<source>1.6</source>
|
|
||||||
<target>1.6</target>
|
|
||||||
<verbose>false</verbose>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
-->
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.felix</groupId>
|
<groupId>org.apache.felix</groupId>
|
||||||
<artifactId>maven-bundle-plugin</artifactId>
|
<artifactId>maven-bundle-plugin</artifactId>
|
||||||
|
|
|
@ -63,16 +63,57 @@ public class NoSqlSession extends AbstractSession
|
||||||
{
|
{
|
||||||
synchronized (this)
|
synchronized (this)
|
||||||
{
|
{
|
||||||
if (_dirty==null)
|
|
||||||
_dirty=new HashSet<String>();
|
|
||||||
_dirty.add(name);
|
|
||||||
Object old = super.doPutOrRemove(name,value);
|
Object old = super.doPutOrRemove(name,value);
|
||||||
|
|
||||||
if (_manager.getSavePeriod()==-2)
|
if (_manager.getSavePeriod()==-2)
|
||||||
|
{
|
||||||
save(true);
|
save(true);
|
||||||
|
}
|
||||||
return old;
|
return old;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setAttribute(String name, Object value)
|
||||||
|
{
|
||||||
|
if ( updateAttribute(name,value) )
|
||||||
|
{
|
||||||
|
if (_dirty==null)
|
||||||
|
{
|
||||||
|
_dirty=new HashSet<String>();
|
||||||
|
}
|
||||||
|
|
||||||
|
_dirty.add(name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* a boolean version of the setAttribute method that lets us manage the _dirty set
|
||||||
|
*/
|
||||||
|
protected boolean updateAttribute (String name, Object value)
|
||||||
|
{
|
||||||
|
Object old=null;
|
||||||
|
synchronized (this)
|
||||||
|
{
|
||||||
|
checkValid();
|
||||||
|
old=doPutOrRemove(name,value);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (value==null || !value.equals(old))
|
||||||
|
{
|
||||||
|
if (old!=null)
|
||||||
|
unbindValue(name,old);
|
||||||
|
if (value!=null)
|
||||||
|
bindValue(name,value);
|
||||||
|
|
||||||
|
_manager.doSessionAttributeListeners(this,name,old,value);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
@Override
|
@Override
|
||||||
protected void checkValid() throws IllegalStateException
|
protected void checkValid() throws IllegalStateException
|
||||||
|
|
|
@ -110,8 +110,6 @@
|
||||||
*
|
*
|
||||||
</Import-Package>
|
</Import-Package>
|
||||||
<DynamicImport-Package>org.eclipse.jetty.*;version="[9.0,10.0)"</DynamicImport-Package>
|
<DynamicImport-Package>org.eclipse.jetty.*;version="[9.0,10.0)"</DynamicImport-Package>
|
||||||
<!--Require-Bundle/-->
|
|
||||||
<!-- Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment -->
|
|
||||||
</instructions>
|
</instructions>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -105,8 +105,6 @@
|
||||||
*
|
*
|
||||||
</Import-Package>
|
</Import-Package>
|
||||||
<DynamicImport-Package>org.eclipse.jetty.*;version="[9.0,10.0)"</DynamicImport-Package>
|
<DynamicImport-Package>org.eclipse.jetty.*;version="[9.0,10.0)"</DynamicImport-Package>
|
||||||
<!--Require-Bundle/-->
|
|
||||||
<!-- Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment -->
|
|
||||||
</instructions>
|
</instructions>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -302,6 +302,14 @@
|
||||||
<param-name>xpoweredBy</param-name>
|
<param-name>xpoweredBy</param-name>
|
||||||
<param-value>false</param-value>
|
<param-value>false</param-value>
|
||||||
</init-param>
|
</init-param>
|
||||||
|
<init-param>
|
||||||
|
<param-name>compilerTargetVM</param-name>
|
||||||
|
<param-value>1.7</param-value>
|
||||||
|
</init-param>
|
||||||
|
<init-param>
|
||||||
|
<param-name>compilerSourceVM</param-name>
|
||||||
|
<param-value>1.7</param-value>
|
||||||
|
</init-param>
|
||||||
<!--
|
<!--
|
||||||
<init-param>
|
<init-param>
|
||||||
<param-name>classpath</param-name>
|
<param-name>classpath</param-name>
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -376,7 +376,7 @@
|
||||||
<artifactId>maven-pmd-plugin</artifactId>
|
<artifactId>maven-pmd-plugin</artifactId>
|
||||||
<version>2.7.1</version>
|
<version>2.7.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<targetJdk>1.5</targetJdk>
|
<targetJdk>1.7</targetJdk>
|
||||||
<rulesets>
|
<rulesets>
|
||||||
<ruleset>jetty/pmd_ruleset.xml</ruleset>
|
<ruleset>jetty/pmd_ruleset.xml</ruleset>
|
||||||
</rulesets>
|
</rulesets>
|
||||||
|
|
|
@ -28,13 +28,6 @@
|
||||||
<url>http://www.eclipse.org/jetty</url>
|
<url>http://www.eclipse.org/jetty</url>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<source>1.5</source>
|
|
||||||
<target>1.5</target>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-deploy-plugin</artifactId>
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
|
|
@ -28,13 +28,6 @@
|
||||||
<url>http://www.eclipse.org/jetty</url>
|
<url>http://www.eclipse.org/jetty</url>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<source>1.5</source>
|
|
||||||
<target>1.5</target>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-deploy-plugin</artifactId>
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
|
|
@ -28,13 +28,6 @@
|
||||||
<url>http://www.eclipse.org/jetty</url>
|
<url>http://www.eclipse.org/jetty</url>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<source>1.5</source>
|
|
||||||
<target>1.5</target>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-deploy-plugin</artifactId>
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.6</source>
|
|
||||||
<target>1.6</target>
|
|
||||||
<verbose>false</verbose>
|
<verbose>false</verbose>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.6</source>
|
|
||||||
<target>1.6</target>
|
|
||||||
<verbose>false</verbose>
|
<verbose>false</verbose>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.6</source>
|
|
||||||
<target>1.6</target>
|
|
||||||
<verbose>false</verbose>
|
<verbose>false</verbose>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
Loading…
Reference in New Issue