public final class Jaguar extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
assemble(T component)
Assembles the specified component instance by injecting the dependent
components into it.
|
static void |
bootstrap()
Bootstraps Jaguar.
|
static <T> T |
component(Class<T> component)
Returns assembled component instance of the specified component type.
|
static Class<?> |
deployment()
Returns the deployment qualifier.
|
static void |
deployment(Class<?> deployment)
Sets the deployment qualifier.
|
static void |
dump()
Dumps the current Jaguar state into the log.
|
static void |
install(Class<?>... components)
Installs the specified components into Jaguar.
|
static void |
install(Class<?> component)
Installs the specified component into Jaguar.
|
static void |
install(Collection<Class<?>> components)
Installs the specified components into Jaguar.
|
static boolean |
installed(Class<?> component)
Indicates the specified component installed or not.
|
static boolean |
running()
Returns whether Jaguar is running or not.
|
static void |
shutdown()
Shuts down Jaguar.
|
public static void deployment(Class<?> deployment)
deployment
- The deployment qualifier components are deployed.public static Class<?> deployment()
public static void bootstrap()
public static void shutdown()
public static boolean running()
public static void install(Collection<Class<?>> components)
Scanner
or something like
component bundle. If you would install components runtime classpath, you
should invoke this method with Classpath#scan()
.components
- The component classes to be installed.public static void install(Class<?>... components)
Scanner
or something like
component bundle. If you would install components runtime classpath, you
should invoke this method with Classpath#scan()
.components
- The component classes to be installed.public static void install(Class<?> component)
component
- The component class to be installed.public static boolean installed(Class<?> component)
component
- The component class to be examined.true
if the specified component installed.public static <T> T component(Class<T> component)
T
- The component type.component
- The component type.public static <T> T assemble(T component)
T
- The component type.component
- The component instance that the dependent components to
be injected.public static void dump()
Copyright © 2011-2014 Eiichiro Uchiumi. All Rights Reserved.