@@ -52,68 +52,77 @@ public interface ApplicationContext {
5252 *
5353 * @return the application ID
5454 */
55- @ NonNull String getApplicationId ();
55+ @ NonNull
56+ String getApplicationId ();
5657
5758 /**
5859 * Returns the current lifecycle state of this application.
5960 *
6061 * @return the application state
6162 * @see ApplicationState
6263 */
63- @ NonNull ApplicationState getState ();
64+ @ NonNull
65+ ApplicationState getState ();
6466
6567 /**
6668 * Returns the timestamp when this application was deployed.
6769 *
6870 * @return the deployment timestamp
6971 */
70- @ NonNull Instant getDeployedAt ();
72+ @ NonNull
73+ Instant getDeployedAt ();
7174
7275 /**
7376 * Returns the isolated classloader for this application. All application classes are loaded
7477 * through this classloader for isolation.
7578 *
7679 * @return the application's classloader
7780 */
78- @ NonNull ClassLoader getClassLoader ();
81+ @ NonNull
82+ ClassLoader getClassLoader ();
7983
8084 /**
8185 * Returns the dedicated thread pool for this application. Use this for concurrent execution to
8286 * maintain resource isolation.
8387 *
8488 * @return the application's thread pool
8589 */
86- @ NonNull ThreadPoolExecutor getThreadPool ();
90+ @ NonNull
91+ ThreadPoolExecutor getThreadPool ();
8792
8893 /**
8994 * Returns the security policy for this application. Use this to check permissions before
9095 * performing privileged operations.
9196 *
9297 * @return the application's security policy
9398 */
94- @ NonNull SecurityPolicy getSecurityPolicy ();
99+ @ NonNull
100+ SecurityPolicy getSecurityPolicy ();
95101
96102 /**
97103 * Returns the resource monitor tracking this application's resource usage. Provides CPU time,
98104 * memory usage, and thread count metrics.
99105 *
100106 * @return the application's resource monitor
101107 */
102- @ NonNull ResourceMonitor getResourceMonitor ();
108+ @ NonNull
109+ ResourceMonitor getResourceMonitor ();
103110
104111 /**
105112 * Returns the message bus if messaging is enabled for this application.
106113 *
107114 * @return optional message bus, empty if messaging is not enabled
108115 */
109- @ NonNull Optional <MessageBus > getMessageBus ();
116+ @ NonNull
117+ Optional <MessageBus > getMessageBus ();
110118
111119 /**
112120 * Returns the service registry if messaging is enabled for this application.
113121 *
114122 * @return optional service registry, empty if messaging is not enabled
115123 */
116- @ NonNull Optional <ServiceRegistry > getServiceRegistry ();
124+ @ NonNull
125+ Optional <ServiceRegistry > getServiceRegistry ();
117126
118127 /**
119128 * Returns the volume manager if volumes are defined for this application. Provides access to
@@ -122,19 +131,22 @@ public interface ApplicationContext {
122131 * @return optional volume manager, empty if no volumes are defined
123132 * @since 2.0
124133 */
125- @ NonNull Optional <VolumeManager > getVolumeManager ();
134+ @ NonNull
135+ Optional <VolumeManager > getVolumeManager ();
126136
127137 /**
128138 * Returns custom properties configured for this application.
129139 *
130140 * @return immutable map of application properties
131141 */
132- @ NonNull Map <String , String > getProperties ();
142+ @ NonNull
143+ Map <String , String > getProperties ();
133144
134145 /**
135146 * Returns the application instance if it has been started.
136147 *
137148 * @return the application instance, or null if not yet started
138149 */
139- @ Nullable Object getApplicationInstance ();
150+ @ Nullable
151+ Object getApplicationInstance ();
140152}
0 commit comments