In the Spring-boot remote shell, CRaSH, I can dump all the Spring beans to the screen in what looks like JSON:
> beans
[{context=application, parent=null, beans=[{bean=repositoryServer, scope=singleton,
type=com.opentext.tlsPolicyRepository.RepositoryServer$$EnhancerBySpringCGLIB$$841a12c7,
resource=null, dependencies=[]}, {bean=tlsPolicyRepositoryController,
scope=singleton, type=com.opentext.tlsPolicyRepository.TlsPolicyRepositoryController,
resource=file
... etc
But I can't find a way to filter that output:
beans | filter -p bean:repositoryServer
I see from the internal "man" page that the beans
command produces Object, and filter
consumes Map
, so the failure makes sense.
How can I get info about a single bean from the CRaSH shell?