saker.nest Documentation TaskDoc JavaDoc Packages
package saker.nest
public interface NestRepository
Public interface for accessing Nest repository related features.

This interface is implemented by the loaded SakerRepository instance by the build system and other operations. This interface doesn't extends SakerRepository in order to allow separate lifecycle management independent from the build system. Instances of this interface may not be assignable to SakerRepository.

This interface is not to be implemented by clients.

Methods
public void
executeAction(String... arguments)
public RepositoryEnvironment
Gets the RepositoryEnvironment that was used to initialize the repository.
public abstract void executeAction(String... arguments) throws Exception, UnsupportedOperationException
See SakerRepository.executeAction(String...).

Executes an arbitrary action on this repository with the given parameters.

This method servers as a main method to the repository. Calling it will execute custom actions specified by the repository implementation.

Implementations are not recommended to call System.exit(int) after finishing the action, but they are allowed to do so. Make sure to document exit related behaviour for the callers.

The default implementation throws an UnsupportedOperationException.

argumentsThe arguments for the action.
ExceptionIn case of any error occurring during execution of the action.
UnsupportedOperationExceptionIf this repository action is not supported.
Gets the RepositoryEnvironment that was used to initialize the repository.

See SakerRepositoryFactory.create(RepositoryEnvironment).

The repository environment instance.