|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.bundle.Bundle
@Entity public final class Bundle
a bundle in the pulse web application framework.
| Constructor Summary | |
|---|---|
protected |
Bundle()
Deprecated. |
|
Bundle(java.io.File dir)
constructs a new startable bundle with the given name. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
compares the given object with the Bundle. |
ActionConfiguration |
getActionConfiguration(java.lang.String action)
returns the ActionConfiguration for the given action. |
java.util.Collection<ActionConfiguration> |
getActionConfigurations()
returns the action configurations of the bundle. |
java.util.Collection<java.lang.String> |
getActionsRequiringTokens()
returns the actions requiring Tokens. |
java.util.Set<ControllerMethodConfiguration> |
getAnyActionConfigurations(Controller.AlwaysRun mode)
returns the no-action configurations of the specified mode. |
java.util.Set<java.lang.Class<? extends java.lang.Object>> |
getContentTypes()
|
java.util.List<Controller> |
getControllers()
|
java.io.File |
getDirectory()
|
java.lang.Long |
getId()
returns the primary key. |
java.lang.String |
getName()
|
ViewTypes |
getViewTypes(java.lang.Object object)
Returns the Views of the Bundle for the given Content. |
int |
hashCode()
|
boolean |
isModified()
indicates whether this Resource or any of its Sub-Resources has been modified. |
void |
restart()
reloads the bundle. |
void |
setControllerMappings(java.util.Map<java.lang.String,ActionConfiguration> actionConfs,
java.util.Set<ControllerMethodConfiguration> anyActionPreConfs,
java.util.Set<ControllerMethodConfiguration> anyActionPostConfs,
java.util.Set<java.lang.String> requireTokenActions)
sets the annotation based controller mappings. |
void |
shutdown()
stops the bundle. |
void |
startup()
starts the bundle. |
net.sf.json.JSONObject |
toJSON()
Returns a JSON-representation of the Bundle. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated protected Bundle()
public Bundle(java.io.File dir)
dir - the bundle's root directory| Method Detail |
|---|
public java.lang.Long getId()
public java.lang.String getName()
public java.util.List<Controller> getControllers()
public java.util.Collection<java.lang.String> getActionsRequiringTokens()
Tokens.
Tokens
public void setControllerMappings(java.util.Map<java.lang.String,ActionConfiguration> actionConfs,
java.util.Set<ControllerMethodConfiguration> anyActionPreConfs,
java.util.Set<ControllerMethodConfiguration> anyActionPostConfs,
java.util.Set<java.lang.String> requireTokenActions)
actionConfs - the action configurationsanyActionPreConfs - the method configuration for any action methods (PRE)anyActionPostConfs - the method configuration for any action methods (POST)requireTokenActions - the actions requiring tokensController.AlwaysRunpublic java.util.Collection<ActionConfiguration> getActionConfigurations()
public ActionConfiguration getActionConfiguration(java.lang.String action)
ActionConfiguration for the given action.
action - the action
ActionConfiguration, or null, if no such
configuration exists.public java.util.Set<ControllerMethodConfiguration> getAnyActionConfigurations(Controller.AlwaysRun mode)
mode - the mode of the no-action configurations requested
public java.io.File getDirectory()
public java.util.Set<java.lang.Class<? extends java.lang.Object>> getContentTypes()
Content types available from the Bundlepublic ViewTypes getViewTypes(java.lang.Object object)
Views of the Bundle for the given Content.
object - the object to check against
Views of the Bundle for the given Content.public boolean isModified()
isModified in interface LifecycleResourcetrue, if the resource has been modifiedpublic int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object obj)
Bundle.
If the object is not an instance of Bundle, the method returns
false. Otherwise, if both bundles have an initialised, id the
bundles are compared by id. If one of the bundles does not have an
initialised id, the bundles are compared by name.
equals in class java.lang.Objectobj - the object to check against
true, if the given object is equal to the Bundlepublic void startup()
SymbolResolver for page flow symbols is set up<watch-resources/>, these resources are
added to the trigger list for reloads
startup in interface LifecycleResourcepublic void shutdown()
SymbolResolver is set to nullnullnull
shutdown in interface LifecycleResourcepublic void restart()
restart in interface LifecycleResourcepublic net.sf.json.JSONObject toJSON()
Bundle.
Bundle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||