All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.weld.logging.UtilLogger Maven / Gradle / Ivy

The newest version!
/*
 * JBoss, Home of Professional Open Source
 * Copyright 2013, Red Hat, Inc., and individual contributors
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jboss.weld.logging;

import static org.jboss.weld.logging.WeldLogger.WELD_PROJECT_CODE;

import org.jboss.logging.Logger;
import org.jboss.logging.annotations.Cause;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.Message.Format;
import org.jboss.logging.annotations.MessageLogger;
import org.jboss.weld.exceptions.DefinitionException;
import org.jboss.weld.exceptions.DeploymentException;
import org.jboss.weld.exceptions.UnsupportedOperationException;
import org.jboss.weld.exceptions.IllegalArgumentException;
import org.jboss.weld.exceptions.IllegalStateException;
import org.jboss.weld.exceptions.WeldException;

/**
 * Error messages relating to utility classes
 *
 * TODO maybe remove this, I'm not sure users care what we count a utility PLM
 *
 * Message ids: 000800 - 000899
 */
@MessageLogger(projectCode = WELD_PROJECT_CODE)
public interface UtilLogger extends WeldLogger {

    UtilLogger LOG = Logger.getMessageLogger(UtilLogger.class, Category.UTIL.getName());

    /**
     * @deprecated Not in use
     */
    @Deprecated
    @Message(id = 800, value = "Error loading service {0}", format = Format.MESSAGE_FORMAT)
    String serviceLoaderLoadingError(Object param1);

    /**
     * @deprecated Not in use
     */
    @Deprecated
    @Message(id = 801, value = "Security exception scanning {0}", format = Format.MESSAGE_FORMAT)
    String securityExceptionScanning(Object param1);

    @Message(id = 802, value = "XML DOM is readonly")
    UnsupportedOperationException xmlDomReadonly();

    /**
     * @deprecated Not in use
     */
    @Deprecated
    @Message(id = 803, value = "Extension {0} does not implement Extension", format = Format.MESSAGE_FORMAT)
    String declaredExtensionDoesNotImplementExtension(Object param1);

    @Message(id = 804, value = "{0} is not an enum", format = Format.MESSAGE_FORMAT)
    IllegalArgumentException classNotEnum(Object param1);

    @Message(id = 805, value = "Cannot have more than one post construct method annotated with @PostConstruct for {0}", format = Format.MESSAGE_FORMAT)
    DefinitionException tooManyPostConstructMethods(Object param1);

    @Message(id = 806, value = "Cannot have more than one pre destroy method annotated @PreDestroy for {0}", format = Format.MESSAGE_FORMAT)
    DefinitionException tooManyPreDestroyMethods(Object param1);

    @Message(id = 807, value = "Initializer method {0} cannot be annotated @Produces on {1}", format = Format.MESSAGE_FORMAT)
    DefinitionException initializerCannotBeProducer(Object param1, Object param2);

    @Message(id = 808, value = "Initializer method {0} cannot have parameters annotated @Disposes on {1}", format = Format.MESSAGE_FORMAT)
    DefinitionException initializerCannotBeDisposalMethod(Object param1, Object param2);

    @Message(id = 810, value = "Cannot place qualifiers on final fields:  {0}", format = Format.MESSAGE_FORMAT)
    DefinitionException qualifierOnFinalField(Object param1);

    /**
     * @deprecated Not in use
     */
    @Deprecated
    @Message(id = 811, value = "Cannot have more than one constructor annotated with @Initializer for {0}", format = Format.MESSAGE_FORMAT)
    String tooManyInitializers(Object param1);

    @Message(id = 812, value = "Cannot determine constructor to use for {0}. Possible constructors {1}", format = Format.MESSAGE_FORMAT)
    DefinitionException ambiguousConstructor(Object param1, Object param2);

    @Message(id = 813, value = "injectableFields and initializerMethods must have the same size.\n\nInjectable Fields:  {0}\nInitializerMethods:  {1}", format = Format.MESSAGE_FORMAT)
    IllegalArgumentException invalidQuantityInjectableFieldsAndInitializerMethods(Object param1, Object param2);

