Package org.mycore.pi.urn.rest
Class MCRURNGranularRESTRegistrationStarter
java.lang.Object
org.mycore.pi.urn.rest.MCRURNGranularRESTRegistrationStarter
- All Implemented Interfaces:
Comparable<MCRShutdownHandler.Closeable>
,MCRShutdownHandler.Closeable
,MCRStartupHandler.AutoExecutable
public class MCRURNGranularRESTRegistrationStarter
extends Object
implements MCRStartupHandler.AutoExecutable, MCRShutdownHandler.Closeable
- Author:
- Huu Chi Vu, shermann
-
Field Summary
Fields inherited from interface org.mycore.common.events.MCRShutdownHandler.Closeable
DEFAULT_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
cleanly closes this object that implementsCloseable
.getEpicureProvider
(org.apache.http.auth.UsernamePasswordCredentials credentials) Deprecated.getName()
returns a name to display on start-up.int
If order is important returns as 'heigher' priority.Optional<org.apache.http.auth.UsernamePasswordCredentials>
Deprecated.Reading of properties moved togetUsernamePasswordCredentials()
Optional<org.apache.http.auth.UsernamePasswordCredentials>
void
prepare for closing this object that implementsCloseable
.void
startUp
(jakarta.servlet.ServletContext servletContext) This method get executed byMCRStartupHandler.startUp(ServletContext)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mycore.common.events.MCRShutdownHandler.Closeable
compareTo
-
Constructor Details
-
MCRURNGranularRESTRegistrationStarter
public MCRURNGranularRESTRegistrationStarter() -
MCRURNGranularRESTRegistrationStarter
-
-
Method Details
-
getName
Description copied from interface:MCRStartupHandler.AutoExecutable
returns a name to display on start-up.- Specified by:
getName
in interfaceMCRStartupHandler.AutoExecutable
-
getPriority
public int getPriority()Description copied from interface:MCRStartupHandler.AutoExecutable
If order is important returns as 'heigher' priority.- Specified by:
getPriority
in interfaceMCRShutdownHandler.Closeable
- Specified by:
getPriority
in interfaceMCRStartupHandler.AutoExecutable
-
startUp
public void startUp(jakarta.servlet.ServletContext servletContext) Description copied from interface:MCRStartupHandler.AutoExecutable
This method get executed byMCRStartupHandler.startUp(ServletContext)
- Specified by:
startUp
in interfaceMCRStartupHandler.AutoExecutable
-
getEpicureProvider
@Deprecated public Function<MCRPIRegistrationInfo,MCREpicurLite> getEpicureProvider(org.apache.http.auth.UsernamePasswordCredentials credentials) Deprecated. -
getBundleProvider
-
getUsernamePassword
Deprecated.Reading of properties moved togetUsernamePasswordCredentials()
-
getUsernamePasswordCredentials
-
prepareClose
public void prepareClose()Description copied from interface:MCRShutdownHandler.Closeable
prepare for closing this object that implementsCloseable
. This is the first part of the closing process. As a object may need database access to close cleanly this method can be used to be ahead of database outtake.- Specified by:
prepareClose
in interfaceMCRShutdownHandler.Closeable
-
close
public void close()Description copied from interface:MCRShutdownHandler.Closeable
cleanly closes this object that implementsCloseable
. You can provide some functionality to close open files and sockets or so.- Specified by:
close
in interfaceMCRShutdownHandler.Closeable
-
getBundleProvider()