org.apache.sling.launchpad.testservices.jcr
Class TestNamespaceMapper

java.lang.Object
  extended by org.apache.sling.launchpad.testservices.jcr.TestNamespaceMapper
All Implemented Interfaces:
NamespaceMapper

@Service(value=NamespaceMapper.class)
@Properties(value={@Property(name="service.description",value="Test NamespaceMapper"),@Property(name="service.vendor",value="The Apache Software Foundation"),@Property(name="filter.scope",value="request"),@Property(name="sling.filter.scope",value="request")})
public class TestNamespaceMapper
extends Object
implements NamespaceMapper

Test Implementation of NamespaceMapper


Constructor Summary
TestNamespaceMapper()
           
 
Method Summary
 void defineNamespacePrefixes(javax.jcr.Session session)
          This method is invoked whenever a new session is created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestNamespaceMapper

public TestNamespaceMapper()
Method Detail

defineNamespacePrefixes

public void defineNamespacePrefixes(javax.jcr.Session session)
                             throws javax.jcr.RepositoryException
Description copied from interface: NamespaceMapper
This method is invoked whenever a new session is created. It allows the service to add own namespace prefixes.

Specified by:
defineNamespacePrefixes in interface NamespaceMapper
Parameters:
session - The new session
Throws:
javax.jcr.RepositoryException - If anything goes wrong


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.