Class AddLibraryCommand

  • All Implemented Interfaces:
    AdminCommand

    @Service(name="add-library")
    @PerLookup
    @CommandLock(NONE)
    @ExecuteOn(DAS)
    public class AddLibraryCommand
    extends Object
    implements AdminCommand
    An asadmin command to add a new library to the libs directory of the domain by uploading a file.

    It will then attempt to load the new classes dynamically. If there is a file with that name already existing, then it will do nothing, and the new library will not be used until the library is reloaded. Similarly, if there is a class in the new library that has the same full name as a class already existing then it won't be loaded.

    Since:
    3.1.2
    Version:
    4.1.2.173
    • Constructor Detail

      • AddLibraryCommand

        public AddLibraryCommand()
    • Method Detail

      • execute

        public void execute​(AdminCommandContext context)
        Description copied from interface: AdminCommand
        Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values
        Specified by:
        execute in interface AdminCommand
        Parameters:
        context - information