-
Notifications
You must be signed in to change notification settings - Fork 162
/
UIContextFactory.java
41 lines (35 loc) · 1.05 KB
/
UIContextFactory.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* Copyright 2013 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.addon.ui.spi;
import org.jboss.forge.addon.ui.context.UIBuilder;
import org.jboss.forge.addon.ui.context.UIContext;
import org.jboss.forge.addon.ui.context.UIExecutionContext;
import org.jboss.forge.addon.ui.context.UIValidationContext;
/**
* Creates UI objects. Should be implemented by UI Providers
*
* @author <a href="ggastald@redhat.com">George Gastaldi</a>
*/
public interface UIContextFactory
{
/**
* Creates the {@link UIContext} used
*/
UIContext createUIContext();
/**
* Creates a {@link UIBuilder} when needed
*/
UIBuilder createUIBuilder(UIContext context);
/**
* Creates a new {@link UIValidationContext}
*/
UIValidationContext createUIValidationContext(UIContext context);
/**
* Creates a new {@link UIExecutionContext}
*/
UIExecutionContext createUIExecutionContext(UIContext context);
}