Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jpav committed Sep 17, 2014
1 parent 68c297e commit 0ddc274
Show file tree
Hide file tree
Showing 299 changed files with 3,695 additions and 3,295 deletions.
10 changes: 5 additions & 5 deletions polyglotter-common/pom.xml → chrysalix-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
<!-- Parent -->
<!-- ================================================================== -->
<parent>
<groupId>org.polyglotter</groupId>
<artifactId>polyglotter</artifactId>
<groupId>org.chrysalix</groupId>
<artifactId>chrysalix</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<!-- ================================================================== -->
<!-- Self -->
<!-- ================================================================== -->
<artifactId>polyglotter-common</artifactId>
<name>Polyglotter Common</name>
<description>Common facilities, utilities, and classes used by other Polyglotter modules.</description>
<artifactId>chrysalix-common</artifactId>
<name>Chrysalix Common</name>
<description>Common facilities, utilities, and classes used by other Chrysalix modules.</description>

<!-- ================================================================== -->
<!-- Dependencies -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* Polyglotter (http://polyglotter.org)
* Chrysalix
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership. Some portions may be licensed
* to Red Hat, Inc. under one or more contributor license agreements.
* See the AUTHORS.txt file in the distribution for a full listing of
* individual contributors.
*
* Polyglotter is free software. Unless otherwise indicated, all code in Polyglotter
* Chrysalix is free software. Unless otherwise indicated, all code in Chrysalix
* is licensed to you under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* Polyglotter is distributed in the hope that it will be useful,
* Chrysalix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
Expand All @@ -22,7 +22,7 @@
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/

package org.polyglotter.common;
package org.chrysalix.common;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* Polyglotter (http://polyglotter.org)
* Chrysalix
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership. Some portions may be licensed
* to Red Hat, Inc. under one or more contributor license agreements.
* See the AUTHORS.txt file in the distribution for a full listing of
* individual contributors.
*
* Polyglotter is free software. Unless otherwise indicated, all code in Polyglotter
* Chrysalix is free software. Unless otherwise indicated, all code in Chrysalix
* is licensed to you under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* Polyglotter is distributed in the hope that it will be useful,
* Chrysalix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
Expand All @@ -21,7 +21,7 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.polyglotter.common;
package org.chrysalix.common;

/**
* Utility class that checks arguments to methods. This class is to be used only in API methods, where failure to supply correct
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* Polyglotter (http://polyglotter.org)
* Chrysalix
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership. Some portions may be licensed
* to Red Hat, Inc. under one or more contributor license agreements.
* See the AUTHORS.txt file in the distribution for a full listing of
* individual contributors.
*
* Polyglotter is free software. Unless otherwise indicated, all code in Polyglotter
* Chrysalix is free software. Unless otherwise indicated, all code in Chrysalix
* is licensed to you under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* Polyglotter is distributed in the hope that it will be useful,
* Chrysalix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
Expand All @@ -21,7 +21,7 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.polyglotter.common;
package org.chrysalix.common;

import java.lang.reflect.AccessibleObject;
import java.security.AccessController;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* Polyglotter (http://polyglotter.org)
* Chrysalix
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership. Some portions may be licensed
* to Red Hat, Inc. under one or more contributor license agreements.
* See the AUTHORS.txt file in the distribution for a full listing of
* individual contributors.
*
* Polyglotter is free software. Unless otherwise indicated, all code in Polyglotter
* Chrysalix is free software. Unless otherwise indicated, all code in Chrysalix
* is licensed to you under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* Polyglotter is distributed in the hope that it will be useful,
* Chrysalix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
Expand All @@ -21,7 +21,7 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.polyglotter.common;
package org.chrysalix.common;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* Polyglotter (http://polyglotter.org)
* Chrysalix
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership. Some portions may be licensed
* to Red Hat, Inc. under one or more contributor license agreements.
* See the AUTHORS.txt file in the distribution for a full listing of
* individual contributors.
*
* Polyglotter is free software. Unless otherwise indicated, all code in Polyglotter
* Chrysalix is free software. Unless otherwise indicated, all code in Chrysalix
* is licensed to you under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* Polyglotter is distributed in the hope that it will be useful,
* Chrysalix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
Expand All @@ -21,12 +21,12 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.polyglotter.common;
package org.chrysalix.common;

import java.util.Locale;

/**
* The internationalized string constants for the <code>org.polyglotter.common</code> packages.
* The internationalized string constants for the <code>org.chrysalix.common</code> packages.
*/
@SuppressWarnings( "javadoc" )
public final class CommonI18n {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* Polyglotter (http://polyglotter.org)
* Chrysalix
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership. Some portions may be licensed
* to Red Hat, Inc. under one or more contributor license agreements.
* See the AUTHORS.txt file in the distribution for a full listing of
* individual contributors.
*
* Polyglotter is free software. Unless otherwise indicated, all code in Polyglotter
* Chrysalix is free software. Unless otherwise indicated, all code in Chrysalix
* is licensed to you under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* Polyglotter is distributed in the hope that it will be useful,
* Chrysalix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
Expand All @@ -21,7 +21,7 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.polyglotter.common;
package org.chrysalix.common;

import java.io.IOException;
import java.io.InputStream;
Expand All @@ -40,7 +40,7 @@
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.CopyOnWriteArraySet;

import org.polyglotter.common.i18n.ClasspathLocalizationRepository;
import org.chrysalix.common.i18n.ClasspathLocalizationRepository;

/**
* An internalized string object, which manages the initialization of internationalization (i18n) files, substitution of values
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* Polyglotter (http://polyglotter.org)
* Chrysalix
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership. Some portions may be licensed
* to Red Hat, Inc. under one or more contributor license agreements.
* See the AUTHORS.txt file in the distribution for a full listing of
* individual contributors.
*
* Polyglotter is free software. Unless otherwise indicated, all code in Polyglotter
* Chrysalix is free software. Unless otherwise indicated, all code in Chrysalix
* is licensed to you under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* Polyglotter is distributed in the hope that it will be useful,
* Chrysalix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
Expand All @@ -21,46 +21,46 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.polyglotter.common;
package org.chrysalix.common;

import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtConstructor;
import javassist.CtMethod;
import javassist.NotFoundException;

import org.polyglotter.common.logging.JdkLoggerFactory;
import org.polyglotter.common.logging.Log4jLoggerFactory;
import org.polyglotter.common.logging.SLF4JLoggerFactory;
import org.chrysalix.common.logging.JdkLoggerFactory;
import org.chrysalix.common.logging.Log4jLoggerFactory;
import org.chrysalix.common.logging.SLF4JLoggerFactory;

/**
* The abstract class for the LogFactory, which is called to create a specific implementation of the {@link Logger}.
* <p>
* Polyglotter provides out-of-the-box several LogFactory implementations that work with common log frameworks:
* Several LogFactory implementations are provided out-of-the-box that work with common log frameworks:
* <ol>
* <li>SLF4J (which sits atop several logging frameworks)</li>
* <li>Log4J</li>
* <li>JDK Util Logging</li>
* </ol>
* The static initializer for this class checks the classpath for the availability of these frameworks, and as soon as one is found
* the LogFactory implementation for that framework is instantiated and used for all Polyglotter logging.
* the LogFactory implementation for that framework is instantiated and used for all logging.
* </p>
* <p>
* However, since Polyglotter can be embedded into any application, it is possible that applications use a logging framework other
* than those listed above. So before falling back to the JDK logging, Polyglotter looks for the
* <code>org.polyglotter.common.logging.CustomLoggerFactory</code> class, and if found attempts to instantiate and use it. But
* Polyglotter does not provide this class out of the box; rather an application that is embedding Polyglotter can provide its own
* However, since this facility can be embedded into any application, it is possible that applications use a logging framework other
* than those listed above. So before falling back to the JDK logging, this facility looks for the
* <code>org.chrysalix.common.logging.CustomLoggerFactory</code> class, and if found attempts to instantiate and use it. But this
* facility does not provide this class out of the box; rather an application that is embedding this facility can provide its own
* version of that class that should extend {@link LogFactory} and create an appropriate implementation of {@link Logger} that
* forwards Polyglotter log messages to the application's logging framework.
* forwards log messages to the application's logging framework.
* </p>
*/
public abstract class LogFactory {

/**
* The name of the {@link LogFactory} implementation that is not provided out of the box but can be created, implemented, and
* placed on the classpath to have Polyglotter send log messages to a custom framework.
* placed on the classpath to have this facility send log messages to a custom framework.
*/
public static final String CUSTOM_LOG_FACTORY_CLASSNAME = "org.polyglotter.common.logging.CustomLoggerFactory";
public static final String CUSTOM_LOG_FACTORY_CLASSNAME = "org.chrysalix.common.logging.CustomLoggerFactory";

private static LogFactory LOGFACTORY;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* Polyglotter (http://polyglotter.org)
* Chrysalix
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership. Some portions may be licensed
* to Red Hat, Inc. under one or more contributor license agreements.
* See the AUTHORS.txt file in the distribution for a full listing of
* individual contributors.
*
* Polyglotter is free software. Unless otherwise indicated, all code in Polyglotter
* Chrysalix is free software. Unless otherwise indicated, all code in Chrysalix
* is licensed to you under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* Polyglotter is distributed in the hope that it will be useful,
* Chrysalix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
Expand All @@ -21,7 +21,7 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.polyglotter.common;
package org.chrysalix.common;

import java.util.Locale;
import java.util.concurrent.atomic.AtomicReference;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* Polyglotter (http://polyglotter.org)
* Chrysalix
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership. Some portions may be licensed
* to Red Hat, Inc. under one or more contributor license agreements.
* See the AUTHORS.txt file in the distribution for a full listing of
* individual contributors.
*
* Polyglotter is free software. Unless otherwise indicated, all code in Polyglotter
* Chrysalix is free software. Unless otherwise indicated, all code in Chrysalix
* is licensed to you under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* Polyglotter is distributed in the hope that it will be useful,
* Chrysalix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
Expand All @@ -21,7 +21,7 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.polyglotter.common;
package org.chrysalix.common;

/**
* Utilities for any {@link Object object}.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* Polyglotter (http://polyglotter.org)
* Chrysalix
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership. Some portions may be licensed
* to Red Hat, Inc. under one or more contributor license agreements.
* See the AUTHORS.txt file in the distribution for a full listing of
* individual contributors.
*
* Polyglotter is free software. Unless otherwise indicated, all code in Polyglotter
* Chrysalix is free software. Unless otherwise indicated, all code in Chrysalix
* is licensed to you under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* Polyglotter is distributed in the hope that it will be useful,
* Chrysalix is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
Expand All @@ -21,7 +21,7 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.polyglotter.common;
package org.chrysalix.common;

/**
*
Expand Down
Loading

0 comments on commit 0ddc274

Please sign in to comment.