org.nakedobjects.runtime
Class NakedObjects

java.lang.Object
  extended by org.nakedobjects.runtime.NakedObjects

public class NakedObjects
extends java.lang.Object


Constructor Summary
NakedObjects()
           
 
Method Summary
protected  boolean addOptionHandler(OptionHandler optionHandler)
           
protected  void addOptionHandlers(InstallerLookup installerLookup)
           
protected  void bootstrapSystemAndViewers(InstallerLookup installerLookup, DeploymentType deploymentType, java.util.List<java.lang.String> viewerNames)
          Overridable.
protected  ConfigurationBuilderDefault createConfigurationBuilder()
          Hook method, possibly overridable.
protected  OptionHandlerDeploymentType createOptionHandlerDeploymentType()
           
 java.util.List<OptionHandler> getFlagHandlers()
           
static void main(java.lang.String[] args)
           
 void run(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NakedObjects

public NakedObjects()
Method Detail

main

public static void main(java.lang.String[] args)

run

public void run(java.lang.String[] args)

getFlagHandlers

public java.util.List<OptionHandler> getFlagHandlers()

addOptionHandlers

protected void addOptionHandlers(InstallerLookup installerLookup)

createOptionHandlerDeploymentType

protected OptionHandlerDeploymentType createOptionHandlerDeploymentType()

addOptionHandler

protected boolean addOptionHandler(OptionHandler optionHandler)

createConfigurationBuilder

protected ConfigurationBuilderDefault createConfigurationBuilder()
Hook method, possibly overridable.

The default implementation returns a ConfigurationBuilderDefault, which looks to the config/ directory, the src/main/webapp/WEB-INF directory, and then finally to the classpath. However, this could be a security concern in a production environment; a user could edit the nakedobjects.properties config files to disable security, for example.

This hook method therefore allows this NakedObjects class to be subclassed and setup to use a different ConfigurationBuilder. For example, a security-conscious subclass could return a ConfigurationBuilder that only reads from the classpath. This would allow the application to be deployed as a single sealed JAR that could not be tampered with.


bootstrapSystemAndViewers

protected void bootstrapSystemAndViewers(InstallerLookup installerLookup,
                                         DeploymentType deploymentType,
                                         java.util.List<java.lang.String> viewerNames)
Overridable.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.