Examples of Providers


Examples of org.apache.wink.common.internal.log.Providers

                       new Object[] {type, genericType, anns, mediaType});
        }
        List<MediaTypeMap<MessageBodyWriter<?>>.OFHolder<MessageBodyWriter<?>>> writersFactories =
            messageBodyWriters.getProvidersByMediaType(mediaType, type);
        logger.trace("Found possible MessageBodyWriter ObjectFactories {}", writersFactories); //$NON-NLS-1$
        Providers providersLogger = new Providers();
        MessageBodyWriter<T> ret = null;
        for (MediaTypeMap<MessageBodyWriter<?>>.OFHolder<MessageBodyWriter<?>> factory : writersFactories) {
            MessageBodyWriter<?> writer = factory.getInstance(runtimeContext);
            if (isWriteable(writer, type, genericType, annotations, mediaType, runtimeContext, factory.isSystemProvider)) {
                if (logger.isTraceEnabled()) {
                    List<Annotation> anns =
                        (annotations == null) ? null : Arrays.asList(annotations);
                    logger.trace("{}.isWriteable( {}, {}, {}, {} ) returned true", new Object[] { //$NON-NLS-1$
                                 writer, type, genericType, anns, mediaType});
                }
                ret = (MessageBodyWriter<T>)writer;
                providersLogger.addMessageBodyWriter(writer, true);
                break;
            } else {
                providersLogger.addMessageBodyWriter(writer, false);
            }
        }
        if (ret == null && logger.isTraceEnabled()) {
            List<Annotation> anns = (annotations == null) ? null : Arrays.asList(annotations);
            logger
                .trace("No MessageBodyWriter returned true for isWriteable( {}, {}, {}, {} )", new Object[] { //$NON-NLS-1$
                       type, genericType, anns, mediaType});
        }
        providersLogger.log();
        return ret;
    }
View Full Code Here

Examples of org.apache.wink.server.internal.log.Providers

        if (!LoggerFactory.getLogger(Providers.class).isTraceEnabled()) {
            /*
             * if just debug or higher is enabled, then log only user
             * applications
             */
            new Providers(deploymentConfiguration.getProvidersRegistry()).log();
        }

        RequestProcessor requestProcessor = new RequestProcessor(deploymentConfiguration);
        logger.trace("Creating request processor {} for servlet {}", requestProcessor, this); //$NON-NLS-1$

        if (LoggerFactory.getLogger(Resources.class).isTraceEnabled()) {
            /*
             * if full trace is enabled, then log everything
             */

            new Resources(deploymentConfiguration.getResourceRegistry()).log();
        }

        if (LoggerFactory.getLogger(Providers.class).isTraceEnabled()) {
            /*
             * if full trace is enabled, then log everything
             */
            new Providers(deploymentConfiguration.getProvidersRegistry()).log();
        }

        return requestProcessor;
    }
View Full Code Here

