more fixes on Resource

Signed-off-by: Olivier Lamy <oliver.lamy@gmail.com>
This commit is contained in:
Olivier Lamy 2022-08-05 18:48:08 +10:00
parent 439bd12c7f
commit d5a0b2bd1e
3 changed files with 22 additions and 4 deletions

View File

@ -16,6 +16,7 @@ package org.eclipse.jetty.ee10.servlet.security;
import java.util.List;
import org.eclipse.jetty.util.resource.Resource;
import org.eclipse.jetty.util.resource.ResourceFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -8,11 +8,21 @@
<!-- configuration (see $(jetty.home)/webapps/test.xml for an -->
<!-- example). -->
<!-- =========================================================== -->
<Call class="org.eclipse.jetty.util.resource.ResourceFactory" name="of" arg="Server">
<Call id="realmResource" class="org.eclipse.jetty.util.resource.Resource" name="newResource">
<Arg><Property name="jetty.demo.realm" default="etc/jetty-ee10-demo-realm.properties" /></Arg>
</Call>
</Call>
<Call name="addBean">
<Arg>
<New class="org.eclipse.jetty.ee10.servlet.security.HashLoginService">
<Set name="name">Test Realm</Set>
<Set name="config">etc/jetty-ee10-demo-realm.properties</Set>
<Set name="config"><Ref refid="realmResource"/></Set>
<Set name="hotReload">false</Set>
</New>
</Arg>

View File

@ -8,13 +8,20 @@
<!-- configuration (see $(jetty.home)/webapps/test.xml for an -->
<!-- example). -->
<!-- =========================================================== -->
<Call class="org.eclipse.jetty.util.resource.ResourceFactory" name="of" arg="Server">
<Call id="realmResource" class="org.eclipse.jetty.util.resource.Resource" name="newResource">
<Arg><Property name="jetty.demo.realm" default="etc/realm.properties" /></Arg>
</Call>
</Call>
<Call name="addBean">
<Arg>
<New class="org.eclipse.jetty.security.HashLoginService">
<Set name="name">Test Realm</Set>
<Set name="config">
<Property name="jetty.demo.realm" default="etc/realm.properties" />
</Set>
<Set name="config"><Ref refid="realmResource"/></Set>
<Set name="hotReload">false</Set>
</New>
</Arg>