Disk Service
cbfs includes a Disk Service object you can use to register and interact with your disks.
Injection DSL
DSL
Description
// Injects the DiskService
diskService = getInstance( "cbfs" );
property name="diskService" inject="cbfs";
diskService = getInstance( "DiskService@cbfs" );
property name="diskService" inject="DiskService@cbfs";
// Injects the entire disks record structure
disks = getInstance( "cbfs:disks" );
property name="disks" inject="cbfs:disks";
// Injects a specific disk by name
tempDisk = getInstance( "cbfs:disks:{name}" );
tempDisk = getInstance( "cbfs:disks:temp" );
property name="tempDisk" inject="cbfs:disks:temp";Helper Method
Core Methods
count()
defaultDisk()
get( name )
getDiskRecord( name )
has( name )
names()
register( name, provider, properties, override )
shutdown()
tempDisk()
unregister( name )
Last updated
Was this helpful?