Examples of Factory


Examples of net.sf.cglib.Factory

     * The proxy will implement or extend the specified class and
     * also implement javax.jdo.spi.PersistenceCapable.
     */
    Object newProxy() {
        Class clazz = mapping.getMappedClass();
        Factory sample = (Factory) factory.getSample(clazz);
        if (sample != null) {
            proxy = sample.newInstance(this);
            setProxy(proxy);
            return proxy;
        }
        Class[] interfaces;
        ClassLoader loader = clazz.getClassLoader();
View Full Code Here

Examples of net.sf.cglib.proxy.Factory

            throw new IllegalArgumentException("could not imposterise " + mockedType, e);
        }
    }
   
    private Object createProxy(Class<?> proxyClass, final MethodInterceptor interceptor) {
        Factory proxy = (Factory) objenesis.newInstance(proxyClass);
        proxy.setCallbacks(new Callback[] {interceptor, NoOp.INSTANCE});
        return proxy;
    }
View Full Code Here

Examples of objot.container.Factory

      handler = (ServiceHandler)Class.forName(config.getInitParameter("handler")).newInstance();
      config.getServletContext().log(
        "\n\n================################ " + getClass().getName() + " : "
          + handler.getClass().getName() + " %%%%%%%%%%%%%%%%$$$$$$$$$$$$$$$$\n\n");

      con = new Factory(Inject.Set.class).bind(ServletConfig.class,
        ServletContext.class).create(null);
      con = new Factory(Inject.Set.class).bind(HttpServletRequest.class,
        HttpServletResponse.class, HttpSession.class, String.class).create(con);
      con.set(ServletConfig.class, c);
      con.set(ServletContext.class, c.getServletContext());

      handler = handler.init(con.parent());
View Full Code Here

Examples of opennlp.tools.sentdetect.lang.Factory

   * Initializes the current instance.
   *
   * @param model the {@link SentenceModel}
   */
  public SentenceDetectorME(SentenceModel model) {
    this(model, new Factory());
  }
View Full Code Here

Examples of opennlp.tools.tokenize.lang.Factory

   * @param cg
   */
  public TokSpanEventStream(ObjectStream<TokenSample> tokenSamples,
        boolean skipAlphaNumerics, TokenContextGenerator cg) {
    super(tokenSamples);
    Factory factory = new Factory();
    this.alphaNumeric = factory.getAlphanumeric(null);
    this.skipAlphaNumerics = skipAlphaNumerics;
    this.cg = cg;
  }
View Full Code Here

Examples of org.aeonbits.owner.Factory

        assertSame(first, second);
    }

    @Test
    public void testGetOrCreateWithFactory() {
        Factory factory = ConfigFactory.newInstance();
        Factory spy = spy(factory);
        MyConfig first = ConfigCache.getOrCreate(spy, MyConfig.class);
        MyConfig second = ConfigCache.getOrCreate(spy, MyConfig.class);
        MyConfig third = ConfigCache.getOrCreate(spy, MyConfig.class);
        assertSame(first, second);
        assertSame(second, third);
View Full Code Here

Examples of org.agilewiki.jactor.factory.Factory

     */
    public JLPCActor newActor(Mailbox mailbox, Actor parent)
            throws Exception {
        StringMapJid imj = (StringMapJid) super.newActor(mailbox, parent);
        if (valueFactory == null) {
            Factory f = (Factory) parent.getMatch(Factory.class);
            valueFactory = f.getActorFactory(valueType);
        }
        imj.valueFactory = valueFactory;
        imj.initialCapacity = initialCapacity;
        return imj;
    }
View Full Code Here

Examples of org.apache.abdera.factory.Factory

      @GET
      @Path("feed")
      @Produces(MediaType.APPLICATION_ATOM_XML)
      public Feed getFeed(@Context UriInfo uri) throws Exception
      {
         Factory factory = abdera.getFactory();
         Assert.assertNotNull(factory);
         Feed feed = abdera.getFactory().newFeed();
         feed.setId("tag:example.org,2007:/foo");
         feed.setTitle("Test Feed");
         feed.setSubtitle("Feed subtitle");
View Full Code Here

Examples of org.apache.avalon.repository.provider.Factory

        {
            assertEquals(
              "host", defaults[i], hosts[i] );
        }

        Factory factory = context.getInitialFactory();
        assertNotNull( factory );

        CacheManager manager = (CacheManager) factory.create() ;
        assertNotNull( manager ) ;
  
        Repository repository = manager.createRepository() ;
        assertNotNull( repository ) ;
       
View Full Code Here

Examples of org.apache.cassandra.cql3.selection.Selector.Factory

    {
        factories = new ArrayList<>(selectables.size());

        for (Selectable selectable : selectables)
        {
            Factory factory = selectable.newSelectorFactory(cfm, defs);
            containsWritetimeFactory |= factory.isWritetimeSelectorFactory();
            containsTTLFactory |= factory.isTTLSelectorFactory();
            if (factory.isAggregateSelectorFactory())
                ++numberOfAggregateFactories;
            factories.add(factory);
        }
    }
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.