Examples of ServiceFactory


Examples of org.jboss.gravia.runtime.ServiceFactory

            Thread.currentThread().setContextClassLoader(null);

            try {
                ServiceFactoryHolder<S> factoryHolder = getFactoryHolder(module);
                if (factoryHolder == null) {
                    ServiceFactory factory = (ServiceFactory) valueProvider.getValue();
                    factoryHolder = new ServiceFactoryHolder<S>(module, factory);
                    factoryValues.put(module.getIdentity(), factoryHolder);
                }

                result = factoryHolder.getService();
View Full Code Here

Examples of org.jboss.system.ServiceFactory

      Service service = null;
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      if (serviceFactory != null && serviceFactory.length() > 0)
      {
         Class clazz = loader.loadClass(serviceFactory);
         ServiceFactory factory = (ServiceFactory) clazz.newInstance();
         service = factory.createService(server, objectName);
      }
      else
      {
         MBeanInfo info = server.getMBeanInfo(objectName);
         MBeanOperationInfo[] opInfo = info.getOperations();
View Full Code Here

Examples of org.jbpm.svc.ServiceFactory

    return getServiceFactory(serviceName, JbpmContext.DEFAULT_JBPM_CONTEXT_NAME);
  }

  public ServiceFactory getServiceFactory(String serviceName, String jbpmContextName)
  {
    ServiceFactory serviceFactory = null;
    JbpmContext jbpmContext = createJbpmContext(jbpmContextName);
    try
    {
      serviceFactory = jbpmContext.getServices().getServiceFactory(serviceName);
    }
View Full Code Here

Examples of org.jbpm.svc.ServiceFactory

  public ServiceFactory getServiceFactory(String serviceName) {
    return getServiceFactory(serviceName, JbpmContext.DEFAULT_JBPM_CONTEXT_NAME);
  }

  public ServiceFactory getServiceFactory(String serviceName, String jbpmContextName) {
    ServiceFactory serviceFactory = null;
    JbpmContext jbpmContext = createJbpmContext(jbpmContextName);
    try {
      serviceFactory = jbpmContext.getServices().getServiceFactory(serviceName);
    } finally {
      jbpmContext.close();
View Full Code Here

Examples of org.jibx.ws.server.ServiceFactory

    public Service getServiceInstance(HttpServletRequest req) throws WsException {
        ServiceDefinition sdef = getServiceDefinition(req);
        if (sdef == null) {
            return null;
        }
        ServiceFactory serviceFactory = ProtocolDirectory.getProtocol(sdef.getProtocolName()).getServiceFactory();
        return ServicePool.getInstance(serviceFactory, sdef);
    }
View Full Code Here

Examples of org.jibx.ws.server.ServiceFactory

   
    private ServiceDefinition m_sdef;

    /** {@inheritDoc} */
    public Service getServiceInstance(HttpServletRequest req) throws WsException {
        ServiceFactory serviceFactory = ProtocolDirectory.getProtocol(m_sdef.getProtocolName()).getServiceFactory();
        return ServicePool.getInstance(serviceFactory, m_sdef);
    }
View Full Code Here

Examples of org.jibx.ws.server.ServiceFactory

                        mediaType = CodecDirectory.TEXT_XML_MEDIA_TYPE;
                    }
                    XmlCodec codec = m_codecCache.getCodec(mediaType);
                    IXMLReader reader = codec.getReader(m_dimeInput, null, m_clientAddress, false);
                    Protocol protocol = ProtocolDirectory.getProtocol(m_sdef.getProtocolName());
                    ServiceFactory serviceFactory = protocol.getServiceFactory();
                    serv = ServicePool.getInstance(serviceFactory, m_sdef);
                    serv.processRequest(new TcpInConnection(m_dimeInput, reader), new TcpOutConnection(codec,
                        serv.getXmlOptions()));
                    if (s_logger.isDebugEnabled()) {
                        s_logger.debug("Completed processing of receive message from " + m_clientAddress);
View Full Code Here

Examples of org.jibx.ws.server.ServiceFactory

            WsException {

        ServiceDefinition sdef = getServiceDefinition(serviceMethodName);
        sdef.init();

        ServiceFactory serviceFactory = ProtocolDirectory.getProtocol(sdef.getProtocolName()).getServiceFactory();
        return ServicePool.getInstance(serviceFactory, sdef);
    }
View Full Code Here

Examples of org.jibx.ws.server.ServiceFactory

        HandlerDefinition hdef = new HandlerDefinition();
        hdef.setClassName(handlerClass.getName());
        sdef.setHandlerDefinitions(Arrays.asList(new HandlerDefinition[] { hdef }));
        sdef.init();

        ServiceFactory serviceFactory = ProtocolDirectory.getProtocol(sdef.getProtocolName()).getServiceFactory();
        return ServicePool.getInstance(serviceFactory, sdef);
    }
View Full Code Here

Examples of org.osgi.framework.ServiceFactory

        final Dictionary props = new Hashtable();
        props.put(ConsoleConstants.PLUGIN_LABEL, ConsoleConstants.NAME);
        props.put(ConsoleConstants.PLUGIN_TITLE, ConsoleConstants.TITLE);
        props.put(ConsoleConstants.PLUGIN_CATEGORY, ConsoleConstants.WEB_CONSOLE_CATEGORY);
        this.pluginRegistration = btx.registerService(ConsoleConstants.INTERFACE_SERVLET, new ServiceFactory()
        {
            public void ungetService(final Bundle bundle, final ServiceRegistration registration, final Object service)
            {
                // nothing to do
            }
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.