use of jakarta.annotation.PostConstruct in project jans by JanssenProject.
the class Labels method init.
@PostConstruct
private void init() {
ApplicationFactory factory = (ApplicationFactory) FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
facesApp = factory.getApplication();
}
use of jakarta.annotation.PostConstruct in project jans by JanssenProject.
the class KryoSerializer method init.
@PostConstruct
private void init() {
Log.DEBUG();
kryos = new ThreadLocal<Kryo>() {
@Override
protected Kryo initialValue() {
Kryo kryo = new Kryo();
kryo.setRegistrationRequired(false);
kryo.setReferences(true);
kryo.setClassLoader(actionService.getClassLoader());
kryo.setOptimizedGenerics(false);
return kryo;
}
};
}
use of jakarta.annotation.PostConstruct in project today-framework by TAKETODAY.
the class DefaultUserRepository method initData.
@PostConstruct
public void initData() {
log.info("init data: [{}]", this);
users.put("666", new User(1, "Harry Yang", 20, "666", "666", "男", new Date()));
users.put("6666", new User(2, "Harry Yang1", 20, "6666", "6666", "男", new Date()));
users.put("66666", new User(3, "Harry Yang2", 20, "66666", "66666", "男", new Date()));
users.put("666666", new User(4, "Harry Yang3", 20, "666666", "666666", "男", new Date()));
}
use of jakarta.annotation.PostConstruct in project glassfish-hk2 by eclipse-ee4j.
the class ServiceDirectsNoErrorService method postConstruct.
@PostConstruct
private void postConstruct() {
MultiException me = new MultiException(new IllegalStateException(ErrorService1Test.ERROR_STRING));
me.setReportToErrorService(false);
throw me;
}
use of jakarta.annotation.PostConstruct in project jans by JanssenProject.
the class PythonService method init.
@PostConstruct
public void init() {
try {
this.logOut = new OutputStreamWriter(new PythonLoggerOutputStream(log, false), "UTF-8");
this.logErr = new OutputStreamWriter(new PythonLoggerOutputStream(log, true), "UTF-8");
} catch (UnsupportedEncodingException ex) {
log.error("Failed to initialize Jython out/err loggers", ex);
}
}
Aggregations