Examples of org.jboss.soa.esb.listeners.config.xbeanmodel101.ProvidersDocument.Providers

     * Verify the schedule provider configuration.
     * @throws ConfigurationException
     */
    public void verifyScheduleProviderConfig()
        throws ConfigurationException {
        Providers providersConfig = jbossesb.getProviders();

        if(providersConfig == null) {
            return;
        }

        List<Provider> providers = providersConfig.getProviderList();
        int numScheduleProviders = 0;

        for(Provider provider : providers) {
            if(provider instanceof ScheduleProvider) {
                numScheduleProviders++;
View Full Code Here

Examples of org.jboss.soa.esb.listeners.config.xbeanmodel110.ProvidersDocument.Providers

     * Verify the schedule provider configuration.
     * @throws ConfigurationException
     */
    public void verifyScheduleProviderConfig()
        throws ConfigurationException {
        Providers providersConfig = jbossesb.getProviders();

        if(providersConfig == null) {
            return;
        }

        List<Provider> providers = providersConfig.getProviderList();
        int numScheduleProviders = 0;

        for(Provider provider : providers) {
            if(provider instanceof ScheduleProvider) {
                numScheduleProviders++;
View Full Code Here

Examples of org.jboss.soa.esb.listeners.config.xbeanmodel120.ProvidersDocument.Providers

     * Get the &lt;bus&gt; configuration matching the supplied busid reference value.
     * @param busid The required &lt;bus&gt; configuration reference value.
     * @return The Bus configuration instance.
     */
    public Bus getOptionalBus(String busid) {
        Providers providers = jbossesb.getProviders();

        if(providers != null) {
            List<Provider> providerList = providers.getProviderList();

            for(Provider provider : providerList) {
                if(provider instanceof BusProvider) {
                    List<Bus> buses = ((BusProvider)provider).getBusList();

View Full Code Here

Examples of org.jboss.soa.esb.listeners.config.xbeanmodel120.ProvidersDocument.Providers

     * Get the &lt;provider&gt; configuration containing the supplied Bus configuration instance.
     * @param bus The Bus config instance whose Provider is being sought.
     * @return The Provider configuration instance.
     */
    public Provider getProvider(Bus bus) {
        Providers providers = jbossesb.getProviders();

        if(providers != null) {
            List<Provider> providerList = providers.getProviderList();

            for(Provider provider : providerList) {
                if(provider instanceof BusProvider) {
                    List<Bus> buses = ((BusProvider)provider).getBusList();

View Full Code Here

Examples of org.jboss.soa.esb.listeners.config.xbeanmodel120.ProvidersDocument.Providers

     * Get the &lt;provider&gt; configuration containing the supplied Bus configuration instance.
     * @param providerType The Bus Provider type is being sought.
     * @return The Provider configuration instance.
     */
    public Provider getProvider(Class<? extends BusProvider> providerType) {
        Providers providers = jbossesb.getProviders();

        if(providers != null) {
            List<Provider> providerList = providers.getProviderList();

            for(Provider provider : providerList) {
                if(providerType.isAssignableFrom(provider.getClass())) {
                    return provider;
                }
View Full Code Here

Examples of org.jboss.soa.esb.listeners.config.xbeanmodel120.ProvidersDocument.Providers

     * Verify the schedule provider configuration.
     * @throws org.jboss.soa.esb.ConfigurationException
     */
    public void verifyScheduleProviderConfig()
        throws ConfigurationException {
        Providers providersConfig = jbossesb.getProviders();

        if(providersConfig == null) {
            return;
        }

        List<Provider> providers = providersConfig.getProviderList();
        int numScheduleProviders = 0;

        for(Provider provider : providers) {
            if(provider instanceof ScheduleProvider) {
                numScheduleProviders++;
View Full Code Here

Examples of org.jboss.soa.esb.listeners.config.xbeanmodel130.ProvidersDocument.Providers

     * Get the &lt;bus&gt; configuration matching the supplied busid reference value.
     * @param busid The required &lt;bus&gt; configuration reference value.
     * @return The Bus configuration instance.
     */
    public Bus getOptionalBus(String busid) {
        Providers providers = jbossesb.getProviders();

        if(providers != null) {
            List<Provider> providerList = providers.getProviderList();

            for(Provider provider : providerList) {
                if(provider instanceof BusProvider) {
                    List<Bus> buses = ((BusProvider)provider).getBusList();

View Full Code Here

Examples of org.jboss.soa.esb.listeners.config.xbeanmodel130.ProvidersDocument.Providers

     * Get the &lt;provider&gt; configuration containing the supplied Bus configuration instance.
     * @param bus The Bus config instance whose Provider is being sought.
     * @return The Provider configuration instance.
     */
    public Provider getProvider(Bus bus) {
        Providers providers = jbossesb.getProviders();

        if(providers != null) {
            List<Provider> providerList = providers.getProviderList();

            for(Provider provider : providerList) {
                if(provider instanceof BusProvider) {
                    List<Bus> buses = ((BusProvider)provider).getBusList();

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.