Class NameFactoryLogger
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.logging.AbstractLogger
-
- org.apache.jackrabbit.spi.commons.logging.NameFactoryLogger
-
- All Implemented Interfaces:
NameFactory
public class NameFactoryLogger extends AbstractLogger implements NameFactory
Log wrapper for aNameFactory
.
-
-
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
Constructors Constructor Description NameFactoryLogger(NameFactory nameFactory, LogWriter writer)
Create a new instance for the givennameFactory
which useswriter
for persisting log messages.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Name
create(String nameString)
Returns aName
holding the value of the specified string.Name
create(String namespaceURI, String localName)
Returns aName
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
-
-
-
-
Constructor Detail
-
NameFactoryLogger
public NameFactoryLogger(NameFactory nameFactory, LogWriter writer)
Create a new instance for the givennameFactory
which useswriter
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 aName
with the given namespace URI and local part and validates the given parameters.- Specified by:
create
in interfaceNameFactory
- Parameters:
namespaceURI
- namespace urilocalName
- local part
-
create
public Name create(String nameString)
Description copied from interface:NameFactory
Returns aName
holding the value of the specified string. The string must be in the format returned by theName.toString()
method, i.e.{namespaceURI}localName
- Specified by:
create
in interfaceNameFactory
- Parameters:
nameString
- aString
containing theName
representation to be parsed.- Returns:
- the
Name
represented by the argument
-
-