private static Token createPlainToken ( final String name , final String configuration ) { if ( name . equals ( "date" ) ) { return createDateToken ( configuration ) ; } else if ( "pid" . equals ( name ) ) { return new ProcessIdToken ( ) ; } else if ( "thread" . equals ( name ) ) { return new ThreadNameToken ( ) ; } else if ( "thread-id" . equals ( name ) ) { return new ThreadIdToken ( ) ; } else if ( "context" . equals ( name ) ) { return createThreadContextToken ( configuration ) ; } else if ( "class" . equals ( name ) ) { return new FullClassNameToken ( ) ; } else if ( "class-name" . equals ( name ) ) { return new SimpleClassNameToken ( ) ; } else if ( "package" . equals ( name ) ) { return new PackageNameToken ( ) ; } else if ( "method" . equals ( name ) ) { return new MethodNameToken ( ) ; } else if ( "file" . equals ( name ) ) { return new FileNameToken ( ) ; } else if ( "line" . equals ( name ) ) { return new LineNumberToken ( ) ; } else if ( "tag" . equals ( name ) ) { return configuration == null ? new LoggerTagToken ( ) : new LoggerTagToken ( configuration ) ; } else if ( "level" . equals ( name ) ) { return new SeverityLevelToken ( ) ; } else if ( "message" . equals ( name ) ) { return new MessageAndExceptionToken ( ) ; } else if ( "message-only" . equals ( name ) ) { return new MessageToken ( ) ; } else if ( "exception" . equals ( name ) ) { return new ExceptionToken ( ) ; } else if ( "opening-curly-bracket" . equals ( name ) ) { return new PlainTextToken ( "{" ) ; } else if ( "closing-curly-bracket" . equals ( name ) ) { return new PlainTextToken ( "}" ) ; } else if ( "pipe" . equals ( name ) ) { return new PlainTextToken ( "|" ) ; } else { return null ; } }
Creates a new token for a name and configuration .