org.apache.jackrabbit.spi.commons.logging
Class NameFactoryLogger

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.logging.AbstractLogger
      extended by org.apache.jackrabbit.spi.commons.logging.NameFactoryLogger
All Implemented Interfaces:
NameFactory

public class NameFactoryLogger
extends AbstractLogger
implements NameFactory

Log wrapper for a NameFactory.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger
AbstractLogger.Callable, AbstractLogger.SafeCallable
 
Field Summary
 
Fields inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger
writer
 
Constructor Summary
NameFactoryLogger(NameFactory nameFactory, LogWriter writer)
          Create a new instance for the given nameFactory which uses writer for persisting log messages.
 
Method Summary
 Name create(String nameString)
          Returns a Name holding the value of the specified string.
 Name create(String namespaceURI, String localName)
          Returns a Name with the given namespace URI and local part and validates the given parameters.
 NameFactory getNameFactory()
           
 
Methods inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger
execute, execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameFactoryLogger

public NameFactoryLogger(NameFactory nameFactory,
                         LogWriter writer)
Create a new instance for the given nameFactory which uses writer for persisting log messages.

Parameters:
nameFactory -
writer -
Method Detail

getNameFactory

public NameFactory getNameFactory()
Returns:
the wrapped NameFactory

create

public Name create(String namespaceURI,
                   String localName)
Description copied from interface: NameFactory
Returns a Name with the given namespace URI and local part and validates the given parameters.

Specified by:
create in interface NameFactory
Parameters:
namespaceURI - namespace uri
localName - local part

create

public Name create(String nameString)
Description copied from interface: NameFactory
Returns a Name holding the value of the specified string. The string must be in the format returned by the Name.toString() method, i.e.

{namespaceURI}localName

Specified by:
create in interface NameFactory
Parameters:
nameString - a String containing the Name representation to be parsed.
Returns:
the Name represented by the argument


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.