Giter Site home page Giter Site logo

Comments (4)

gkhakare avatar gkhakare commented on July 17, 2024

When I debugged it further, scannit library is not able to scan class when it is inside nested jar file.

from overthere.

Teshel avatar Teshel commented on July 17, 2024

@gkhakare Were you able to figure out a solution? I'm having the same problem with a Spring Boot app.

from overthere.

gkhakare avatar gkhakare commented on July 17, 2024

@Teshel I have changed the Overthere.java and loading the Protocol classes using method
private static void boot() {
final Set<Class> protocolClasses = getProtocolClassess(); for (Class protocol : protocolClasses) {
if (OverthereConnectionBuilder.class.isAssignableFrom(protocol)) {
final String name = protocol.getAnnotation(Protocol.class).name();
RMOverthere.protocols.get().put(name, (Class<? extends OverthereConnectionBuilder>) protocol);
} else {
logger.warn("Skipping class {} because it is not a HostConnectionBuilder.", protocol);
}
}
}

private static void boot(Scannit scannit) {
   
}

private static Set<Class<?>> getProtocolClassess() {
	Set<Class<?>>  set  = new HashSet<Class<?>>();
	set.add(SshConnectionBuilder.class);
	set.add(CifsConnectionBuilder.class);
	set.add(LocalConnection.class);
	set.add(SmbConnectionBuilder.class);
	set.add(ProxyConnection.class);
	set.add(SshJumpstationConnectionBuilder.class);
	return set;
} 

from overthere.

hierynomus avatar hierynomus commented on July 17, 2024

With 4fa6795 you can now use OverthereConnector instead of the Overthere class to create connections. You can programmatically register the protocols you want to enable on the Connector.

from overthere.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.