    @Message(id = 814, value = "Annotation {0} is not a qualifier", format = Format.MESSAGE_FORMAT)
    IllegalArgumentException annotationNotQualifier(Object param1);

    @Message(id = 815, value = "Qualifier {0} is already present in the set {1}", format = Format.MESSAGE_FORMAT)
    IllegalArgumentException redundantQualifier(Object param1, Object param2);

    @Message(id = 816, value = "Cannot determine constructor to use for {0}", format = Format.MESSAGE_FORMAT)
    DefinitionException unableToFindConstructor(Object param1);

    @Message(id = 817, value = "Unable to find Bean Deployment Archive for {0}", format = Format.MESSAGE_FORMAT)
    IllegalStateException unableToFindBeanDeploymentArchive(Object param1);

    @Message(id = 818, value = "Event type {0} is not allowed", format = Format.MESSAGE_FORMAT)
    IllegalArgumentException eventTypeNotAllowed(Object param1);

    @Message(id = 819, value = "Cannot provide an event type parameterized with a type parameter {0}", format = Format.MESSAGE_FORMAT)
    IllegalArgumentException typeParameterNotAllowedInEventType(Object param1);

    @Message(id = 820, value = "Cannot proxy non-Class Type {0}", format = Format.MESSAGE_FORMAT)
    IllegalArgumentException cannotProxyNonClassType(Object param1);

    /**
     * @deprecated Not in use
     */
    @Deprecated
    @Message(id = 821, value = "Instance {0} is not a proxy", format = Format.MESSAGE_FORMAT)
    String instanceNotAProxy(Object param1);

    /**
     * @deprecated Not in use
     */
    @Deprecated
    @Message(id = 822, value = "Error accessing constructor of {0} with parameters {1}", format = Format.MESSAGE_FORMAT)
    String accessErrorOnConstructor(Object param1, Object param2);

    /**
     * @deprecated Not in use
     */
    @Deprecated
    @Message(id = 823, value = "Error invoking method {0} on {1}", format = Format.MESSAGE_FORMAT)
    String errorInvokingMethod(Object param1, Object param2);

    @Message(id = 824, value = "Error getting field {0} on {1}", format = Format.MESSAGE_FORMAT)
    WeldException accessErrorOnField(Object param1, Object param2, @Cause Throwable cause);

    /**
     * @deprecated Not in use
     */
    @Deprecated
    @Message(id = 825, value = "Method {0} not implemented by instance {1}", format = Format.MESSAGE_FORMAT)
    String noSuchMethod(Object param1, Object param2);

    @Message(id = 826, value = "Cannot access values() on annotation")
    DeploymentException annotationValuesInaccessible(@Cause Throwable cause);

    @Message(id = 827, value = "Initializer method {0} declared on {1} may not be a generic method", format = Format.MESSAGE_FORMAT)
    DefinitionException initializerMethodIsGeneric(Object param1, Object param2);

    /**
     * @deprecated Not in use
     */
    @Deprecated
    @Message(id = 828, value = "Could not read services file {0}", format = Format.MESSAGE_FORMAT)
    String couldNotReadServicesFile(Object param1);

    /**
     * @deprecated Not in use
     */
    @Deprecated
    @Message(id = 829, value = "Extension class {0} not found", format = Format.MESSAGE_FORMAT)
    String extensionClassNotFound(Object param1);

    /**
     * @deprecated Not in use
     */
    @Deprecated
    @Message(id = 830, value = "Error loading class {0}", format = Format.MESSAGE_FORMAT)
    String classLoadingError(Object param1);

    /**
     * @deprecated Not in use
     */
    @Deprecated
    @Message(id = 831, value = "Could not read services list from {0}", format = Format.MESSAGE_FORMAT)
    String couldNotReadServicesList(Object param1);

    @Message(id = 832, value = "Unable to load the cache value for the key {0}", format = Format.MESSAGE_FORMAT)
    WeldException unableToLoadCacheValue(Object param1, @Cause Throwable cause);

    @Message(id = 833, value = "Resource injection point represents a method which doesn't follow JavaBean conventions {0}", format = Format.MESSAGE_FORMAT)
    DefinitionException resourceSetterInjectionNotAJavabean(Object param1);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy