Examples of Factory


Examples of com.opensymphony.module.sitemesh.Factory

            int bodyNode = 1;
            if (node.jjtGetNumChildren() == 3)
                bodyNode = 2;
            node.jjtGetChild(bodyNode).render(adapter, bodyContent);

            Factory factory = PortletContext.getContext().getSiteMeshFactory();
            Decorator decorator = factory.getDecoratorMapper().getNamedDecorator(request, decoratorName);
            if (decorator != null) {
                com.opensymphony.module.sitemesh.PageParser parser = factory.getPageParser("text/html");
                HTMLPage page = (HTMLPage) ((FastPageParser) parser).parse(new StringReader(bodyContent.toString()));
                Context context = VelocityManager.getInstance()
                        .createContext(ActionContext.getContext().getValueStack(), request, response);
                context.put("page", page);
                if (node.jjtGetNumChildren() == 3)
View Full Code Here

Examples of com.opensymphony.xwork2.inject.Factory

        FilterDispatcher filterDispatcher = new FilterDispatcher() {
            @Override
            protected Dispatcher createDispatcher(FilterConfig cfg) {
                return new Dispatcher(cfg.getServletContext(), new HashMap()) {
                    Container cont = new ContainerBuilder()
                        .factory(ObjectFactory.class, new Factory() {
                            public Object create(Context context) throws Exception { return destroyedObjectFactory; }
                        })
                        .create(false);
                   
                    @Override
View Full Code Here

Examples of com.pusher.client.util.Factory

     * @param apiKey Your Pusher API key.
     * @param pusherOptions Options for the Pusher client library to use.
     */
    public Pusher(String apiKey, PusherOptions pusherOptions) {

        this(apiKey, pusherOptions, new Factory());
    }
View Full Code Here

Examples of de.ailis.xadrian.data.Factory

     * @param index
     *            The index of the factory to change
     */
    public void changeYield(final int index)
    {
        final Factory mineType = this.complex.getFactory(index);
        final SetYieldsDialog dialog = new SetYieldsDialog(mineType);
        dialog.setYields(this.complex.getYields(index));
        dialog.setSector(this.complex.getSector());
        if (dialog.open() == Result.OK)
        {
View Full Code Here

Examples of de.odysseus.calyxo.forms.impl.Factory

    }

    log.debug("Initializing Calyxo Forms for Struts module '" + context.getName() + "'.");

    service = new FormsService();
    FormFactory factory = new Factory();
    factory.init(context);
    try {
      service.init(context, new StrutsFormsSupport(moduleConfig), factory, config);
    } catch (ConfigException e) {
      throw new ServletException(e);
    }
View Full Code Here

Examples of flux.Factory

   * @throws java.rmi.RemoteException If a networking error occurs.
   * @see flux.Factory#makeConfiguration(java.util.Properties)
   * @see flux.Factory#makeEngine(flux.Configuration)
   */
  public EngineBean(Properties configuration) throws EngineException, RemoteException {
    Factory factory = Factory.makeInstance();
    Configuration config = factory.makeConfiguration(configuration);
    engine = Factory.makeInstance().makeEngine(config);
  } // constructor
View Full Code Here

Examples of gov.nasa.worldwind.Factory

        configParams.setValue(AVKey.URL_READ_TIMEOUT, 30000);
        configParams.setValue(AVKey.RETRIEVAL_QUEUE_STALE_REQUEST_LIMIT, 60000);

        try
        {
            Factory factory = (Factory) WorldWind.createConfigurationComponent(GfrBasicElevationModelFactory.GFR_KEY_TERRAIN);
            Object obj = factory.createFromConfigSource(caps, configParams);
            return obj;
        }
       
        catch (Exception exc)
        {
View Full Code Here

Examples of iryrwarosh.Factory

  private Item[] items;
  private Factory factory;
  private List<Item> chosen = new ArrayList<Item>();
 
  public ChooseStartingItemsScreen(){
    factory = new Factory();
    items = new Item[]{
      factory.sword(),
      factory.club(),
      factory.knife(),
      factory.spear(),
View Full Code Here

Examples of jease.cms.domain.Factory

  /**
   * Returns factory-synchronized properties for given content in
   * relation to given parent container.
   */
  public static Property[] getProperties(Content parent, Content content) {
    Factory factory = getFactory(parent, content);
    if (factory != null && factory != parent) {
      return factory.getProperties(content);
    } else {
      return content.getProperties();
    }
  }
View Full Code Here

Examples of jfun.yan.factory.Factory

import jfun.yan.lifecycle.Procedure;


final class FactoryProcedure implements Procedure {
  public void invoke(Object self, Object[] args){
    final Factory f = (Factory)self;
    f.create();
  }
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.