Examples of IEngine


Examples of com.whatevernot.engine.IEngine

   */
  public void testSocket() throws Exception
  {
    ITimer timer = StopWatch.getTimer();
   
    IEngine engine = EngineFactory.makeEngine(timer);
    engine.trace(true);
   
    engine.add(this.getClass());
   
    timer.start(this, "request.split");
   
    engine.inject(new ServerSocket(port_));

    Thread.sleep(alive_);
   
    engine.idleHalt();
   
    StopWatch.stopAll();
   
    Log.info(this, "testSocket", "\n" + StopWatch.convertToString() + "\n");
 
View Full Code Here

Examples of org.apache.tapestry.IEngine

    }

    public void testLoggedOut()
    {
        IRequestCycle cycle = newCycle();
        IEngine engine = newEngine();
        IErrorProperty page = newPage();

        trainGetEngine(cycle, engine);

        trainGetVisit(engine, null);
View Full Code Here

Examples of org.apache.tapestry.IEngine

    public void testLoggedIn()
    {

        IRequestCycle cycle = newCycle();
        IEngine engine = newEngine();
        IErrorProperty page = newPage();
        Visit visit = (Visit) newMock(Visit.class);

        trainGetEngine(cycle, engine);
View Full Code Here

Examples of org.apache.tapestry.IEngine

*/
public class ErrorPresenterImpl implements ErrorPresenter
{
    public void presentError(String message, IRequestCycle cycle)
    {
        IEngine engine = cycle.getEngine();

        String pageName = "Home";
        // Get, but don't create, the visit.
        Visit visit = (Visit) engine.getVisit();

        if (visit != null && visit.isUserLoggedIn())
            pageName = "MyLibrary";

        IErrorProperty page = (IErrorProperty) cycle.getPage(pageName);
View Full Code Here

Examples of org.apache.tapestry.IEngine

        IComponent component,
        Locale locale)
    {
        if (_delegate == null)
        {
            IEngine engine = cycle.getEngine();
            IApplicationSpecification spec = engine.getSpecification();

            if (spec.checkExtension(Tapestry.TEMPLATE_SOURCE_DELEGATE_EXTENSION_NAME))
                _delegate =
                    (ITemplateSourceDelegate) spec.getExtension(
                        Tapestry.TEMPLATE_SOURCE_DELEGATE_EXTENSION_NAME,
View Full Code Here

Examples of org.apache.tapestry.IEngine

        if (isDirect())
            serviceName = Tapestry.DIRECT_SERVICE;
        else
            serviceName = Tapestry.ACTION_SERVICE;

        IEngine engine = cycle.getEngine();
        IEngineService service = engine.getService(serviceName);

        // A single service parameter is used to store the actionId.

        return service.getLink(cycle, this, new String[] { actionId });
    }
View Full Code Here

Examples of org.apache.tapestry.IEngine

        String scriptPath,
        IRequestCycle cycle,
        IFormComponent field,
        Map symbols)
    {
        IEngine engine = field.getPage().getEngine();
        IScriptSource source = engine.getScriptSource();
        IForm form = field.getForm();

        Map finalSymbols = (symbols == null) ? new HashMap() : symbols;

        finalSymbols.put(FIELD_SYMBOL, field);
        finalSymbols.put(FORM_SYMBOL, form);
        finalSymbols.put(VALIDATOR_SYMBOL, this);

        IResourceLocation location =
            new ClasspathResourceLocation(engine.getResourceResolver(), scriptPath);

        IScript script = source.getScript(location);

        Body body = Body.get(cycle);
View Full Code Here

Examples of org.apache.tapestry.IEngine

    {
        Inspector inspector = (Inspector) getPage();

        _inspectedPage = inspector.getInspectedPage();

        IEngine engine = getPage().getEngine();
        IPageRecorder recorder =
            engine.getPageRecorder(_inspectedPage.getPageName(), inspector.getRequestCycle());

        // No page recorder?  No properties.

        if (recorder == null)
        {
View Full Code Here

Examples of org.apache.tapestry.IEngine

    protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
    {
        if (_disabled || cycle.isRewinding())
            return;

        IEngine engine = getPage().getEngine();
        IScriptSource source = engine.getScriptSource();

        IResourceLocation scriptLocation =
            getSpecification().getSpecificationLocation().getRelativeLocation(
                "InspectorButton.script");

        IScript script = source.getScript(scriptLocation);

        Map symbols = new HashMap();

        IEngineService service = engine.getService(Tapestry.DIRECT_SERVICE);
        ILink link = service.getLink(cycle, this, null);

        symbols.put("URL", link.getURL());

        Body body = Body.get(cycle);
View Full Code Here

Examples of org.apache.tapestry.IEngine

    private Set _beanNames;

    public BeanProvider(IComponent component)
    {
        this._component = component;
        IEngine engine = component.getPage().getEngine();
        _resolver = engine.getResourceResolver();

        if (LOG.isDebugEnabled())
            LOG.debug("Created BeanProvider for " + component);

    }
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.