本文整理了Java中org.oasisopen.sca.annotation.Init.<init>()
方法的一些代码示例,展示了Init.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Init.<init>()
方法的具体详情如下:
包路径:org.oasisopen.sca.annotation.Init
类名称:Init
方法名:<init>
暂无
代码示例来源:origin: com.carecon.fabric3/fabric3-jpa-hibernate
@Init
public void init() {
System.setProperty(LOGGING_PROVIDER_KEY, "slf4j");
}
}
代码示例来源:origin: org.fabric3/fabric3-jpa-hibernate
@Init
public void init() {
System.setProperty(LOGGING_PROVIDER_KEY, "slf4j");
}
}
代码示例来源:origin: com.carecon.fabric3/fabric3-binding-ws
@Init
public void init() throws NoSuchMethodException {
method = SecureClassLoader.class.getDeclaredMethod("defineClass", String.class, byte[].class, Integer.TYPE, Integer.TYPE, CodeSource.class);
method.setAccessible(true);
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-fabric
@Init
public void init() throws IOException {
if (tempDir.exists()) {
FileHelper.deleteDirectory(tempDir);
}
tempDir.mkdirs();
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-fabric
@Init
public void orderProviders() {
if (strategy != null) {
strategy.order(providers);
}
}
代码示例来源:origin: com.carecon.fabric3/fabric3-binding-jms
@Init
public void init() {
MultiParentClassLoader jndiClassLoader = (MultiParentClassLoader) registry.getClassLoader(URI.create("f3-jndi"));
if (jndiClassLoader == null) {
return;
}
MultiParentClassLoader extensionClassLoader = (MultiParentClassLoader) getClass().getClassLoader();
extensionClassLoader.getParents().forEach(jndiClassLoader::addParent);
}
}
代码示例来源:origin: org.fabric3/fabric3-monitor-impl
@Init
public void init() throws IOException {
destinations = new AtomicReference<>();
destinations.set(new MonitorDestination[0]);
eventService.subscribe(RuntimeDestroyed.class, new MonitorEventListener());
}
代码示例来源:origin: org.fabric3/fabric3-federation-deployment
@Init
public void init() {
messagePump = new MessagePump();
executorService.execute(messagePump);
executorRegistry.register(DeploymentCommand.class, this);
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-execution
@Init
public void init() {
// introspect the interface once
contract = contractProcessor.introspect(ExecutorService.class, new DefaultIntrospectionContext());
}
代码示例来源:origin: com.carecon.fabric3/fabric3-monitor-appender
@Init
public void init() {
// register under both namespaces
registry.registerLoader(F3_TYPE, this);
registry.registerLoader(SCA_TYPE, this);
}
代码示例来源:origin: org.fabric3/fabric3-fabric
@Init
public void init() throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException {
initializeKeyStore();
initializeTrustStore();
}
代码示例来源:origin: org.fabric3/fabric3-monitor-appender
@Init
public void init() {
// register under both namespaces
registry.registerLoader(F3_TYPE, this);
registry.registerLoader(SCA_TYPE, this);
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-datasource
@Init
public void init() {
// introspect the interface once
contract = contractProcessor.introspect(DataSource.class, new DefaultIntrospectionContext());
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-datasource
@Init
public void init() {
// introspect the interface once
contract = contractProcessor.introspect(DataSource.class, new DefaultIntrospectionContext());
}
代码示例来源:origin: com.carecon.fabric3/fabric3-monitor-appender
@Init
public void init() {
// register under both namespaces
registry.registerLoader(F3_TYPE, this);
registry.registerLoader(SCA_TYPE, this);
}
代码示例来源:origin: com.carecon.fabric3/fabric3-contribution-scanner
@SuppressWarnings({"unchecked"})
@Init
public void init() {
eventService.subscribe(ExtensionsInitialized.class, this);
// Register to be notified when the runtime starts to perform the following:
// 1. Contributions installed to deployment directories when the runtime is offline are deployed to the domain
// 2. The scanner thread is initialized
eventService.subscribe(RuntimeStart.class, this);
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-monitor-impl
@Init
public void init() {
if (bytecodeGeneration) {
BytecodeMonitorProxyService byteCodeDelegate = new BytecodeMonitorProxyService(router, monitorable);
byteCodeDelegate.setEnabled(enabled);
delegate = byteCodeDelegate;
} else {
JDKRingBufferMonitorProxyService jdkDelegate = new JDKRingBufferMonitorProxyService(router, monitorable);
jdkDelegate.setEnabled(enabled);
delegate = jdkDelegate;
}
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-binding-zeromq
@Init
public void init() {
// Windows requires the ZMQ library to be loaded as the JZMQ library is linked to it and Windows is unable to resolve it relative to the JZMQ library
// System.loadLibrary("zmq");
ZMQLibraryInitializer.loadLibrary(hostInfo);
context = ZMQ.context(1);
controlSocket = context.socket(ZMQ.PUB);
controlSocket.bind("inproc://fabric3");
}
代码示例来源:origin: org.codehaus.service-conduit/sca4j-interface-wsdl
@Init
public void start() throws WSDLException {
WSDLFactory factory = WSDLFactory.newInstance();
reader = factory.newWSDLReader();
ExtensionRegistry extensionRegistry = factory.newPopulatedExtensionRegistry();
for (Class<? extends ExtensibilityElement> type : extensionHandlers.keySet()) {
ExtensionHandler<?> extensionHandler = extensionHandlers.get(type);
extensionRegistry.registerSerializer(Definition.class, extensionHandler.getQualifiedName(), extensionHandler);
extensionRegistry.registerDeserializer(Definition.class, extensionHandler.getQualifiedName(), extensionHandler);
}
reader.setExtensionRegistry(extensionRegistry);
}
代码示例来源:origin: org.codehaus.fabric3/fabric3-monitor-impl
@Init
public void init() throws FileNotFoundException {
if (!enabled) {
return;
}
WaitStrategy waitStrategy = createWaitStrategy();
MonitorEventEntryFactory factory = new MonitorEventEntryFactory(capacity);
disruptor = new Disruptor<MonitorEventEntry>(factory, ringSize, executorService, ProducerType.MULTI, waitStrategy);
MonitorEventHandler handler = new MonitorEventHandler(registry);
disruptor.handleEventsWith(handler);
disruptor.start();
}
内容来源于网络,如有侵权,请联系作者删除!